/* ──────────────────────────────────────────────
   Hotel Booking Site — Global Styles
   ────────────────────────────────────────────── */

/* ── Reset & Base ────────────────────────────── */

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

:root {
  --primary: #EC4899;
  --primary-dark: #DB2777;
  --text: #1a1a2e;
  --text-light: #555;
  --bg: #ffffff;
  --bg-light: #f8f9fb;
  --border: #e5e7eb;
  --radius: 12px;
  --max-width: 1200px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-logo: 'Pacifico', cursive;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

/* ── Typography ──────────────────────────────── */

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

/* ── Layout ──────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--light {
  background: var(--bg-light);
}

/* ── Header / Nav ────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
  stroke: var(--text);
}

/* ── Hero ─────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 520px;
  padding: 80px 24px;
  background: linear-gradient(135deg, #4a3560 0%, #6b3f7a 40%, #b05080 80%, #EC4899 100%);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="200" cy="150" r="300" fill="rgba(255,255,255,0.03)"/><circle cx="900" cy="400" r="250" fill="rgba(255,255,255,0.02)"/></svg>') center/cover no-repeat;
}

.hero__content {
  position: relative;
  max-width: 1000px;
  width: 100%;
}

.hero h1 {
  color: #fff;
  font-size: 3.2rem;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero__tagline {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

/* Destination hero variant */
.hero--destination {
  min-height: 400px;
  background-size: cover;
  background-position: center;
}

.hero--destination::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.75));
}

.hero--destination .hero__content {
  z-index: 1;
}

/* ── Search Bar Section ──────────────────────── */

.search-section {
  width: 70%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.search-section--hero {
  margin-top: 0;
}

#search-bar {
  min-height: 60px;
}

/* LiteAPI SDK widget overrides — fix white-on-white inherited from .hero */
#search-bar,
#search-bar * {
  color: #333 !important;
}

#search-bar form,
#search-bar > div {
  width: 100% !important;
  max-width: none !important;
}

/* Button: prevent truncation — don't let flexbox shrink it */
#search-bar button[type="submit"],
#search-bar [class*="search-btn"],
#search-bar [class*="SearchBtn"],
#search-bar [class*="submit"] {
  flex-shrink: 0 !important;
  min-width: 180px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
  color: #fff !important;
}

/* Let the location input shrink to give button room */
#search-bar input[type="text"],
#search-bar [class*="location"],
#search-bar [class*="Location"],
#search-bar [class*="place"],
#search-bar [class*="Place"],
#search-bar [class*="destination"],
#search-bar [class*="Destination"] {
  flex-shrink: 1 !important;
  min-width: 0 !important;
}

/* Dropdown / autocomplete results */
#search-bar [class*="autocomplete"] li,
#search-bar [class*="suggestion"],
#search-bar [class*="Suggestion"],
#search-bar ul li,
#search-bar [class*="dropdown"] li,
#search-bar [class*="Dropdown"] li {
  color: #333 !important;
  background: #fff !important;
}

#search-bar ul li:hover,
#search-bar [class*="autocomplete"] li:hover,
#search-bar [class*="dropdown"] li:hover {
  background: #f3f4f6 !important;
}

/* ── Destinations Grid ───────────────────────── */

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.destination-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

.destination-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.destination-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.destination-card:hover .destination-card__img {
  transform: scale(1.05);
}

.destination-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
}

.destination-card__body {
  position: relative;
  z-index: 1;
  padding: 28px;
  color: #fff;
  width: 100%;
}

.destination-card__body h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.destination-card__body p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin: 0;
}

/* ── How It Works ────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  text-align: center;
}

.step {
  padding: 32px 20px;
}

.step__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: 50%;
  font-size: 1.8rem;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ── Section Headings ────────────────────────── */

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section__header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ── Destination Page Content ────────────────── */

.dest-intro {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 750px;
}

.widget-section {
  padding: 60px 0;
}

.widget-section h2 {
  margin-bottom: 24px;
}

.guide-section {
  padding: 60px 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.guide-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 32px;
}

.guide-card h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

.guide-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* ── Map Container ───────────────────────────── */

#hotel-map {
  height: 500px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── Footer ──────────────────────────────────── */

.site-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 12px;
  display: inline-flex;
}

.footer-brand .logo img {
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ── Breadcrumb ─────────────────────────────── */

.breadcrumb {
  padding: 14px 0;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb__sep {
  margin: 0 8px;
  color: var(--border);
}

/* ── Featured Hotels Section ───────────────── */

.featured-hotels-section {
  padding: 60px 0;
  background: var(--bg-light);
}

.featured-hotels-section h2 {
  margin-bottom: 32px;
}

.hotel-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.hotel-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.hotel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  color: var(--text);
}

.hotel-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.hotel-card__placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.hotel-card__body {
  padding: 20px 24px 24px;
}

.hotel-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.hotel-card__stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

.hotel-card__price {
  color: var(--text-light);
  font-weight: 600;
}

.hotel-card__neighbourhood {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.hotel-card__tagline {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.hotel-card h3 {
  margin-bottom: 4px;
}

/* ── Hotel Detail Page ─────────────────────── */

.hotel-detail {
  max-width: 800px;
}

.hotel-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.hotel-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.hotel-price {
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
}

.hotel-neighbourhood {
  color: var(--primary);
  font-weight: 500;
}

.hotel-address {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.hotel-description {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.hotel-highlights {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 32px;
}

.hotel-highlights h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

.hotel-highlights p {
  color: var(--text-light);
  margin: 0;
  font-style: italic;
}

.hotel-amenities {
  margin-bottom: 32px;
}

.hotel-amenities h3 {
  margin-bottom: 16px;
}

.amenity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.amenity-list li {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--text);
}

.hotel-gallery {
  margin-bottom: 32px;
}

.hotel-gallery h3 {
  margin-bottom: 16px;
}

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

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.star {
  color: #f59e0b;
}

/* ── Hero Hotel Variant ────────────────────── */

.hero--hotel {
  background: linear-gradient(135deg, #1a1a2e, #831843);
  background-size: cover;
  background-position: center;
}

/* ── Widget Loading Skeleton ─────────────────── */

.widget-placeholder {
  background: var(--bg-light);
  border-radius: var(--radius);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Responsive ──────────────────────────────── */

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }

  .hero {
    min-height: 420px;
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .section {
    padding: 56px 0;
  }

  .destinations-grid,
  .hotel-cards-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Mobile nav */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  #hotel-map {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .hero__tagline {
    font-size: 1rem;
  }

  .container {
    padding: 0 16px;
  }
}
