:root {
  --maroon: #8d1022;
  --maroon-dark: #700817;
  --gold: #d89a28;
  --navy: #071b31;
  --blue: #1e2d4d;
  --cream-light: #fffaf3;
  --text: #1f2937;
  --muted: #667085;
  --border: #ead8c1;
}

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

body {
  background: var(--cream-light);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

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

button,
input,
select {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* HEADER */

.site-header {
  background: #fffaf3;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 99;
}

.header-inner {
  height: 120px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  width: 310px;
  height: 105px;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.22);
  transform-origin: left center;
}

.navbar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.navbar a {
  font-size: 14px;
  font-weight: 800;
  color: #243044;
  padding: 12px 0;
  position: relative;
  white-space: nowrap;
}

.navbar a:hover,
.navbar a.active {
  color: var(--gold);
}

.navbar a.active::after,
.navbar a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 3px;
  background: var(--gold);
  border-radius: 20px;
}

.login-btn {
  background: var(--maroon);
  color: white;
  padding: 13px 28px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(141, 16, 34, 0.18);
}

.login-btn:hover {
  background: var(--maroon-dark);
}

.menu-btn {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 38px;
  border: none;
  border-radius: 6px;
  background: var(--maroon);
  padding: 9px;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: white;
  margin: 5px 0;
  border-radius: 10px;
}

/* GLOBAL AUTH DROPDOWN */

.auth-menu {
  position: relative;
  flex: 0 0 auto;
}

.user-dropdown {
  position: relative;
}

.user-dropdown-btn {
  min-height: 44px;
  border: none;
  border-radius: 7px;
  background: var(--maroon);
  color: white;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(141, 16, 34, 0.18);
}

.user-dropdown-btn:hover {
  background: var(--maroon-dark);
}

.user-dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 230px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  padding: 10px;
  display: none;
  z-index: 500;
}

.user-dropdown-panel.show {
  display: block;
}

.user-box {
  padding: 12px;
  background: #fff6e9;
  border: 1px solid #ead8c1;
  border-radius: 10px;
  margin-bottom: 8px;
}

.user-box strong {
  display: block;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 4px;
}

.user-box small {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  word-break: break-word;
}

.user-dropdown-panel a,
.user-dropdown-panel button {
  width: 100%;
  min-height: 40px;
  border: none;
  background: transparent;
  color: #243044;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.user-dropdown-panel a:hover,
.user-dropdown-panel button:hover {
  background: #fff6e9;
  color: var(--maroon);
}

.mobile-auth-box {
  display: none;
}

.mobile-auth-box button {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
}

/* HERO */

.hero {
  background:
    radial-gradient(circle at 10% 10%, rgba(216, 154, 40, 0.14), transparent 26%),
    linear-gradient(90deg, #fff7ea 0%, #fff7ea 62%, #f4dec0 100%);
  padding: 42px 0 36px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero-copy h1 {
  max-width: 610px;
  color: var(--blue);
  font-family: "Playfair Display", serif;
  font-size: clamp(48px, 4.6vw, 68px);
  line-height: 0.98;
  letter-spacing: -1px;
}

.hero-copy h1 span {
  display: block;
  color: var(--maroon);
}

.hero-text {
  max-width: 570px;
  margin-top: 22px;
  color: #46566d;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 600;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 900;
}

.primary-btn {
  background: var(--maroon);
  color: white;
}

.secondary-btn {
  border: 1px solid #d5a56e;
  color: var(--maroon);
}

.feature-row {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 650px;
}

.feature-item {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #efd1a3;
  padding: 16px;
  border-radius: 8px;
}

.feature-item span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 50%;
  border: 1px solid #d7a05b;
  color: var(--maroon);
  font-size: 11px;
  font-weight: 900;
}

.feature-item h3 {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 5px;
}

.feature-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.hero-visual {
  position: relative;
}

.hero-image {
  height: 470px;
  background-image: url("https://images.unsplash.com/photo-1600210491369-e753d80a41f3?auto=format&fit=crop&w=1200&q=85");
  background-size: cover;
  background-position: center;
}

.hero-note {
  position: absolute;
  right: 45px;
  top: 48px;
  width: 98px;
  height: 135px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #ecd39c;
  border: 8px solid #d3ad6b;
  color: #5a421f;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.05;
  transform: rotate(-2deg);
}

/* SEARCH */

.search-card {
  margin-top: 34px;
  background: var(--navy);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr 0.75fr;
  gap: 12px;
  box-shadow: 0 16px 34px rgba(7, 27, 49, 0.18);
}

.search-group {
  position: relative;
  padding: 0 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.search-group label {
  display: block;
  color: white;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 9px;
}

.search-group input,
.search-group select {
  width: 100%;
  height: 34px;
  border: none;
  outline: none;
  background: transparent;
  color: #ecf4ff;
  font-size: 14px;
  font-weight: 800;
}

.search-group select {
  cursor: pointer;
}

.search-group select option {
  color: #243044;
  background: #ffffff;
  font-weight: 800;
}

.search-group input::placeholder {
  color: rgba(236, 244, 255, 0.72);
}

.search-card button {
  border: none;
  border-radius: 7px;
  background: var(--gold);
  color: white;
  font-size: 15px;
  font-weight: 900;
}

.search-card button:hover {
  background: #c18418;
}

/* LOCATION DROPDOWN */

.location-search-wrap {
  z-index: 20;
}

.location-dropdown {
  position: absolute;
  left: 14px;
  right: 14px;
  top: calc(100% + 10px);
  background: white;
  border: 1px solid #ead8c1;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  max-height: 260px;
  overflow-y: auto;
  display: none;
  z-index: 50;
}

.location-dropdown.show {
  display: block;
}

.location-option {
  width: 100%;
  border: none;
  background: white;
  text-align: left;
  padding: 12px 14px;
  color: #243044;
  font-size: 13px;
  font-weight: 800;
  border-bottom: 1px solid #f1e4d5;
}

.location-option:last-child {
  border-bottom: none;
}

.location-option strong {
  display: block;
  color: #243044;
  font-size: 13px;
  font-weight: 900;
}

.location-option:hover {
  background: #fff6e9;
  color: var(--maroon);
}

.location-empty {
  padding: 12px 14px;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.location-empty.error {
  color: #8d1022;
}

/* TRUST */

.trust {
  background: white;
  border-top: 1px solid #efe0cc;
  border-bottom: 1px solid #efe0cc;
  padding: 26px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-card {
  background: #fffaf4;
  border: 1px solid #ead8c1;
  padding: 20px;
}

.trust-card span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7a05b;
  border-radius: 50%;
  color: var(--maroon);
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 13px;
}

.trust-card h3 {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 7px;
}

.trust-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

/* SPACES HOME */

.spaces {
  padding: 52px 0 56px;
  background: #fffaf3;
}

.section-heading {
  text-align: center;
  margin-bottom: 32px;
}

.section-heading p {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.6px;
}

.section-heading h2 {
  margin-top: 6px;
  color: var(--blue);
  font-family: "Playfair Display", serif;
  font-size: 42px;
}

.spaces-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.space-card {
  min-height: 245px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background-size: cover;
  background-position: center;
}

.space-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.78));
}

.private-room {
  background-image: url("https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?auto=format&fit=crop&w=700&q=85");
}

.double-sharing {
  background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=700&q=85");
}

.triple-sharing {
  background-image: url("https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=700&q=85");
}

.common-space {
  background-image: url("https://images.unsplash.com/photo-1600210492493-0946911123ea?auto=format&fit=crop&w=700&q=85");
}

.space-content {
  position: relative;
  z-index: 2;
  color: white;
}

.space-content span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--maroon);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 14px;
}

