:root {
  --ink: #0f172a;
  --muted: #4b5563;
  --line: #d9eef7;
  --soft: #f5fbff;
  --paper: #ffffff;
  --teal: #3aaecf;
  --green: #5bcbef;
  --coral: #93ddf7;
  --brand-pink: #2f93b0;
  --gold: #bfeaf7;
  --blue: #3aaecf;
  --bg: #f5f5fa;
  --shadow: 0 18px 48px rgba(58, 174, 207, 0.14);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

h1,
h2,
h3 {
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl {
  margin: 0;
}

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 0 28px;
  background: #ffffff;
  border-bottom: 1px solid rgba(217, 224, 231, 0.8);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 220ms ease;
}

.topbar.nav-collapsed {
  transform: translateY(-100%);
}

.topbar-primary-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-pink);
  font-weight: 900;
}

.brand.small {
  margin-bottom: 22px;
}

.brand-logo {
  display: block;
  width: min(150px, 40vw);
  height: auto;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 38px;
  flex: 0 0 34px;
}

.brand-mark::before {
  content: "R";
  position: absolute;
  inset: -8px 0 0 -2px;
  color: var(--brand-pink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  width: 11px;
  height: 27px;
  background: white;
  border-radius: 999px 999px 2px 2px;
  clip-path: polygon(50% 0, 100% 18%, 72% 100%, 28% 100%, 0 18%);
}

.main-nav {
  display: flex;
  gap: 6px;
  margin-left: 12px;
  flex-wrap: wrap;
}

.main-nav a,
.dashboard-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.main-nav a:hover,
.dashboard-nav a:hover {
  color: var(--ink);
  background: var(--soft);
}

/* ---------- Buttons ---------- */

.ghost-button,
.primary-button,
.secondary-button,
.zalo-button,
.favorite-button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 10px 24px rgba(58, 174, 207, 0.28);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(58, 174, 207, 0.34);
}

.primary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.secondary-button {
  color: var(--teal);
  background: #e4f5f2;
}

.secondary-button:hover {
  background: #d7f0ec;
}

.ghost-button {
  background: #edf1f5;
}

.zalo-button {
  display: grid;
  place-items: center;
  color: white;
  background: var(--blue);
}

.favorite-button {
  background: var(--soft);
  color: var(--brand-pink);
  border: 1px solid var(--line);
}

.favorite-button.active {
  background: #fff2e0;
  color: #b7791f;
  border-color: #f5d99a;
}

.app-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  color: white;
  background: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.app-download-button[hidden] {
  display: none;
}

.app-download-button:hover {
  background: var(--teal);
}

/* ---------- Account dropdown ---------- */

.account-menu {
  position: relative;
}

.account-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--green), var(--teal));
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(58, 174, 207, 0.28);
}

.account-menu-toggle svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.account-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 190px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 50;
}

.account-menu-dropdown[hidden] {
  display: none;
}

.account-menu-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: 0;
  background: white;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px solid var(--soft);
}

.account-menu-dropdown button:last-child {
  border-bottom: 0;
}

.account-menu-dropdown button:hover {
  background: var(--soft);
  color: var(--teal);
}

/* ---------- Page shell ---------- */

.page {
  display: none;
}

.page.is-active {
  display: block;
}

.page-heading {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 8px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand-pink);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-heading h1 {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--ink);
}

/* ---------- Home hero ---------- */

