@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700;800&display=swap");

:root {
  --page: #f4f5f7;
  --surface: #ffffff;
  --ink: #222222;
  --muted: #666666;
  --line: #e6e8ec;
  --soft: #f8f8f8;
  --brand: #d8232a;
  --brand-dark: #b71920;
  --brand-soft: #fff0f1;
  --dark: #1f2933;
  --success: #178349;
  --warning: #a76200;
  --info: #1f5fbf;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: 42px;
  line-height: 1.14;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.28;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.36;
}

p {
  color: var(--muted);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.header .container {
  padding: 0;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-size: 22px;
  font-weight: 900;
}

.logo a::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 9px 9px 5px 5px;
  background:
    linear-gradient(135deg, transparent 42%, #ffffff 43% 57%, transparent 58%),
    var(--brand);
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-menu a,
.bell,
.noti-header button {
  position: relative;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 0 13px;
  background: transparent;
  color: #2b2b2b;
  font-size: 14px;
  font-weight: 700;
}

.nav-menu a:hover,
.bell:hover,
.noti-header button:hover {
  background: transparent;
  color: var(--brand);
}

.nav-menu > a:not(.btn-login):not(.btn-register):not(.btn-logout)::after,
.bell::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.nav-menu > a:not(.btn-login):not(.btn-register):not(.btn-logout):hover::after,
.bell:hover::after {
  transform: scaleX(1);
}

.btn-register,
.btn-logout {
  background: var(--brand) !important;
  color: #ffffff !important;
}

.btn-login {
  border: 1px solid var(--line);
  background: #ffffff !important;
}

.user-menu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 8px;
}

.user-menu span {
  max-width: 130px;
  overflow: hidden;
  border-radius: 999px;
  padding: 8px 10px;
  background: var(--soft);
  color: #333333;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Buttons and fields */
.btn,
.btn-primary,
.btn-book,
.btn-confirm,
.btn-danger,
.btn-success,
.search-form button,
.auth-box button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 0 18px;
  background: var(--brand);
  color: #ffffff !important;
  font-weight: 850;
}

.btn:hover,
.btn-primary:hover,
.btn-book:hover,
.btn-confirm:hover,
.search-form button:hover,
.auth-box button:hover {
  background: var(--brand-dark);
}

.btn-success {
  background: var(--success);
}

.btn-danger {
  background: var(--brand-dark);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d9dce1;
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(216, 35, 42, 0.12);
}

/* Homepage */
.bds-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(21, 24, 31, 0.82), rgba(21, 24, 31, 0.42)),
    url("../images/default.svg") center/cover;
}

.bds-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(244, 245, 247, 0), var(--page));
}

.bds-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1fr);
  gap: 34px;
  align-items: center;
  padding: 64px 0 88px;
}

.hero-copy {
  color: #ffffff;
}

.hero-copy h1 {
  color: #ffffff;
  font-size: 44px;
}

.hero-copy p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow--light {
  color: #ffffff;
}

.hero-search-panel {
  border-radius: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
}

.search-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 999px;
  background: #f2f3f5;
}

.search-tabs button {
  min-height: 38px;
  flex: 1;
  border: 0 !important;
  border-radius: 999px;
  padding: 0 14px;
  background: transparent !important;
  color: #4b5563;
  font-weight: 850;
}

.search-tabs button.is-active {
  background: var(--brand) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(216, 35, 42, 0.22);
}

.search-form {
  display: grid;
  grid-template-columns:
    minmax(220px, 1fr) minmax(150px, 180px) minmax(150px, 180px)
    128px;
  gap: 10px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #ffffff;
}

.search-form label {
  display: grid;
  gap: 5px;
}

.search-form span,
.form-group label {
  color: #555555;
  font-size: 12px;
  font-weight: 850;
}

.search-form button {
  align-self: end;
}

.quick-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}

.quick-links span {
  color: #666666;
  font-size: 13px;
  font-weight: 800;
}

.quick-links a {
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--brand-soft);
  color: var(--brand) !important;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none !important;
}

.stats-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: -44px;
}

.stats-strip article,
.category-grid a,
.location-grid a,
.news-grid article,
.filter-sidebar,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.stats-strip article {
  padding: 20px;
}

.stats-strip strong {
  display: block;
  color: var(--brand);
  font-size: 30px;
  line-height: 1;
}