.space-content h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
}

.space-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 14px;
}

.space-content a {
  display: inline-flex;
  background: var(--maroon);
  color: white;
  padding: 9px 20px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 900;
}

/* STATS */

.stats {
  background: linear-gradient(90deg, #910b1f, #760716);
  color: white;
  padding: 26px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-grid div {
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.stats-grid div:last-child {
  border-right: none;
}

.stats-grid strong {
  display: block;
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
}

.stats-grid p {
  margin-top: 6px;
  color: #ffe3e6;
  font-size: 13px;
  font-weight: 700;
}

/* RESPONSIVE */

@media (max-width: 1150px) {
  .header-inner {
    height: 104px;
  }

  .brand {
    width: 260px;
    height: 92px;
  }

  .brand img {
    transform: scale(1.18);
  }

  .navbar {
    gap: 18px;
  }

  .navbar a {
    font-size: 13px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-image {
    height: 390px;
  }

  .trust-grid,
  .spaces-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .header-inner {
    height: 92px;
  }

  .brand {
    width: 210px;
    height: 76px;
  }

  .brand img {
    transform: scale(1.16);
  }

  .menu-btn {
    display: block;
  }

  .auth-menu {
    display: none;
  }

  .navbar {
    display: none;
    position: absolute;
    top: 92px;
    left: 20px;
    right: 20px;
    background: white;
    border: 1px solid var(--border);
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  }

  .navbar.show {
    display: flex;
  }

  .navbar a {
    width: 100%;
    padding: 13px 12px;
  }

  .navbar a::after {
    display: none;
  }

  .mobile-auth-box {
    display: block;
    width: 100%;
  }

  .mobile-auth-box a,
  .mobile-auth-box button {
    display: block;
    width: 100%;
    padding: 13px 12px;
    color: #243044;
    font-size: 14px;
    font-weight: 900;
  }

  .mobile-auth-box a:hover,
  .mobile-auth-box button:hover {
    background: #fff6e9;
    color: var(--maroon);
  }

  .feature-row,
  .search-card {
    grid-template-columns: 1fr;
  }

  .search-group {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-bottom: 12px;
  }

  .search-card button {
    min-height: 50px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 0;
  }

  .stats-grid div:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    height: 82px;
  }

  .brand {
    width: 180px;
    height: 68px;
  }

  .brand img {
    transform: scale(1.12);
  }

  .navbar {
    top: 82px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .trust-grid,
  .spaces-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    height: 300px;
  }

  .hero-note {
    width: 82px;
    height: 112px;
    right: 24px;
    top: 28px;
    font-size: 13px;
    border-width: 6px;
  }

  .stats-grid div {
    border-right: none;
  }
}