.home-hero {
  padding: 56px 22px 74px;
  background:
    radial-gradient(circle at 34% 38%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(180deg, #45b4d6 0%, #5bcbef 100%);
  position: relative;
  text-align: center;
}

.hero-inner {
  width: min(880px, 100%);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.hero-logo {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
}

.home-hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.hero-tagline {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 14px;
}

.hero-search-card {
  width: 100%;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 48px rgba(15, 60, 80, 0.2);
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  padding: 0 16px;
  background: white;
  margin-bottom: 12px;
}

.hero-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #94a3b8;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.hero-search input {
  flex: 1;
  border: 0;
  outline: none;
  min-height: 44px;
  color: var(--ink);
  background: transparent;
}

.hero-quick-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.hero-quick-filters select {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0 10px;
  font-size: 13px;
}

/* ---------- District strip ---------- */

.district-strip {
  max-width: 1200px;
  margin: -34px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  position: relative;
  z-index: 2;
}

.district-chip {
  height: 92px;
  border-radius: var(--radius-md);
  background: var(--bg, #5bcbef);
  background-image: var(--bg);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: white;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 12px 28px rgba(58, 174, 207, 0.22);
}

/* ---------- Home info / filters ---------- */

.home-info {
  padding: 40px clamp(18px, 5vw, 72px) 64px;
  background: transparent;
}

.home-info > h2 {
  margin-bottom: 24px;
  text-align: center;
  color: var(--brand-pink);
  font-size: clamp(24px, 3.4vw, 36px);
}

.info-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(360px, 1.28fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.filter-panel {
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.filter-field {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 10px;
  color: #1d2430;
  font-size: 13px;
  font-weight: 900;
}

.filter-field input {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--soft);
}

.home-info .price-row {
  display: grid;
  gap: 8px;
  color: #1d2430;
  font-size: 13px;
}

.home-info .price-row strong {
  color: var(--teal);
}

.range-caption {
  display: flex;
  justify-content: space-between;
  margin-top: -6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.home-info input[type="range"] {
  accent-color: var(--teal);
  width: 100%;
}

.filter-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.filter-checks legend {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: #1d2430;
  font-size: 13px;
  font-weight: 900;
}

.filter-checks label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.filter-checks input {
  accent-color: var(--teal);
}

/* ---------- Map panel ---------- */

.map-panel {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.map-canvas {
  position: relative;
  min-height: 320px;
  height: 100%;
  background: linear-gradient(160deg, #d9f4ff, #eafcff);
}

.google-map-frame,
.google-pin-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-road {
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
}

.road-a {
  top: 30%;
  left: 0;
  right: 0;
  height: 6px;
}

.road-b {
  top: 0;
  bottom: 0;
  left: 40%;
  width: 6px;
}

.road-c {
  top: 65%;
  left: 0;
  right: 0;
  height: 4px;
}

.map-label {
  position: absolute;
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-pink);
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 8px;
  border-radius: 999px;
}

.map-label.campus {
  top: 12%;
  left: 12%;
}

.map-label.beach {
  bottom: 14%;
  right: 12%;
}

.pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.map-preview {
  position: absolute;
  z-index: 5;
  display: flex;
  gap: 10px;
  width: 220px;
  padding: 10px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.map-preview img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.map-preview strong {
  display: block;
  font-size: 13px;
}

.map-preview span {
  font-size: 12px;
  color: var(--teal);
  font-weight: 800;
}

/* ---------- Room grid ---------- */

.result-head {
  max-width: 1200px;
  margin: 32px auto 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 4px;
}

.result-head h2 {
  font-size: 20px;
}

.result-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.room-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.room-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

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

.room-image {
  position: relative;
  height: 170px;
  background: var(--soft);
}

.room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.room-image .tick {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #10b981;
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.room-body {
  padding: 14px;
}

.room-body h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--ink);
}

.room-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.room-meta strong {
  color: var(--teal);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  background: var(--soft);
  color: var(--brand-pink);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.form-message {
  color: var(--muted);
  font-size: 13px;
  min-height: 1em;
}

/* ---------- Detail page ---------- */

.detail-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.detail-card {
  background: transparent;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr);
  gap: 24px;
}

.detail-media-col {
  display: grid;
  gap: 12px;
}

.media-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 440px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-status-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #10b981;
  color: white;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  animation: pulse 1.6s infinite;
}

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

.view-toggle-chip {
  position: absolute;
  bottom: 16px;
  right: 16px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-pink);
  font-weight: 800;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.thumb-row button {
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  height: 72px;
  cursor: pointer;
  background: var(--soft);
  opacity: 0.75;
}

.thumb-row button.active {
  border-color: var(--teal);
  opacity: 1;
}

.thumb-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.viewer3d {
  position: absolute;
  inset: 0;
  background: #0b1620;
  touch-action: none;
}

.viewer3d[hidden] {
  display: none;
}

.scene-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

.room-panorama {
  width: 100%;
  height: 100%;
  background-image: var(--panorama-url, none);
  background-size: var(--panorama-zoom, 120%) auto;
  background-position: calc(50% + var(--pan-x, 0px)) calc(50% + var(--pan-y, 0px));
  background-repeat: no-repeat;
  cursor: grab;
}

.panorama-hint {
  color: white;
  text-align: center;
  padding-top: 40%;
  font-size: 13px;
}

.experience-tabs {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.experience-tabs button {
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.experience-tabs button.active {
  background: var(--teal);
}

.detail-info-col {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  align-content: start;
}

.detail-info-head {
  display: flex;
  justify-content: flex-end;
}

.verified {
  display: inline-block;
  background: var(--soft);
  color: var(--brand-pink);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.detail-info-col h1 {
  font-size: 22px;
}

.detail-info-col > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.price-table dl {
  display: grid;
  gap: 8px;
}

.price-table dl > div {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--soft);
  border-radius: 10px;
  font-size: 13px;
}

.price-table dt {
  color: var(--muted);
  font-weight: 600;
}

.price-table dd {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
}

.contact-box {
  display: grid;
  gap: 10px;
}

.contact-box .phone {
  font-size: 16px;
  font-weight: 800;
  color: var(--teal);
}

.contact-box button,
.contact-box a {
  width: 100%;
  text-align: center;
}

/* ---------- Reviews ---------- */

.reviews {
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 0 20px 64px;
}

.review-form {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}

.review-form select,
.review-form input {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  min-height: 42px;
  background: white;
}

.review-form input {
  flex: 1;
}

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

.review-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.review-item strong {
  display: block;
  color: var(--brand-pink);
  margin-bottom: 4px;
  font-size: 13px;
}

.review-item span {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Generic content pages ---------- */

.utility-layout,
.roommate-board,
.pricing-structure,
.additional-services,
.pricing-promotions,
.checkout-summary,
.listing-checkout-summary,
.profile-panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 48px;
}

.contract-library {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.contract-library .notice {
  color: var(--muted);
  font-size: 13px;
}

.contract-library article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--soft);
}

.contract-library h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.contract-library p {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Roommate ---------- */

.roommate-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.roommate-board-head h2 {
  font-size: 22px;
}

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

.roommate-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  padding: 20px;
  display: grid;
  gap: 12px;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.roommate-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.roommate-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.roommate-card-head h3 {
  font-size: 17px;
}

.roommate-card-delete {
  border: 0;
  background: #fdecec;
  color: #c0392b;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.roommate-card dl {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.roommate-card dl > div {
  display: flex;
  gap: 6px;
}

.roommate-card dt {
  color: var(--muted);
  min-width: 70px;
}

.roommate-card dd {
  margin: 0;
  font-weight: 700;
}

.roommate-card-actions {
  display: flex;
  gap: 10px;
}

.roommate-card-actions a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
}

.roommate-card-actions .secondary-button {
  border-radius: 10px;
}

.roommate-card-actions .primary-button {
  border-radius: 10px;
}

/* ---------- Pricing / checkout ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.pricing-grid article {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.pricing-grid h3 {
  font-size: 18px;
  color: var(--brand-pink);
}

.pricing-grid li {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0;
}

.additional-services ul,
.pricing-promotions ul {
  display: grid;
  gap: 8px;
}

.additional-services li,
.pricing-promotions li {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
}

.checkout-card {
  background: var(--soft);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: grid;
  gap: 4px;
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.checkout-total {
  font-size: 17px;
  font-weight: 800;
}

.checkout-note {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0;
}

.checkout-actions {
  display: flex;
  gap: 12px;
}

.checkout-agree {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0;
}

/* ---------- Listing checkout (payment-post.html style) ---------- */

.listing-checkout-page {
  max-width: 900px;
  margin: 32px auto 64px;
  padding: 0 20px;
}

.checkout-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: white;
  padding: 20px 28px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.checkout-topbar h1 {
  font-size: 22px;
}

.checkout-topbar-back {
  background: white;
  color: var(--teal);
  border: 0;
  border-radius: 10px;
  padding: 8px 18px;
  font-weight: 800;
  cursor: pointer;
}

.listing-checkout-summary {
  background: white;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
}

.listing-checkout-summary h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

.listing-checkout-summary h2:not(:first-child) {
  margin-top: 28px;
}

.package-options,
.payment-method-options {
  display: grid;
  gap: 12px;
}

.package-option,
.method-option {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: white;
  cursor: pointer;
  text-align: left;
  transition: 0.2s;
}

.package-option:hover,
.method-option:hover {
  background: var(--soft);
}

.package-option.active,
.method-option.active {
  border: 2px solid var(--teal);
  background: var(--soft);
}

.radio-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #bdbdbd;
  flex: 0 0 auto;
}

.package-option.active .radio-dot,
.method-option.active .radio-dot {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: inset 0 0 0 4px white;
}

.package-option-copy {
  flex: 1;
  display: grid;
  gap: 2px;
}

.package-option-copy small {
  color: var(--muted);
  font-size: 12px;
}

.package-option-price {
  font-weight: 800;
  color: var(--teal);
}

/* ---------- Dashboard ---------- */

.dashboard-topbar {
  display: none;
}

.dashboard-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.dashboard-page.is-active {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
}

.dashboard-nav {
  display: grid;
  align-content: start;
  gap: 4px;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 20px 16px;
  box-shadow: var(--shadow);
  height: fit-content;
}

.dashboard-main {
  display: grid;
  gap: 20px;
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-head h1 {
  font-size: 22px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 20px;
}

.post-form {
  grid-row: span 2;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.post-form h2 {
  font-size: 18px;
  margin-bottom: 4px;
}

.post-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.post-form label.switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-form input:not([type="checkbox"]):not([type="radio"]),
.post-form select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--soft);
}

.post-form input[type="file"] {
  padding: 8px 0;
  background: transparent;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding-left: 10px;
}

.field-status {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  text-transform: uppercase;
}

.field-status.required {
  background: #fdecec;
  color: #c0392b;
}

.field-status.optional {
  background: var(--soft);
  color: var(--brand-pink);
}

.post-form-section {
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

.cosmetic-region h3 {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--muted);
}

.cosmetic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cosmetic-field select,
.cosmetic-field input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  background: #f1f5f9;
  color: #94a3b8;
}

.video-upload-mode {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.video-upload-mode legend {
  font-weight: 800;
  margin-bottom: 6px;
  width: 100%;
}

.video-capture-guide {
  background: var(--soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 12px;
  color: var(--muted);
}

.video-capture-guide strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.video-capture-guide li {
  margin-bottom: 4px;
  list-style: disc;
  margin-left: 16px;
}

.location-picker {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  display: grid;
  gap: 10px;
  background: var(--soft);
}

.location-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.location-picker-actions {
  display: flex;
  gap: 8px;
}

.location-picker-map {
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  background: #d9f4ff;
  position: relative;
}

.manual-location-surface {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: linear-gradient(160deg, #d9f4ff, #eafcff);
  cursor: crosshair;
}

.manual-location-road {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
}

.road-main {
  top: 40%;
  left: 0;
  right: 0;
  height: 5px;
}

.road-side {
  top: 0;
  bottom: 0;
  left: 55%;
  width: 5px;
}

.manual-location-label {
  position: absolute;
  font-size: 10px;
  font-weight: 800;
  color: var(--brand-pink);
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 6px;
  border-radius: 999px;
}

.label-campus {
  top: 12%;
  left: 10%;
}

.label-beach {
  bottom: 10%;
  right: 10%;
}

.label-center {
  top: 44%;
  left: 44%;
}

.manual-location-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 50% 0;
  background: var(--teal);
  border: 2px solid white;
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.analytics,
.boost-panel {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.analytics h2,
.boost-panel h2 {
  font-size: 16px;
}

.metric-row {
  display: flex;
  gap: 16px;
}

.metric-row > div {
  flex: 1;
  background: var(--soft);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.metric-row span {
  font-size: 12px;
  color: var(--muted);
}

.metric-row strong {
  font-size: 22px;
  color: var(--teal);
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}

.bar-chart span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--green), var(--teal));
  border-radius: 6px 6px 0 0;
}

.owner-room-list {
  display: grid;
  gap: 8px;
}

.owner-room-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--soft);
  border-radius: 10px;
  padding: 8px 10px;
}

.owner-room-item.is-selected {
  outline: 2px solid var(--teal);
}

.owner-room-item-select {
  flex: 1;
  display: grid;
  gap: 2px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.owner-room-item-select strong {
  font-size: 13px;
}

.owner-room-item-select span {
  font-size: 11px;
  color: var(--muted);
}

.status-pill {
  font-size: 10px;
  font-weight: 800;
  background: #e4f5f2;
  color: var(--teal);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.owner-room-item-delete {
  border: 0;
  background: #fdecec;
  color: #c0392b;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.boost-controls {
  display: flex;
  gap: 10px;
}

.boost-controls input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  min-height: 40px;
}

/* ---------- Profile ---------- */

.profile-panel {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  padding: 40px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: white;
  font-size: 28px;
  font-weight: 900;
}

.profile-summary {
  display: grid;
  gap: 2px;
}

.profile-summary span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-summary strong {
  font-size: 16px;
}

/* ---------- History ---------- */

.history-page {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.history-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  background: white;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  margin: 0 24px;
  padding: 0 8px;
}

.history-tab {
  border: 0;
  background: transparent;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.history-tab:hover {
  color: var(--teal);
}

.history-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.history-panel {
  margin: 0 24px 40px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 4px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table thead {
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: white;
}

.history-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
}

.history-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--soft);
  font-size: 13px;
}

.history-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.history-status-pending {
  background: #fef3c7;
  color: #92400e;
}

.history-status-success {
  background: #d1fae5;
  color: #065f46;
}

.history-status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

/* ---------- Footer ---------- */

.site-footer {
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: white;
  padding: 48px 24px 32px;
  margin-top: 40px;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.site-footer-logo {
  height: 36px;
  filter: brightness(0) invert(1);
  margin-bottom: 12px;
}

.site-footer-col p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 8px;
}

.site-footer-col ul li {
  margin-bottom: 8px;
}

.site-footer-col ul a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer-col ul a:hover {
  text-decoration: underline;
}

.footer-subscribe {
  display: flex;
}

.footer-subscribe input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-radius: 8px 0 0 8px;
  padding: 0 12px;
  min-height: 38px;
}

.footer-subscribe input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.footer-subscribe button {
  border: 0;
  background: white;
  color: var(--teal);
  font-weight: 800;
  border-radius: 0 8px 8px 0;
  padding: 0 16px;
  cursor: pointer;
}

/* ---------- Chat widget ---------- */

.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 60;
}

.chat-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(58, 174, 207, 0.4);
}

.chat-button svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.chat-window {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 280px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--line);
}

