/* ============================================================
   StayByOwner — Homepage Page Styles
   design-system.css loaded via head-css.ejs
   ============================================================ */

/* ── Breadcrumbs ───────────────────────────────────────────── */
.breadcrumbs {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--mute);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "\203A";
  margin: 0 0.4rem;
  color: var(--mute-2);
}

.breadcrumbs a {
  color: var(--forest);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs li:last-child {
  color: var(--ink);
  font-weight: 500;
}

/* ── Homepage Hero ─────────────────────────────────────────── */
.hero {
  min-height: 640px;
  background-image: url('https://images.unsplash.com/photo-1520250497591-112f2f40a3f4?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30,58,47,0.72) 0%, rgba(30,58,47,0.55) 60%, rgba(30,58,47,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 32px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ── Search Form ───────────────────────────────────────────── */
.hotel-search-form {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.search-fields {
  display: flex;
  gap: 6px;
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.search-field {
  flex: 1;
  position: relative;
}

.search-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  outline: none;
  transition: border-color var(--t-base);
}

.search-field input:focus {
  border-color: var(--forest);
  background: #fff;
}

.search-btn {
  padding: 12px 28px;
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--f-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-base);
  min-height: 44px;
}

.search-btn:hover {
  background: var(--forest-2);
}

/* ── Search Suggestions ────────────────────────────────────── */
.search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  max-height: 240px;
  overflow-y: auto;
  z-index: 200;
  box-shadow: var(--shadow-md);
}

.search-suggestions.active {
  display: block;
}

.suggestion-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}

.suggestion-item:hover,
.suggestion-item.highlighted {
  background: var(--cream-2);
}

.suggestion-item:last-child {
  border-bottom: none;
}

/* ── Featured Destinations Slider ──────────────────────────── */
.featured-destinations {
  padding: 64px 32px;
  background: var(--paper);
}

.featured-destinations .section-header {
  max-width: 1320px;
  margin: 0 auto 32px;
}

.section-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mute-2);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

.slider-wrap {
  max-width: 1320px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.slide-link {
  text-decoration: none;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.slide {
  width: 240px;
  height: 300px;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s;
}

.slide:hover {
  transform: scale(1.03);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

/* ── City Guides Section ───────────────────────────────────── */
.city-guides-section {
  padding: 64px 32px;
  background: var(--cream);
}

.city-guides-section .section-header {
  max-width: 1320px;
  margin: 0 auto 40px;
}

.section-description {
  font-size: 0.95rem;
  color: var(--mute);
  margin-top: 8px;
}

.city-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
}

.city-guide-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.city-guide-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.city-guide-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--cream-2);
}

.city-guide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.city-guide-card:hover .city-guide-image img {
  transform: scale(1.06);
}

.city-guide-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 100%);
}

.city-guide-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.hotel-count {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.city-guide-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.city-name {
  font-size: 1.15rem;
  margin: 0 0 4px;
  color: var(--ink);
  font-weight: 600;
}

.city-location {
  color: var(--mute);
  margin: 0 0 auto;
  font-size: 0.875rem;
}

.city-guide-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.avg-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ochre);
}

.duration {
  font-size: 0.8rem;
  color: var(--mute);
  background: var(--cream-2);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

/* ── More Destinations / Links ─────────────────────────────── */
.all-city-guides-links {
  max-width: 1320px;
  margin: 48px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.all-city-guides-links h3 {
  font-size: 1rem;
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mute-2);
  margin-bottom: 20px;
  font-weight: 500;
}

.location-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.location-links a {
  text-decoration: none;
  color: var(--mute);
  font-size: 0.875rem;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  transition: border-color var(--t-base), color var(--t-base), background var(--t-base);
}

.location-links a:hover {
  border-color: var(--forest);
  color: var(--forest);
  background: var(--cream);
}

.view-all-guides {
  margin-top: 28px;
}

/* ── Why StayByOwner ───────────────────────────────────────── */
.why-section {
  padding: 72px 32px;
  background: var(--forest);
}

.why-section .section-header {
  max-width: 1320px;
  margin: 0 auto 48px;
}

.why-section .section-eyebrow {
  color: rgba(255,255,255,0.5);
}

.why-section .section-title {
  color: #fff;
}

.why-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 32px;
}

.why-icon {
  font-size: 1.5rem;
  margin-bottom: 16px;
  display: block;
}

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px;
}

.why-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin: 0;
}

/* ── Intro Text (legacy fallback) ──────────────────────────── */
.intro-text {
  padding: 40px 32px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--mute);
  line-height: 1.7;
}

/* ── Destination Cards ─────────────────────────────────────── */
.destination-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.destination-card {
  position: relative;
  width: 200px;
  height: 250px;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.destination-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.destination-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.destination-name {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 24px 12px 14px;
  font-weight: 600;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 992px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 480px;
  }

  .hero-content {
    padding: 60px 24px;
  }

  .search-fields {
    flex-direction: column;
    gap: 6px;
  }

  .search-btn {
    width: 100%;
  }

  .featured-destinations,
  .city-guides-section,
  .why-section {
    padding: 48px 24px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .city-guides-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 400px;
  }

  .city-guides-grid {
    grid-template-columns: 1fr;
  }

  .city-guide-info {
    padding: 16px;
  }

  .destination-card {
    width: 150px;
    height: 200px;
  }
}

/* ── USP Strip ────────────────────────────────────────── */
.usp-strip {
  background: var(--forest, #1e3a2f);
  color: var(--paper, #faf7f1);
  padding: 20px 32px;
}
.usp-strip-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.usp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.usp-icon {
  font-size: 1.1rem;
  color: var(--ochre, #c8924a);
  flex-shrink: 0;
}
.usp-item strong {
  font-weight: 600;
  color: var(--paper, #faf7f1);
  margin-right: 4px;
}
.usp-item span {
  color: var(--mute-2, #9a8f82);
}
@media (max-width: 640px) {
  .usp-strip-inner { gap: 20px; flex-direction: column; align-items: flex-start; }
}

/* ── Owner Direct trust badge ────────────────────────── */
.trust-badge--owner {
  background: var(--ochre, #c8924a);
  color: var(--paper, #faf7f1);
  border-radius: var(--r-pill, 999px);
  padding: 4px 12px;
  font-weight: 600;
}