.stats-strip span {
  display: block;
  margin-top: 7px;
  color: #555555;
  font-weight: 750;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-link {
  color: var(--brand) !important;
  font-weight: 850;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.property-card,
.listing-card,
.room-card,
.booking-card,
.success-box,
.booking-summary,
.auth-box,
.stat,
.room-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.property-card {
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.property-card:hover,
.listing-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.property-card a {
  display: block;
}

.property-media {
  position: relative;
  overflow: hidden;
  background: #eceff3;
}

.property-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.property-media span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.property-content {
  padding: 14px;
}

.property-content h3 {
  min-height: 46px;
  color: #202020;
}

.property-address {
  min-height: 42px;
  margin-bottom: 12px;
  color: var(--muted);
}

.property-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.property-meta strong,
.listing-meta strong,
.room-card .price,
.booking-summary .total,
.detail-price {
  color: var(--brand);
  font-weight: 900;
}

.property-meta span,
.listing-meta span {
  color: var(--muted);
  font-size: 13px;
}

.location-grid,
.category-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.location-grid a,
.category-grid a,
.news-grid article {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 18px;
}

.location-grid a {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(31, 41, 51, 0.9), rgba(216, 35, 42, 0.65)),
    url("../images/default.svg") center/cover;
}

.location-grid strong,
.category-grid strong {
  font-size: 17px;
}

.location-grid span,
.category-grid span,
.news-grid p {
  color: inherit;
  opacity: 0.82;
}

.category-grid a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.news-grid {
  grid-template-columns: repeat(3, 1fr);
}

.news-grid article span {
  color: var(--brand);
  font-weight: 900;
}

/* Search result */
.search-page-head {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.search-page-head .container {
  padding: 28px 0;
}

.search-page-head h1 {
  font-size: 30px;
}

.listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}

.listing-list {
  display: grid;
  gap: 12px;
}

.listing-card {
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.listing-card a {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  padding: 12px;
}

.listing-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
}

.listing-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.filter-sidebar a {
  border-radius: var(--radius);
  padding: 9px 10px;
  background: var(--soft);
  font-weight: 750;
}

.filter-sidebar a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.empty-state {
  padding: 24px;
  color: var(--muted);
}

/* Detail and booking */
.detail-page {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 22px;
  align-items: stretch;
}

.detail-gallery,
.detail-summary,
.description-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.detail-gallery {
  overflow: hidden;
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.detail-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.detail-summary h1 {
  font-size: 30px;
}

.detail-facts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-facts span,
.room-card li,
.status {
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--soft);
  color: #444444;
  font-size: 13px;
  font-weight: 800;
}

.detail-body {
  display: grid;
  gap: 20px;
}

.description-panel,
.room-card,
.booking-summary,
.booking-card,
.success-box {
  padding: 18px;
}

.room-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 20px;
  margin: 12px 0;
}

.room-card ul {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.room-action {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.sold-out {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 850;
}

.booking-summary {
  background: #fff8f0;
}

.booking-card {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.booking-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.status-pending {
  background: #fff7ed;
  color: var(--warning);
}

.status-confirmed {
  background: #eff6ff;
  color: var(--info);
}

.status-checked_in {
  background: #f0fdf4;
  color: var(--success);
}

.status-checked_out {
  background: #f3f4f6;
  color: #555555;
}

.status-cancelled {
  background: var(--brand-soft);
  color: var(--brand);
}

/* Forms and auth */
.form-group {
  margin: 14px 0;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  max-width: 620px;
}

.auth-container {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.32)),
    url("../images/default.svg") center/cover;
}

.auth-box {
  width: min(100%, 420px);
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-box h1 {
  font-size: 26px;
  text-align: center;
}

.auth-box button {
  width: 100%;
  margin-top: 8px;
}

.auth-box p {
  text-align: center;
}

.auth-box a {
  color: var(--brand);
  font-weight: 800;
}

.alert {
  margin: 14px 0;
  border-radius: var(--radius);
  padding: 12px 14px;
}

.error,
.alert.error {
  border: 1px solid #ffc9c9;
  background: var(--brand-soft);
  color: var(--brand);
}

/* Notification */
.notification-wrapper {
  position: relative;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  z-index: 80;
}

.noti-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.noti-item {
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
}

.noti-item:hover {
  background: var(--soft);
}

.noti-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

/* Admin */
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.admin-nav a {
  border-radius: var(--radius) !important;
  padding: 10px 14px !important;
  background: var(--brand) !important;
  color: #ffffff !important;
  font-weight: 800;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.stat {
  padding: 18px;
}

.stat .number {
  color: var(--brand) !important;
  font-size: 30px;
  font-weight: 900;
}

.stat .label {
  color: var(--muted);
}

table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  background: var(--surface);
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f8f8f8 !important;
  color: #444444;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fffafa;
}

.form-inline {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px !important;
  align-items: end !important;
  border: 1px solid var(--line);
  border-radius: var(--radius) !important;
  padding: 16px !important;
  background: var(--surface) !important;
}

.room-item {
  margin: 12px 0 !important;
  padding: 16px !important;
}

/* Footer */
.footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: #242424;
  color: #f1f1f1;
  text-align: center;
}

.footer .container {
  padding: 28px 0;
}

.footer p {
  margin: 0;
  color: #f1f1f1;
}

/* Strong fallback against stale/default styling */
.home-hero .search-tabs button,
.home-hero .quick-links a,
.category-grid a,
.location-grid a,
.news-grid article,
.property-card a {
  text-decoration: none !important;
}

.home-hero .search-tabs button {
  appearance: none;
}

@media (max-width: 980px) {
  .bds-hero .container {
    grid-template-columns: 1fr;
  }

  .search-form,
  .listing-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .location-grid,
  .category-grid,
  .news-grid,
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .listing-card a {
    grid-template-columns: 180px 1fr;
  }
}

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

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

  h2 {
    font-size: 21px;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
  }

  .nav-menu {
    justify-content: flex-start;
    width: 100%;
  }

  .bds-hero .container {
    padding: 34px 0 54px;
  }

  .hero-search-panel {
    padding: 12px;
  }

  .section-heading,
  .booking-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-strip,
  .location-grid,
  .category-grid,
  .news-grid,
  .property-grid,
  .listing-card a,
  .room-card {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    margin-top: 0;
  }

  .room-action {
    justify-items: start;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* UI v3: polished user-facing experience */
:root {
  --page: #f6f7fb;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #6b7280;
  --line: #e7e9ef;
  --soft: #f7f8fb;
  --brand: #d71920;
  --brand-dark: #aa1218;
  --brand-soft: #fff0f1;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.11);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.07);
  --radius: 10px;
}

body {
  background:
    radial-gradient(
      circle at top left,
      rgba(215, 25, 32, 0.06),
      transparent 360px
    ),
    linear-gradient(180deg, #ffffff 0, #f6f7fb 420px);
  color: var(--ink);
  font-family: "Lexend", Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.container {
  width: min(1200px, calc(100% - 40px));
}

h1 {
  font-size: 44px;
  font-weight: 800;
}

h2 {
  font-size: 26px;
  font-weight: 800;
}

h3 {
  font-weight: 700;
}

.header {
  border-bottom: 1px solid rgba(231, 233, 239, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
}

.logo a {
  color: #111827;
  font-size: 23px;
  letter-spacing: 0;
}

.logo a::before {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      transparent 42%,
      rgba(255, 255, 255, 0.95) 43% 57%,
      transparent 58%
    ),
    linear-gradient(135deg, var(--brand), #f04a36);
  box-shadow: 0 10px 22px rgba(215, 25, 32, 0.22);
}

.nav-menu {
  gap: 5px;
}

.nav-menu a,
.bell {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 14px;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.18s ease;
}

.nav-menu a:hover,
.bell:hover {
  background: transparent;
  color: var(--brand);
}

.btn-logout,
.btn-register {
  box-shadow: 0 10px 18px rgba(215, 25, 32, 0.18);
}

.user-menu span {
  background: #f3f4f6;
  color: #111827;
}

.bds-hero {
  min-height: 560px;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.52)),
    url("../images/default.svg") center/cover;
}

.bds-hero .container {
  grid-template-columns: minmax(0, 0.92fr) minmax(560px, 1fr);
  gap: 46px;
  padding: 74px 0 96px;
}

.hero-copy h1 {
  max-width: 560px;
  color: #ffffff;
  font-size: 48px;
  font-weight: 800;
}

.hero-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
}

.eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.eyebrow--light {
  width: max-content;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-transform: none;
}

.hero-search-panel {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.search-tabs {
  gap: 6px;
  margin-bottom: 16px;
  padding: 5px;
  background: #f2f4f8;
}

.search-tabs button,
.search-tabs a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  font-weight: 700;
}

.search-tabs button.is-active,
.search-tabs a.is-active {
  background: linear-gradient(135deg, var(--brand), #f04438) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(215, 25, 32, 0.24);
}

.search-tabs a {
  flex: 1;
  border-radius: 999px;
  padding: 0 14px;
}

.search-form {
  grid-template-columns:
    minmax(260px, 1.25fr) minmax(160px, 0.75fr) minmax(160px, 0.75fr)
    144px;
  gap: 0;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.search-form label {
  position: relative;
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 6px;
  border-right: 1px solid #edf0f4;
  padding: 0 14px;
}

.search-form label:last-of-type {
  border-right: 0;
}

.search-form span,
.form-group label {
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  min-height: 46px;
  border-color: #dfe3ea;
  border-radius: 10px;
  color: #111827;
}

.search-form input {
  min-height: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
}

.search-form input:focus {
  box-shadow: none;
}

.search-form button {
  min-height: 58px;
  align-self: center;
  margin-left: 10px;
}

.search-form button,
.btn,
.btn-primary,
.btn-book,
.btn-confirm,
.btn-danger,
.btn-success,
.auth-box button {
  min-height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #f04438);
  box-shadow: 0 12px 22px rgba(215, 25, 32, 0.2);
  font-weight: 700;
}

.quick-links {
  margin-top: 15px;
}

.quick-links span {
  color: #4b5563;
}

.quick-links a {
  background: #fff5f5;
  color: var(--brand) !important;
}

.search-tabs--page {
  max-width: 560px;
  margin: 16px 0;
  border: 1px solid #edf0f4;
  background: #f6f7fb;
}

.stats-strip {
  gap: 16px;
  margin-top: -50px;
}

.stats-strip article {
  border: 0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.stats-strip strong {
  color: var(--brand);
  font-size: 32px;
}

.bds-section,
.location-section,
.category-section,
.news-section {
  padding-top: 34px;
}

.section-heading {
  margin-bottom: 20px;
}

.section-link {
  border: 1px solid #ffd4d6;
  border-radius: 999px;
  padding: 9px 13px;
  background: #fff7f7;
}

.property-grid {
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 20px;
}

.property-card {
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.property-card:hover {
  box-shadow: var(--shadow);
}

.property-media img {
  aspect-ratio: 16 / 11;
  background: #edf0f5;
}

.property-media span {
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  backdrop-filter: blur(8px);
}

.property-content {
  padding: 16px;
}

.property-content h3 {
  min-height: auto;
  margin-bottom: 9px;
  color: #111827;
  font-size: 17px;
}

.property-address {
  min-height: 44px;
  color: #6b7280;
}

.property-meta {
  border-top-color: #eef0f4;
}

.property-meta strong,
.listing-meta strong,
.detail-price {
  color: var(--brand);
  font-size: 16px;
}

.location-grid,
.category-grid {
  gap: 16px;
}

.location-grid a,
.category-grid a,
.news-grid article {
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.location-grid a {
  min-height: 140px;
  overflow: hidden;
  position: relative;
}

.location-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.08),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.location-grid strong,
.category-grid strong {
  font-size: 18px;
}

.category-grid a {
  min-height: 126px;
  background: linear-gradient(135deg, #ffffff, #fff8f8);
}

.category-grid a:hover {
  box-shadow: var(--shadow);
}

.news-grid {
  gap: 16px;
}

.news-grid article {
  min-height: 170px;
  padding: 20px;
}

.news-grid article span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-soft);
}

.search-page-head {
  background: linear-gradient(180deg, #ffffff, #fafafa);
}

.listing-card {
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.listing-card a {
  grid-template-columns: 230px 1fr;
  padding: 14px;
}

.listing-card img {
  border-radius: 14px;
}

.filter-sidebar {
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.detail-gallery,
.detail-summary,
.description-panel,
.room-card,
.booking-summary,
.booking-card,
.success-box {
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.footer {
  margin-top: 64px;
  background: #111827;
}

@media (max-width: 1100px) {
  .bds-hero .container {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 760px;
  }

  .search-form {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
  }

  .search-form .field-location,
  .search-form button {
    grid-column: 1 / -1;
  }

  .search-form label {
    border-right: 0;
    border-bottom: 1px solid #edf0f4;
    padding: 10px 8px;
  }

  .search-form button {
    margin-left: 0;
  }
}

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

  .header-inner {
    min-height: auto;
    padding: 14px 0;
  }

  .nav-menu {
    gap: 4px;
  }

  .nav-menu a,
  .bell {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .stats-strip,
  .location-grid,
  .category-grid,
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-card a {
    grid-template-columns: 170px 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1200px);
  }

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

  h2 {
    font-size: 20px;
  }

  .bds-hero {
    min-height: auto;
  }

  .bds-hero .container {
    gap: 20px;
    padding: 34px 0 44px;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .hero-search-panel {
    border-radius: 14px;
    padding: 12px;
  }

  .search-tabs {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .search-tabs button,
  .search-tabs a {
    border-radius: 10px;
  }

  .search-form,
  .stats-strip,
  .location-grid,
  .category-grid,
  .news-grid,
  .property-grid,
  .listing-card a {
    grid-template-columns: 1fr;
  }

  .search-form label {
    min-height: auto;
    border-bottom: 1px solid #edf0f4;
    padding: 12px 8px;
  }

  .search-form label:last-of-type {
    border-bottom: 0;
  }

  .stats-strip {
    margin-top: 0;
  }

  .section-heading {
    align-items: flex-start;
  }
}

/* Search panel fix v6 */
.hero-search-panel .search-form {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.82fr) minmax(0, 0.82fr) !important;
  gap: 0 !important;
  overflow: hidden;
}

.hero-search-panel .search-form button {
  grid-column: 1 / -1 !important;
  width: 100%;
  margin: 12px 0 0 !important;
}

.hero-search-panel .search-tabs button {
  appearance: none;
}

@media (max-width: 1100px) {
  .hero-search-panel .search-form {
    grid-template-columns: 1fr 1fr !important;
  }

  .hero-search-panel .search-form .field-location,
  .hero-search-panel .search-form button {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 560px) {
  .hero-search-panel .search-form {
    grid-template-columns: 1fr !important;
  }
}

/* Property facts and gallery v9 */
.property-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 12px;
}

.property-facts span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.property-facts--large span {
  padding: 7px 11px;
  background: var(--brand-soft);
  color: var(--brand);
}

.detail-gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 10px;
}

.detail-gallery-grid img {
  width: 100%;
  object-fit: cover;
  background: #f3f4f6;
}

.detail-main-image {
  min-height: 430px;
  border-radius: 16px 0 0 16px;
}

.detail-thumbs {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
}

.detail-thumbs img {
  height: 100%;
  min-height: 0;
  border-radius: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  max-width: 620px;
}

.admin-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  object-fit: cover;
  background: #f3f4f6;
}

@media (max-width: 900px) {
  .form-grid,
  .detail-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .form-grid,
  .detail-gallery-grid,
  .detail-thumbs {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .detail-main-image,
  .detail-gallery-grid img {
    min-height: 240px;
    border-radius: 12px;
  }
}

/* Admin navigation and room actions v10 */
.admin-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.admin-nav a {
  min-height: 40px;
  border-radius: 10px !important;
  padding: 9px 13px !important;
  background: transparent !important;
  color: #374151 !important;
  box-shadow: none !important;
  font-weight: 800;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: var(--brand-soft) !important;
  color: var(--brand) !important;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 14px;
}

.alert.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.room-item-head,
.room-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.room-item-head span {
  color: var(--brand);
  font-weight: 900;
}

.room-item-actions {
  margin-top: 10px;
}

.room-item-actions form {
  margin: 0;
}

.btn-danger {
  background: #dc2626 !important;
  box-shadow: 0 10px 18px rgba(220, 38, 38, 0.18) !important;
}

.btn-danger:hover {
  background: #b91c1c !important;
}

@media (max-width: 640px) {
  .admin-nav {
    position: static;
  }

  .admin-nav a,
  .room-item-actions form,
  .room-item-actions button {
    width: 100%;
  }

  .room-item-head,
  .room-item-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Admin dashboard and room cards v11 */
.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(231, 28, 36, 0.08), rgba(255, 255, 255, 0.94)),
    #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.admin-hero h1 {
  margin: 0 0 6px;
}

.admin-hero p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.admin-stat {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 20px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.admin-stat::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(231, 28, 36, 0.08);
}

.admin-stat > span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  margin-top: 20px;
}

.admin-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.quick-admin-actions {
  display: grid;
  gap: 10px;
}

.quick-admin-actions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--ink) !important;
  font-weight: 850;
}

.quick-admin-actions a::after {
  content: ">";
  color: var(--brand);
}

.quick-admin-actions a:hover {
  border-color: rgba(231, 28, 36, 0.28);
  background: var(--brand-soft);
  color: var(--brand) !important;
}

.recent-bookings {
  display: grid;
  gap: 10px;
}

.recent-bookings article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 12px;
}

.recent-bookings article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.recent-bookings strong,
.recent-bookings span,
.recent-bookings small,
.recent-bookings b {
  display: block;
}

.recent-bookings span,
.recent-bookings small {
  color: var(--muted);
  font-size: 13px;
}

.recent-bookings b {
  color: var(--brand);
  text-align: right;
}

.room-card {
  align-items: stretch;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.room-card-main {
  min-width: 0;
}

.room-card-main h3 {
  margin-bottom: 8px;
}

.room-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.room-feature-grid span,
.room-admin-meta span {
  display: grid;
  gap: 3px;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f6f7f9;
  color: var(--ink);
  font-weight: 850;
}

.room-feature-grid b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.room-action {
  min-width: 180px;
  justify-content: center;
}

.room-admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.room-admin-meta span {
  display: inline-flex;
}

@media (max-width: 900px) {
  .admin-hero,
  .recent-bookings article {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-dashboard-grid,
  .room-feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .recent-bookings b {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .admin-dashboard-grid,
  .room-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Homepage professional refresh v12 */
.home-hero-pro {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(18, 24, 38, 0.94), rgba(18, 24, 38, 0.78)),
    url("../images/default.svg");
  background-position: center;
  background-size: cover;
}

.home-hero-pro .container {
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 28px;
  padding-top: 58px;
  padding-bottom: 72px;
}

.home-hero-pro .hero-copy {
  max-width: 640px;
}

.home-hero-pro .hero-copy h1 {
  max-width: 720px;
  font-size: 48px;
  line-height: 1.08;
}

.home-hero-pro .hero-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-trust span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 800;
}

.home-hero-pro .hero-search-panel {
  width: 100%;
  border: 0;
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
}

.home-hero-pro .search-tabs {
  margin-bottom: 14px;
  padding: 5px;
  background: #f1f3f6;
}

.home-hero-pro .search-tabs button {
  min-height: 48px;
}

.home-hero-pro .search-form {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.home-hero-pro .search-form label {
  min-height: 76px;
}

.home-hero-pro .search-form button {
  min-height: 56px;
}

.hero-market-note {
  grid-column: 2;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(17, 24, 39, 0.42);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.hero-market-note span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(216, 35, 42, 0.95);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-market-note strong {
  overflow: hidden;
  color: #ffffff;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-market-note small {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  white-space: nowrap;
}

.property-card {
  border-radius: 16px;
}

.property-card a {
  height: 100%;
}

.property-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef0f3;
}

.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.property-card:hover .property-media img {
  transform: scale(1.04);
}

.property-media span {
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.property-content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.property-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.property-topline span,
.property-topline small {
  border-radius: 999px;
  padding: 5px 8px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  font-weight: 850;
}

.property-topline small {
  background: #ecfdf3;
  color: #15803d;
}

.property-meta {
  margin-top: auto;
}

.property-meta span {
  color: var(--brand);
  font-weight: 850;
}

.location-grid a,
.category-grid a {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.location-grid a small,
.category-grid a small {
  margin-bottom: auto;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.location-grid a:hover,
.category-grid a:hover {
  border-color: rgba(216, 35, 42, 0.28);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.news-grid article {
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

@media (max-width: 1100px) {
  .home-hero-pro .container {
    grid-template-columns: 1fr;
  }

  .hero-market-note {
    grid-column: auto;
    justify-self: stretch;
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .home-hero-pro .container {
    padding-top: 34px;
    padding-bottom: 42px;
  }

  .home-hero-pro .hero-copy h1 {
    font-size: 34px;
  }

  .hero-market-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-market-note small {
    margin-left: 0;
    white-space: normal;
  }
}

/* Auth and user management v14 */
.auth-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(31, 41, 55, 0.78)),
    #111827;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
}

.auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 76px);
  color: #ffffff;
}

.auth-brand {
  width: fit-content;
  margin-bottom: 48px;
  color: #ffffff !important;
  font-size: 22px;
  font-weight: 950;
}

.auth-aside h1 {
  max-width: 560px;
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 58px);
}

.auth-aside p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.auth-points span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 800;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: #f5f6f8;
}

.auth-panel .auth-box {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
}

.auth-box h2 {
  margin-bottom: 8px;
  font-size: 32px;
}

.auth-subtitle {
  margin-bottom: 20px;
}

.auth-box form {
  display: grid;
  gap: 14px;
}

.auth-box label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-weight: 850;
}

.auth-box label span {
  font-size: 13px;
}

.auth-box input {
  min-height: 52px;
  border-radius: 12px;
}

.auth-box button {
  min-height: 52px;
  margin-top: 4px;
  border-radius: 12px;
}

.auth-switch {
  margin: 18px 0 0;
  text-align: center;
}

.auth-switch a {
  color: var(--brand);
  font-weight: 900;
}

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

.admin-user-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.admin-user-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 22px;
  font-weight: 950;
}

.admin-user-main h3 {
  margin-bottom: 2px;
}

.admin-user-main p,
.admin-user-main small {
  display: block;
  margin: 0;
  color: var(--muted);
}

.admin-user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.admin-user-meta span {
  border-radius: 999px;
  padding: 6px 9px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 850;
}

.admin-user-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.admin-user-form label {
  display: grid;
  gap: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 850;
}

@media (max-width: 860px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    padding-bottom: 24px;
  }

  .auth-brand {
    margin-bottom: 28px;
  }
}

@media (max-width: 560px) {
  .auth-panel {
    padding: 16px;
  }

  .auth-panel .auth-box {
    padding: 22px;
  }

  .admin-user-form {
    grid-template-columns: 1fr;
  }
}

/* Mobile polish v15 */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .container {
    width: min(100% - 24px, 1180px);
    padding: 18px 0;
  }

  h1 {
    font-size: 30px;
    line-height: 1.15;
  }

  h2 {
    font-size: 22px;
  }

  .header {
    position: sticky;
  }

  .header-inner {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
  }

  .logo a {
    font-size: 20px;
  }

  .logo a::before {
    width: 30px;
    height: 30px;
  }

  .nav-menu {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-menu a,
  .bell,
  .noti-header button,
  .user-menu span {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 10px;
    background: #ffffff;
    font-size: 13px;
  }

  .nav-menu > a::after,
  .bell::after {
    display: none;
  }

  .notification-wrapper,
  .user-menu {
    width: 100%;
    display: contents;
  }

  .notification-dropdown {
    left: 0;
    right: 0;
    width: calc(100vw - 24px);
    max-width: none;
  }

  .home-hero-pro {
    background-position: center;
  }

  .home-hero-pro .container {
    gap: 18px;
    padding-top: 24px;
    padding-bottom: 30px;
  }

  .home-hero-pro .hero-copy h1 {
    max-width: 100%;
    font-size: 32px;
  }

  .home-hero-pro .hero-copy p {
    font-size: 14px;
  }

  .hero-trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-trust span {
    width: 100%;
    text-align: center;
  }

  .home-hero-pro .hero-search-panel {
    border-radius: 16px;
    padding: 12px;
  }

  .home-hero-pro .search-tabs {
    grid-template-columns: 1fr;
  }

  .home-hero-pro .search-tabs button {
    min-height: 44px;
  }

  .hero-search-panel .search-form,
  .home-hero-pro .search-form {
    grid-template-columns: 1fr !important;
    border-radius: 14px;
  }

  .home-hero-pro .search-form label,
  .search-form label {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }

  .home-hero-pro .search-form label:last-of-type,
  .search-form label:last-of-type {
    border-bottom: 0;
  }

  .hero-search-panel .search-form button,
  .home-hero-pro .search-form button {
    width: 100%;
    min-height: 50px;
    margin: 10px 0 0 !important;
  }

  .quick-links {
    align-items: flex-start;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .quick-links span {
    grid-column: 1 / -1;
  }

  .quick-links a {
    width: 100%;
    text-align: center;
  }

  .hero-market-note {
    gap: 8px;
    padding: 10px;
  }

  .stats-strip,
  .property-grid,
  .location-grid,
  .category-grid,
  .news-grid,
  .admin-stats,
  .admin-dashboard-grid {
    grid-template-columns: 1fr !important;
  }

  .stats-strip {
    margin-top: 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section-link,
  .admin-actions,
  .admin-actions a {
    width: 100%;
  }

  .property-card,
  .listing-card,
  .room-card,
  .admin-panel,
  .admin-user-card {
    border-radius: 14px;
  }

  .property-media {
    aspect-ratio: 16 / 11;
  }

  .property-content {
    padding: 14px;
  }

  .property-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .property-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .location-grid a,
  .category-grid a {
    min-height: 130px;
  }

  .detail-layout,
  .detail-body {
    grid-template-columns: 1fr !important;
  }

  .detail-summary {
    position: static;
  }

  .room-card {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .room-action {
    min-width: 0;
    align-items: stretch;
    width: 100%;
  }

  .room-action .btn-book,
  .sold-out {
    width: 100%;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .admin-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }

  .admin-nav a {
    width: 100%;
    text-align: center;
  }

  .form-inline,
  .form-grid,
  .admin-user-grid {
    grid-template-columns: 1fr !important;
  }

  .auth-shell {
    min-height: auto;
  }

  .auth-aside {
    padding: 28px 18px 18px;
  }

  .auth-aside h1 {
    font-size: 30px;
  }

  .auth-points {
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-panel {
    align-items: flex-start;
    padding: 14px;
  }

  .auth-panel .auth-box {
    border-radius: 16px;
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .nav-menu,
  .admin-nav,
  .quick-links {
    grid-template-columns: 1fr;
  }

  .home-hero-pro .hero-copy h1 {
    font-size: 28px;
  }

  .search-tabs button,
  .nav-menu a,
  .bell {
    font-size: 13px;
  }
}

/* Booking success and settings v16 */
.booking-success-page {
  background:
    radial-gradient(
      circle at top left,
      rgba(216, 35, 42, 0.08),
      transparent 34%
    ),
    var(--page);
}

.success-hero-card {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.success-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 18px;
  background: #ecfdf3;
  color: #15803d;
  font-size: 30px;
  font-weight: 950;
}

.success-hero-card h1 {
  max-width: 780px;
  margin-bottom: 10px;
}

.success-hero-card p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 16px;
}

.success-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 18px;
}

.success-detail-card,
.support-card,
.settings-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.success-detail-card {
  padding: 24px;
}

.success-code {
  display: inline-grid;
  gap: 4px;
  margin-bottom: 16px;
  border-radius: 14px;
  padding: 10px 14px;
  background: var(--brand-soft);
}

.success-code span,
.success-info-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.success-code strong {
  color: var(--brand);
  font-size: 24px;
}

.success-code-pro {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(216, 35, 42, 0.18);
  border-radius: 18px;
  padding: 16px 18px;
  background:
    linear-gradient(135deg, rgba(216, 35, 42, 0.1), rgba(255, 240, 241, 0.55)),
    #ffffff;
}

.success-code-pro strong {
  display: block;
  margin-top: 4px;
  color: var(--brand);
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: 0;
}

.success-code-pro small {
  border-radius: 999px;
  padding: 8px 11px;
  background: #ffffff;
  color: #6b7280;
  font-weight: 850;
  white-space: nowrap;
}

.copy-code-btn {
  flex: 0 0 auto;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 900;
}

.copy-code-btn--small {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 12px;
}

.booking-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.booking-card-grid p {
  display: grid;
  gap: 5px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  background: #fafafa;
}

.booking-card-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.booking-card-grid strong {
  color: var(--ink);
}

.booking-card-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-search-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.admin-search-bar label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-weight: 850;
}

.admin-search-bar label span {
  font-size: 13px;
}

.booking-code-mini {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  white-space: nowrap;
}

.success-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.success-info-grid div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  background: #fafafa;
}

.success-info-grid strong {
  color: var(--ink);
}

.success-price {
  color: var(--brand) !important;
}

.success-actions,
.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-card {
  padding: 22px;
}

.support-card p {
  margin-bottom: 16px;
}

.btn-zalo,
.btn-call {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 16px;
  color: #ffffff !important;
  font-weight: 900;
}

.btn-zalo {
  background: #0068ff;
}

.btn-call {
  background: var(--brand);
}

.next-steps {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.next-steps ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.settings-panel {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.settings-panel section {
  display: grid;
  gap: 12px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-grid label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-weight: 850;
}

@media (max-width: 900px) {
  .success-layout,
  .success-info-grid,
  .settings-grid,
  .booking-card-grid,
  .admin-search-bar {
    grid-template-columns: 1fr;
  }

  .success-actions a,
  .support-actions a,
  .booking-card-footer a,
  .booking-card-footer form,
  .booking-card-footer button,
  .admin-search-bar a,
  .admin-search-bar button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .success-hero-card,
  .success-detail-card,
  .support-card,
  .settings-panel {
    border-radius: 16px;
    padding: 18px;
  }

  .success-code-pro {
    align-items: flex-start;
    flex-direction: column;
  }

  .success-code-pro small {
    white-space: normal;
  }

  .copy-code-btn {
    width: 100%;
  }
}