.chat-window[hidden] {
  display: none;
}

.chat-window-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: white;
  padding: 14px 16px;
  font-weight: 800;
}

.chat-window-head button {
  border: 0;
  background: transparent;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.chat-window-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.chat-window-body a {
  background: var(--soft);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.chat-window-body a:hover {
  background: #e4f5f2;
}

/* ---------- Dialogs ---------- */

dialog {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow);
  max-width: 440px;
  width: min(440px, 92vw);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.auth-form,
.booking-form,
.deposit-form,
.roommate-form {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.auth-logo {
  height: 40px;
  margin: 0 auto;
  display: block;
}

.auth-form h2,
.booking-form h2,
.deposit-dialog-head h2,
.roommate-form h2 {
  font-size: 20px;
  margin-top: 4px;
}

.auth-form label,
.booking-form label,
.deposit-form label,
.roommate-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.auth-form input,
.auth-form select,
.booking-form input,
.deposit-form input,
.roommate-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--soft);
}

.register-only[hidden] {
  display: none;
}

.auth-message {
  min-height: 1.2em;
  font-size: 13px;
  color: #c0392b;
}

.auth-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.dialog-subheading {
  font-size: 14px;
  margin-top: 4px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .info-layout,
  .detail-grid,
  .dashboard-grid,
  .dashboard-page {
    grid-template-columns: 1fr;
  }

  .dashboard-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

  .main-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 0 14px;
    gap: 12px;
  }

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

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