/* Country landing layout: hero, dense cards, accent price line */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  color-scheme: only light;
  --fv-bg: #fafafa;
  --fv-surface: #ffffff;
  --fv-text: #111111;
  --fv-text-secondary: #5c5c5c;
  --fv-border: #ebebeb;
  --fv-accent: #e21b70;
  --fv-accent-hover: #c41560;
  --fv-max: 1180px;
  --fv-radius: 12px;
  --fv-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
  --fv-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.1);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--fv-bg);
  color: var(--fv-text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* —— Country landing (no app top bar) —— */
.fv-main {
  display: block;
  min-height: 100vh;
}

/* —— Hero: optional full-bleed photo + overlay text —— */
.fv-hero {
  position: relative;
  margin: 0 0 2rem;
}

.fv-hero--photo {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(260px, 48vh, 520px);
  margin-bottom: 2rem;
}

.fv-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.fv-hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.28) 48%,
    rgba(0, 0, 0, 0.06) 100%
  );
}

.fv-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--fv-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
}

.fv-hero:not(.fv-hero--photo) .fv-hero__content {
  padding-top: 1.75rem;
}

.fv-hero--photo .fv-hero__content {
  min-height: clamp(260px, 48vh, 520px);
  padding: clamp(1.5rem, 5vw, 3.25rem) 1.25rem;
  justify-content: flex-end;
}

.fv-hero--photo .fv-hero__title {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.fv-hero--photo .fv-hero__lead {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

/* —— Page shell —— */
.fv-page {
  max-width: var(--fv-max);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.fv-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--fv-text);
  max-width: 920px;
}

.fv-hero__lead {
  margin: 0;
  max-width: 640px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--fv-text-secondary);
}

/* —— Section header (category row style) —— */
.fv-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--fv-border);
}

.fv-section__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* —— Filters (pill controls, fever-style) —— */
.fv-filters {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fv-filters__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.15rem;
}

.fv-filters__row--dates {
  gap: 0.45rem 0.65rem;
}

.fv-filters__row--with-cat {
  align-items: flex-end;
  gap: 0.45rem 0.65rem;
}

.fv-filters__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.fv-filters__group--date-range,
.fv-filters__group--category,
.fv-filters__group--city {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  margin-left: 0;
}

.fv-filters__clear-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.2rem;
}

.fv-filters .fv-filters__clear-btn.fv-pill {
  min-height: 24px;
  padding: 0 0.42rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  gap: 0.2rem;
  border-radius: 999px;
  line-height: 1.1;
}

.fv-filters__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fv-text-secondary);
}

/* Match filter labels: same size, weight, case, and tracking on all filter values. */
.fv-filters .fv-pill,
.fv-filters .fv-pill__label,
.fv-filters .fv-pill__label--select-value {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: inherit;
}

.fv-filters .fv-pill,
.fv-filters .fv-pill__label--select-value {
  color: var(--fv-text);
}

.fv-inline-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.fv-date-range {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  width: 100%;
  min-width: 0;
}

.fv-pill--date-trigger {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: none;
  justify-content: flex-start;
  padding-left: 0.55rem;
}

.fv-pill--date-trigger .fv-pill__label--select-value {
  padding-left: 0.35rem;
}

.fv-pill--date-trigger .fv-pill__chev {
  margin-left: auto;
  margin-right: 0.45rem;
}

.fv-pill--primary {
  background: var(--fv-text);
  color: var(--fv-surface);
  border-color: var(--fv-text);
  font-weight: 600;
}

.fv-pill--primary:hover {
  opacity: 0.92;
  border-color: var(--fv-text);
}

/* Date picker modal */
.fv-date-modal-root {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px))
    max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(0.75rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

@media (max-width: 520px) {
  .fv-date-modal-root {
    align-items: stretch;
    justify-content: flex-end;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  }
}

.fv-date-modal-root[hidden] {
  display: none !important;
}

.fv-date-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.fv-date-modal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  /* Cap height on tall viewports; height follows content (no giant gap above footer) */
  max-height: min(560px, calc(100svh - 1.5rem), calc(100dvh - 1.5rem));
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--fv-surface);
  border-radius: 16px;
  border: 1px solid var(--fv-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  padding: 1rem 1.1rem 0;
  outline: none;
}

@media (max-width: 520px) {
  .fv-date-modal {
    max-width: none;
    border-radius: 16px 16px 0 0;
    max-height: min(92dvh, calc(100dvh - env(safe-area-inset-top, 0px) - 0.5rem));
  }
}

.fv-date-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.fv-date-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--fv-text);
}

.fv-date-modal__close {
  border: none;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--fv-text-secondary);
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}

.fv-date-modal__close:hover {
  background: #eee;
  color: var(--fv-text);
}

.fv-date-modal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.fv-cal {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
}

.fv-date-modal__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  margin-top: 0.5rem;
  padding: 0.85rem 0 calc(0.85rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--fv-border);
  background: var(--fv-surface);
  box-shadow: 0 -8px 24px var(--fv-surface);
  z-index: 1;
}

.fv-cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.fv-cal__month-label {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: none;
  color: var(--fv-text);
}

.fv-cal__nav-btn {
  border: none;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--fv-text-secondary);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}

.fv-cal__nav-btn:hover {
  background: #f0f0f0;
  color: var(--fv-text);
}

.fv-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.35rem;
  text-align: center;
}

.fv-cal__wd {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--fv-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fv-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}

.fv-cal__cell {
  min-height: 36px;
}

