:root {
  --dc-navy: #12293B;
  --dc-navy-deep: #0A1B28;
  --dc-red: #E13A2E;
  --dc-red-deep: #B72A20;
  --dc-sky: #A9DCEF;
  --dc-sky-deep: #6FB9D6;
  --dc-sand: #FFFFFF;
  --dc-white: #FFFFFF;
  --dc-ink: #12293B;
  --dc-muted: #6B7C89;
  --dc-serif: 'Cardo', Georgia, serif;
  --dc-sans: 'Besley', Georgia, serif;
  --dc-numeric: 'Nunito', -apple-system, sans-serif;
}

.dc-widget * { box-sizing: border-box; }

.dc-widget button:focus-visible,
.dc-widget a:focus-visible {
  outline: 2px solid var(--dc-navy);
  outline-offset: 2px;
}
.dc-day:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--dc-navy);
  z-index: 1;
}

.dc-widget {
  font-family: var(--dc-sans);
  color: var(--dc-ink);
  background: var(--dc-sand);
  border-radius: 20px;
  padding: 10px 20px 20px;
  max-width: 720px;
  margin: 0 auto;
}

/* Masthead */
.dc-masthead {
  padding: 0 4px 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(18,41,59,0.08);
}
.dc-logo-wide {
  display: block;
  height: 68px;
  width: auto;
}

/* Month nav */
.dc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 14px;
}
.dc-nav button {
  border: none;
  background: var(--dc-navy);
  color: var(--dc-white);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(18,41,59,0.12);
}
.dc-nav button:hover { background: var(--dc-red); }
.dc-nav button:disabled { opacity: 0.35; cursor: default; background: var(--dc-navy); }
.dc-nav-label {
  font-family: var(--dc-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dc-navy);
}

/* Grid */
.dc-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 6px;
}
.dc-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: rgba(18,41,59,0.35);
  border: 1px solid rgba(18,41,59,0.35);
  border-radius: 12px;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.13s ease;
}
.dc-grid.dc-fading { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .dc-grid { transition: none; }
}
.dc-weekdays span {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111111;
}

.dc-day {
  aspect-ratio: 1.75 / 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 0;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--dc-sans);
  background: #FAFAF8;
  transition: background 0.12s ease;
  position: relative;
}
.dc-day:hover { filter: brightness(0.96); }
.dc-day.dc-empty { background: #FFFFFF; cursor: default; pointer-events: none; }
.dc-day.dc-past { cursor: default; background: #EFEFEC; }
.dc-day.dc-past:hover { filter: none; }
.dc-day.dc-past .dc-daynum { color: #8C8C8C; text-decoration: line-through; text-decoration-color: #B5B5B5; }

.dc-day .dc-daynum { font-family: var(--dc-numeric); font-size: 19px; font-weight: 600; color: var(--dc-navy); }
.dc-day .dc-spotsline { font-family: var(--dc-numeric); font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }
.dc-day.dc-selected { box-shadow: inset 0 0 0 2px var(--dc-navy); z-index: 1; }

.dc-day.dc-full { cursor: default; }
.dc-day.dc-full:hover { filter: none; }
.dc-day.dc-full .dc-daynum { text-decoration: line-through; text-decoration-color: rgba(183,42,32,0.55); }

/* Legend */
.dc-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px 4px;
  font-family: var(--dc-numeric);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #111111;
}
.dc-legend-dot { display: inline-flex; align-items: center; gap: 5px; }
.dc-legend-swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Detail panel */
.dc-detail {
  margin-top: 16px;
  background: #F1F1EF;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 2px rgba(18,41,59,0.06), 0 8px 20px rgba(18,41,59,0.05);
}
.dc-detail { min-height: 78px; justify-content: center; }
.dc-detail-top { display: flex; align-items: center; justify-content: center; gap: 18px; }

.dc-detail-placeholder {
  width: 100%;
  text-align: center;
  font-family: var(--dc-numeric);
  font-size: 16px;
  font-weight: 400;
  color: #111111;
  margin: 0;
}

.dc-ring { position: relative; width: 104px; height: 104px; flex-shrink: 0; }
.dc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dc-ring-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.dc-ring-label .dc-n { font-family: var(--dc-numeric); font-size: 36px; font-weight: 600; line-height: 1; color: var(--dc-navy); }
.dc-ring-label .dc-u { font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dc-muted); margin-top: 3px; }
.dc-ring-label.dc-full-label .dc-n { color: var(--dc-red-deep); font-size: 18px; font-family: var(--dc-numeric); font-weight: 600; }

.dc-detail-body { min-width: 0; text-align: left; }
.dc-detail-date {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dc-muted);
  margin: 0 0 4px;
}
.dc-detail-tour {
  font-family: var(--dc-serif);
  font-size: 19px;
  color: var(--dc-navy);
  margin: 0 0 3px;
  line-height: 1.2;
}
.dc-detail-loc { font-size: 12px; color: var(--dc-muted); margin: 0 0 8px; }
.dc-chip-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.dc-req-badge {
  display: inline-block;
  vertical-align: middle;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dc-red-deep);
  background: rgba(225,58,46,0.09);
  border-radius: 20px;
  padding: 3px 9px;
}
.dc-price {
  display: inline-block;
  font-family: var(--dc-serif);
  font-size: 16px;
  color: #111111;
  white-space: nowrap;
  margin: 0;
  background: rgb(203,231,219);
  border-radius: 20px;
  padding: 5px 14px;
}
.dc-price span { font-size: 10px; color: #111111; font-family: var(--dc-sans); }

.dc-cta-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 80%;
  margin: 0 auto;
  text-align: center;
  font-family: var(--dc-numeric);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dc-white);
  background: var(--dc-navy);
  border: none;
  border-radius: 10px;
  padding: 13px 16px;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.dc-cta-full:hover { background: var(--dc-navy-deep); }
.dc-cta-wa:hover { background: #1DA851; }
.dc-wa-icon { width: 16px; height: 16px; flex-shrink: 0; }
.dc-reserve-opt:hover { background: rgba(18,41,59,0.05); }

.dc-full-text-full {
  display: block;
  width: 80%;
  margin: 0 auto;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dc-red-deep);
  letter-spacing: 0.02em;
  padding: 13px 16px;
  border: 1.5px solid rgba(225,58,46,0.3);
  border-radius: 10px;
  box-sizing: border-box;
}

.dc-foot-note {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  color: var(--dc-muted);
}

/* Below this, the desktop wide/short cell ratio no longer has room for
   two lines of text (daynum + spotsline) and rows start overlapping. */
@media (max-width: 640px) {
  .dc-day { aspect-ratio: 1.3 / 1; gap: 0; }
  .dc-day .dc-daynum { font-size: 14px; }
  .dc-day .dc-spotsline { display: none; }
}

@media (max-width: 480px) {
  .dc-widget { padding: 14px; border-radius: 16px; }
  .dc-detail-top { flex-direction: column; align-items: flex-start; }
  .dc-detail-top .dc-ring { margin: 0 auto; }

  .dc-logo-wide { height: 52px; }
  .dc-nav-label { font-size: 12px; }
  .dc-legend { gap: 10px; font-size: 10px; flex-wrap: wrap; }
}

@media (max-width: 360px) {
  .dc-day .dc-daynum { font-size: 13px; }
}
