@import url("../base.css");

/* ══════════════════════════════════════
       HERO
    ══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--navbar-height);
  margin-bottom: 40px;
}

/* Background image */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 80vh;

  background-image: url("../../assets/find-venue/hero-bg.jpg");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__bg::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: #000000b6;
}

/* Dark overlay layers (from Figma: #000 50%, #202020 0%, #000 67%, gradient) */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Extra bottom vignette */
.hero__overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  z-index: 2;
}

/* Content */
.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;

  h2 {
    max-width: 600px;
    width: 100%;
    font-weight: 100;
  }

  p {
    font-size: 20px;
  }
}

/* ══════════════════════════════════════
       FILTER BAR
    ══════════════════════════════════════ */
.filter-bar {
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  width: 100%;
  position: relative;
}

/* ── DROPDOWN WRAPPER ────────────────── */
.dropdown {
  position: relative;
}

/* ── TRIGGER BUTTON ──────────────────── */
.dropdown__trigger {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.625rem 0.875rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition);
  text-align: left;
}

.dropdown__trigger:hover {
  border-color: var(--color-border);
}

.dropdown.is-open .dropdown__trigger {
  border-color: var(--color-border-focus);
  background: var(--color-surface-dropdown);
}

/* Label row (top) */
.dropdown__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dropdown__label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

.dropdown__chevron {
  width: 14px;
  height: 14px;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition:
    transform var(--transition),
    color var(--transition);
}

.dropdown.is-open .dropdown__chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

/* Value row (bottom) */
.dropdown__value-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown__icon {
  width: 16px;
  height: 16px;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.dropdown.is-open .dropdown__icon {
  color: var(--color-primary);
}

.dropdown__value {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown__value.has-value {
  color: var(--color-text-primary);
  font-weight: 500;
}

/* ── PANEL ───────────────────────────── */
.dropdown__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  z-index: 200;
  display: none;
  box-shadow: var(--shadow-dropdown);
  animation: panelIn 160ms ease;
}

.dropdown.is-open .dropdown__panel {
  display: block;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── OPTION ITEMS ────────────────────── */
.dropdown__option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition);
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
}

.dropdown__option:hover {
  background: var(--color-hover-subtle);
  color: var(--color-text-primary);
}

.dropdown__option.is-selected {
  color: var(--color-primary);
  background: var(--color-primary-bg);
}

.dropdown__option-icon {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
  flex-shrink: 0;
  opacity: 0;
}
.dropdown__option.is-selected .dropdown__option-icon {
  opacity: 1;
}

/* ── WHERE: search input ─────────────── */
.dropdown__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.dropdown__search svg {
  width: 14px;
  height: 14px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.dropdown__search input {
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.8125rem;
  color: var(--color-text-primary);
  width: 100%;
}

.dropdown__search input::placeholder {
  color: var(--color-text-muted);
}

/* location images row */
.dropdown__locations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.375rem;
  margin-top: 0.375rem;
}

.dropdown__loc-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
  transition: border-color var(--transition);
}

.dropdown__loc-thumb:hover {
  border-color: var(--color-primary);
}

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

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 700px) {
  .filter-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 400px) {
  .filter-bar {
    grid-template-columns: 1fr;
  }
}

/* venue section */
.venue-section {
  max-width: 1200px;
  margin: 40px auto;
}

.venue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.venue-header p {
  font-size: 22px;
  font-weight: 500;
  color: #e0e0e0;
}

.venue-header a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c59b27;
  text-decoration: none;
  font-size: 16px;
  transition: opacity 0.2s;
}

.venue-header a:hover {
  opacity: 0.8;
}

.venue-header a img {
  width: 14px;
  height: 14px;
}

.venue-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 24px;
}

.venue-card {
  display: flex;
  flex-direction: column;
  transition: 0.3s;

  &:hover {
    transform: translateY(-5px);
  }
}

.venue-card .top {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
}

.venue-card .top > img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.venue-card .top span {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--color-overlay-soft);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.venue-card .top span::after {
  content: "4.9";
}

.venue-card .top span img {
  width: 14px;
  height: 14px;
}

.venue-card .bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 14px;
}

.venue-card .bottom .left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.venue-card .bottom .title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
}

.venue-card .bottom .location {
  color: #888888;
  font-size: 14px;
}

.venue-card .bottom .price {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.venue-card .bottom .price span {
  color: #666666;
  font-size: 14px;
  font-weight: 400;
  margin-left: 4px;
}

@media (max-width: 900px) {
  .venue-body {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .venue-body {
    grid-template-columns: 1fr;
  }
}

/* ── WHY SECTION ─────────────────────────── */
.why {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  margin-bottom: 100px;
  margin-top: 100px;
}

/* ── HEADER ──────────────────────────── */
.why__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.why__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.625rem;
}

.why__sub {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

/* ══════════════════════════════════════
       BENTO GRID
       Row 1: [card-wide (col 1-2)] [card-small (col 3)]
       Row 2: [card-small (col 1)] [card-wide (col 2-3)]
    ══════════════════════════════════════ */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

/* Card 1 — spans 2 cols, row 1 */
.why-card:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1;
}

/* Card 2 — col 3, row 1 */
.why-card:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}

/* Card 3 — col 1, row 2 */
.why-card:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

/* Card 4 — spans cols 2-3, row 2 */
.why-card:nth-child(4) {
  grid-column: 2 / 4;
  grid-row: 2;
}

/* ── BASE CARD ───────────────────────── */
.why-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
  min-height: 280px;
  transition: 0.3s;
  cursor: default;

  /* bg image — replace url() per card */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.why-card:hover {
  border-color: rgba(212, 146, 26, 0.25);
  transform: translateY(-2px);
}