.fv-cal__day {
  width: 100%;
  height: 100%;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--fv-text);
  font-family: inherit;
  padding: 0;
  box-sizing: border-box;
}

.fv-cal__day:hover {
  background: #f3f3f3;
}

.fv-cal__day--today:not(.fv-cal__day--has-events) {
  border-color: #c8c8c8;
  background: #fafafa;
}

.fv-cal__day--has-events {
  border: 2px solid var(--fv-text);
  font-weight: 600;
}

.fv-cal__day--today.fv-cal__day--has-events {
  background: #fafafa;
}

/* Range selection: strong contrast on white modal (was very light grey) */
.fv-cal__day--in-range {
  background: rgba(226, 27, 112, 0.14);
  color: var(--fv-text);
}

.fv-cal__day--in-range:hover:not(.fv-cal__day--range-start):not(
    .fv-cal__day--range-end
  ) {
  background: rgba(226, 27, 112, 0.24);
}

.fv-cal__day--range-start,
.fv-cal__day--range-end {
  background: var(--fv-accent);
  color: #fff;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 1px 4px rgba(226, 27, 112, 0.35);
}

.fv-cal__day--range-start:hover,
.fv-cal__day--range-end:hover {
  background: var(--fv-accent-hover);
  color: #fff;
}

/* Today / “has events” borders should not fight the range pill */
.fv-cal__day--range-start.fv-cal__day--today,
.fv-cal__day--range-end.fv-cal__day--today {
  border-color: transparent;
}

.fv-cal__day--range-start.fv-cal__day--has-events,
.fv-cal__day--range-end.fv-cal__day--has-events {
  border-color: rgba(255, 255, 255, 0.55);
  border-width: 2px;
}

.fv-pill--compact {
  padding-left: 0.7rem;
  padding-right: 0.7rem;
  min-height: 36px;
}

.fv-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--fv-border);
  background: var(--fv-surface);
  color: var(--fv-text);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}

.fv-pill--ghost {
  background: var(--fv-surface);
}

.fv-pill--ghost:hover,
.fv-pill--tog:hover {
  border-color: #cfcfcf;
}

.fv-pill--tog.is-active {
  border-color: var(--fv-text);
  background: #f3f3f3;
  font-weight: 600;
}

.fv-pill--grow {
  display: inline-flex;
  align-items: center;
  min-width: min(100%, 220px);
  max-width: 100%;
}

.fv-filters__group .fv-pill--grow {
  min-width: 0;
  width: 100%;
}

.fv-pill--has-select {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.fv-pill__ico {
  flex-shrink: 0;
  margin-left: 0.65rem;
  color: var(--fv-text-secondary);
}

.fv-pill__chev {
  flex-shrink: 0;
  margin-right: 0.55rem;
  color: var(--fv-text-secondary);
  pointer-events: none;
}

.fv-pill__select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 1rem;
  border: none;
  z-index: 2;
}

.fv-pill__label--select-value {
  position: relative;
  z-index: 1;
  pointer-events: none;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 0.35rem 0 0.75rem;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fv-pill--grow .fv-pill__select {
  z-index: 2;
}

.fv-pill--grow .fv-pill__chev {
  position: relative;
  z-index: 1;
  pointer-events: none;
  margin-left: auto;
  margin-right: 0.55rem;
}

.fv-filters__meta {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--fv-text-secondary);
}

.plan-card[hidden] {
  display: none !important;
}

/* —— Card grid —— */
.fv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 1rem 0.75rem;
}

@media (min-width: 640px) {
  .fv-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem 1rem;
  }
}

@media (min-width: 1024px) {
  .fv-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* —— Plan card (full-card link like fever listings) —— */
.plan-card {
  display: flex;
  flex-direction: column;
  background: var(--fv-surface);
  border-radius: var(--fv-radius);
  overflow: hidden;
  border: 1px solid var(--fv-border);
  box-shadow: var(--fv-shadow);
  min-height: 100%;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.plan-card:hover {
  box-shadow: var(--fv-shadow-hover);
  transform: translateY(-2px);
}

.plan-card:focus-visible {
  outline: 2px solid var(--fv-accent);
  outline-offset: 2px;
}

.plan-card__media {
  aspect-ratio: 1 / 1;
  background: #ececec;
}

.plan-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plan-card__body {
  padding: 0.75rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.plan-card__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--fv-text);
}

.plan-card__venue {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--fv-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plan-card__row {
  margin: 0.35rem 0 0;
  margin-top: auto;
  padding-top: 0.35rem;
}

.plan-card__price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fv-accent);
  letter-spacing: -0.01em;
}

/* —— Index / dev placeholder —— */
.hero {
  padding: 2.5rem 1.25rem 3rem;
  background: var(--fv-surface);
  border-bottom: 1px solid var(--fv-border);
}

.hero__inner {
  max-width: var(--fv-max);
  margin: 0 auto;
}

.hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin: 0;
  max-width: 720px;
  color: var(--fv-text-secondary);
  font-size: 0.95rem;
}

.hero__subtitle code {
  font-size: 0.85em;
  background: var(--fv-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--fv-border);
}

/* —— Sticky CTA bar —— */
.fv-sticky-cta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.fv-sticky-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  background: var(--fv-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.1s ease;
}

.fv-sticky-cta__btn:hover {
  background: var(--fv-accent-hover);
  transform: translateY(-1px);
}

.fv-sticky-cta__btn:active {
  transform: translateY(0);
}

/* push body down so the sticky bar doesn't cover content */
body:has(.fv-sticky-cta) {
  padding-top: 52px;
}
