/* =========================
   HOME PAGE CSS
   ========================= */

/* Light/Dark Image Auto-Invert */
.icon-wrapper img {
  transition: filter 0.3s ease;
}
@media (prefers-color-scheme: light) {
  .icon-wrapper img { filter: invert(0); }
}
@media (prefers-color-scheme: dark) {
  .icon-wrapper img { filter: invert(1); }
}

/* Sponsor Logos */
.sponsor-logos {
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  text-align: center;
}
.sponsor-logos .column {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sponsor-logo-figure {
  margin: 0 auto;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sponsor-logo-figure img {
  max-height: 130px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sponsor-logo-figure:hover img {
  transform: translateY(-5px) scale(1.05);
}
.sponsor-logo-link:focus,
.sponsor-logo-link:hover,
.sponsor-logo-link:active {
  outline: none !important;
  box-shadow: none !important;
}

#searchModeTabs li {
  margin: 0 8px;
}

/* Theme Vars */
@media (prefers-color-scheme: light) {
  :root {
    --hero-text: #ffffff;
    --card-bg: #ffffff;
    --card-border: #dcdfe3;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --hero-text: #e5e7eb;
    --card-bg: #1a1d21;
    --card-border: #2b3036;
  }
}

/* Hero Section */
.hero-modern {
  padding: 4rem 1.5rem 3rem;
  background: linear-gradient(135deg, #0f6bff 0%, #4f9dff 40%, #6ecbff 100%);
  color: var(--hero-text);
}
.hero-modern .title,
.hero-modern .subtitle {
  color: #ffffff;
}
.hero-modern .subtitle {
  opacity: 0.92;
}

/* Search Card (Glass Effect) */
.search-card {
  margin-top: 1.4rem;
  max-width: 700px;
  padding: 0.9rem 1.2rem 1.1rem;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.85);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #f9fafb;
}
@media (prefers-color-scheme: light) {
  .search-card {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(148, 163, 184, 0.65);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.30);
    color: #0f172a;
  }
}

.search-card .tabs {
  margin-bottom: 0.5rem;
}
.tabs.is-toggle li.is-active a {
  background: #3273dc;
  color: #fff !important;
}
.tabs.is-toggle a {
  border-radius: 12px !important;
}

/* Search Filters */
.search-row .select select {
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.5rem 2.2rem 0.5rem 0.9rem;
  height: 2.8rem;
  border-radius: 12px !important;
}
.search-row .select {
  height: 2.8rem;
  border-radius: 12px !important;
}
.search-row .button {
  height: 2.8rem;
  font-size: 1rem;
}
.search-row .button .icon {
  font-size: 1rem;
}

/* ---------- Airbnb Tabs ---------- */
.pm-tabs {
  padding-bottom: 1.2rem;
  position: relative;
}
.pm-tabs ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pm-tabs li {
  cursor: pointer;
}
.pm-tabs .tab-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: 1.05rem;
  font-weight: 600;
  opacity: .7;
  padding-bottom: .35rem;
  border-bottom: 2px solid transparent;
  transition: all .18s ease;
}
.pm-tabs li.is-active .tab-item {
  opacity: 1;
  border-bottom: 2px solid #fff;
}
@media (prefers-color-scheme: light) {
  .pm-tabs li.is-active .tab-item {
    border-bottom-color: #0f172a;
  }
}
.tab-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Sliding underline */
.tab-underline {
  position: absolute;
  bottom: 15px;
  height: 2px;
  background: #fff;
  width: 0;
  transition: all 0.28s ease;
}
@media (prefers-color-scheme: light) {
  .tab-underline {
    background: #0f172a;
  }
}

/* Search Pill Divider */
.pill-divider {
  width: 1px;
  background: rgba(148, 163, 184, 0.8);
  align-self: stretch;
}
@media (prefers-color-scheme: light) {
  .pill-divider {
    background: rgba(148, 163, 184, 0.6);
  }
}
@media (prefers-color-scheme: dark) {
  .pill-divider {
    background: rgba(255,255,255,0.2);
  }
}

/* Fade Animation */
.fade {
  animation: fadeIn 0.25s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