/* ── GRADIENT OVERLAY (per card) ─────── */
.why-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Card 1: dark left, golden-tinted right (phone image on right) */
.why-card:nth-child(1) .why-card__overlay {
  background: linear-gradient(
    105deg,
    rgba(10, 8, 5, 0.97) 0%,
    rgba(15, 10, 5, 0.88) 35%,
    rgba(30, 18, 5, 0.55) 60%,
    rgba(97, 56, 7, 0.459) 80%,
    rgba(107, 60, 6, 0.452) 100%
  );
}

/* Card 2: dark bottom, golden-tinted top-right (icon top-right) */
.why-card:nth-child(2) .why-card__overlay {
  background: linear-gradient(
    145deg,
    rgba(60, 35, 5, 0.15) 0%,
    rgba(20, 12, 3, 0.65) 45%,
    rgba(10, 8, 5, 0.97) 100%
  );
}

/* Card 3: dark overall with subtle golden bottom (icon bottom-right) */
.why-card:nth-child(3) .why-card__overlay {
  background: linear-gradient(
    135deg,
    rgba(10, 8, 5, 0.95) 0%,
    rgba(15, 10, 4, 0.8) 50%,
    rgba(40, 25, 5, 0.45) 80%,
    rgba(60, 38, 5, 0.2) 100%
  );
}

/* Card 4: dark left text area, golden-tinted right (icon right) */
.why-card:nth-child(4) .why-card__overlay {
  background: linear-gradient(
    100deg,
    rgba(10, 8, 5, 0.97) 0%,
    rgba(18, 12, 4, 0.85) 40%,
    rgba(35, 22, 4, 0.55) 65%,
    rgba(60, 38, 5, 0.25) 85%,
    rgba(80, 50, 5, 0.1) 100%
  );
}

/* ── WATERMARK DOTS pattern ──────────── */
/* subtle scattered symbols in bg */
.why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(
    circle,
    rgba(212, 146, 26, 0.12) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
}

/* ── CONTENT ─────────────────────────── */
.why-card__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

/* Card 1: text left, icon right */
.why-card:nth-child(1) .why-card__content {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Card 2: icon top-right, text bottom-left */
.why-card:nth-child(2) .why-card__content {
  justify-content: space-between;
}

/* Card 3: text top, icon bottom-right */
.why-card:nth-child(3) .why-card__content {
  justify-content: space-between;
}

/* Card 4: text left, icon right */
.why-card:nth-child(4) .why-card__content {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* ── TEXT BLOCK ──────────────────────── */
.why-card__text {
  flex: 1;
  min-width: 0;
}

.why-card__title {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.why-card__desc {
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 380px;
}

/* ── ICON BLOCK ──────────────────────── */
.why-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d6ae64;
}

.why-card__icon svg {
  filter: drop-shadow(0 0 12px rgba(212, 178, 26, 0.35));
}

/* Card 1 icon: large phone+envelope illustration */
.why-card:nth-child(1) .why-card__icon svg {
  width: 220px;
  height: 220px;
}

/* Card 2 icon: top-right, self-align */
.why-card:nth-child(2) .why-card__icon {
  align-self: flex-end;
}
.why-card:nth-child(2) .why-card__icon svg {
  width: 100px;
  height: 100px;
}

/* Card 3 icon: bottom-right */
.why-card:nth-child(3) .why-card__icon {
  align-self: flex-end;
}
.why-card:nth-child(3) .why-card__icon svg {
  width: 110px;
  height: 110px;
}

/* Card 4 icon: large right */
.why-card:nth-child(4) .why-card__icon svg {
  width: 120px;
  height: 120px;
}

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 860px) {
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-card:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  .why-card:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .why-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .why-card:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 3;
  }
}

@media (max-width: 540px) {
  .why__grid {
    grid-template-columns: 1fr;
  }
  .why-card:nth-child(1),
  .why-card:nth-child(2),
  .why-card:nth-child(3),
  .why-card:nth-child(4) {
    grid-column: 1;
    grid-row: auto;
  }
  .why-card:nth-child(1) .why-card__content,
  .why-card:nth-child(4) .why-card__content {
    flex-direction: column;
    align-items: flex-start;
  }
  .why-card__icon svg {
    width: 80px !important;
    height: 80px !important;
  }
}

/* ══════════════════════════════════════
       CTA BANNER
    ══════════════════════════════════════ */
.cta-banner {
  margin-top: 20px;
  margin-bottom: 20px;
  position: relative;
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-image: url(../../assets/event/exploringImage.png);
}

/* ── GRADIENT OVERLAY (::before) ────── */
/* Dark on left → transparent → golden tint on right */
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    #090909 0%,
    #090909 28%,
    rgba(9, 9, 9, 0.92) 38%,

    #d4931a62 100%
  );
}

/* top & bottom fade */

/* ── CONTENT ─────────────────────────── */
.cta-banner__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding: 3.5rem clamp(1.5rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.cta-banner__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.15;
  max-width: 480px;
}

.cta-banner__sub {
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.cta-banner__btn {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2.5rem;
  background: var(--color-primary);
  color: #000;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition:
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  min-width: 160px;
}

.cta-banner__btn:hover {
  background: var(--color-primary-light);
  box-shadow: 0 6px 24px rgba(212, 146, 26, 0.4);
}

.cta-banner__btn:active {
  transform: scale(0.97);
}

/* ── RESPONSIVE ──────────────────────── */

@media (max-width: 480px) {
  .cta-banner {
    min-height: 280px;
  }

  .cta-banner::before {
    background: linear-gradient(
      to right,
      #090909 0%,
      #090909 40%,
      rgba(9, 9, 9, 0.85) 65%,
      rgba(9, 9, 9, 0.5) 100%
    );
  }
}
