/* Vista Marina Platform — Luxury Coastal Arabic UI (Noto Kufi Arabic) */
:root {
  --deep: #0f3d4e;
  --deep-dark: #0a2b38;
  --ocean: #0e6070;
  --ocean-soft: #e6f2f3;
  --gold: #c6a15e;
  --gold-light: #f2dfb1;
  --gold-bg: #fff6e2;
  --gold-ink: #8a6116;
  --bg: #f3f6f6;
  --paper: #ffffff;
  --ink: #162f37;
  --muted: #5d767d;
  --bd: #dce8e8;
  --success: #1f7a57;
  --success-bg: #e7f6ef;
  --danger: #b83232;
  --danger-bg: #fdeeee;
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 4px 18px rgba(15, 61, 78, 0.06);
  --shadow-float: 0 10px 30px rgba(10, 43, 56, 0.16);
  --shell-max: 100%;
  --font: 'Noto Kufi Arabic', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 14px;
  min-height: 100dvh;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: var(--font);
  color: inherit;
}

a {
  color: var(--ocean);
  text-decoration: none;
}

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

.svg-ic {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Main App Shell — 100% Full Width */
.shell {
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  position: relative;
}

/* Sticky Top Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 68px;
  width: 100%;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bd);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (min-width: 860px) {
  .topbar {
    padding: 0 32px;
  }
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--bd);
  background: var(--paper);
  color: var(--deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  background: var(--ocean-soft);
  border-color: #bfd6d9;
}

.icon-btn:active {
  transform: scale(0.94);
}

.icon-btn.sm {
  width: 36px;
  height: 36px;
}

.online-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22b07d;
  border: 2px solid #fff;
}

.brand {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 61, 78, 0.22);
  flex-shrink: 0;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--deep);
}

.brand-text small {
  font-size: 9.5px;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
}

.announcement-bar {
  background: linear-gradient(90deg, var(--deep) 0%, var(--ocean) 100%);
  color: #fff;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}

/* View Container */
.view-root {
  animation: fadeUp 0.24s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-pad {
  width: 100%;
  padding: 18px 16px 8px;
}

@media (min-width: 860px) {
  .section-pad {
    padding: 24px 32px 12px;
  }
}

@media (min-width: 1360px) {
  .section-pad {
    padding: 28px 48px 14px;
  }
}

/* Sub-View Header */
.sub-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.back-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #d2e4e6;
  background: var(--ocean-soft);
  color: var(--deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.back-btn:hover {
  background: #d7eaec;
}

.back-btn:active {
  transform: scale(0.93);
}

.sub-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--deep);
  line-height: 1.35;
}

.sub-head p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* Iconic Resort Hero */
.hero {
  position: relative;
  width: 100%;
  min-height: 540px;
  background: var(--deep) url('/static/images/hero-resort.jpg') center 35% / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 16px 20px;
  overflow: hidden;
}

@media (min-width: 860px) {
  .hero {
    min-height: 560px;
    padding: 44px 32px 28px;
  }
}

@media (min-width: 1360px) {
  .hero {
    min-height: 600px;
    padding: 52px 48px 34px;
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 36, 48, 0.56) 0%,
    rgba(9, 36, 48, 0.16) 38%,
    rgba(9, 36, 48, 0.25) 62%,
    rgba(9, 36, 48, 0.68) 100%
  );
  pointer-events: none;
}

.hero-top {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding-top: 6px;
}

.hero-top h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  text-shadow: 0 3px 18px rgba(7, 29, 39, 0.58);
  line-height: 1.4;
}

@media (min-width: 860px) {
  .hero-top h1 {
    font-size: 32px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(15, 61, 78, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(242, 223, 177, 0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.hero-badge .svg-ic {
  width: 14px;
  height: 14px;
  color: var(--gold-light);
}

/* 6 Frosted Glass Quick-Action Tiles */
.tiles-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 150px;
  width: 100%;
}

@media (min-width: 860px) {
  .tiles-grid {
    gap: 14px;
    margin-top: 140px;
  }
}

@media (min-width: 1024px) {
  .tiles-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 220px;
  }
}

.tile-btn {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 14px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(7, 36, 48, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  position: relative;
}

.tile-btn:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(7, 36, 48, 0.3);
}

.tile-btn:active {
  transform: scale(0.96);
}

.tile-ic {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--ocean-soft);
  color: var(--deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tile-ic.gold {
  background: var(--gold-bg);
  color: var(--gold-ink);
}

.tile-ic.teal {
  background: #e3f4f1;
  color: #0e6070;
}

.tile-btn strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--deep);
  line-height: 1.3;
  text-align: center;
}

.tile-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--ocean);
  background: var(--ocean-soft);
  padding: 1px 8px;
  border-radius: 999px;
}

.tile-sub.soon {
  color: var(--gold-ink);
  background: var(--gold-bg);
}

/* Home Secondary Action Cards */
.dual-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature-action-card {
  background: var(--paper);
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.feature-action-card:hover {
  transform: translateY(-2px);
  border-color: #b4d2d6;
  box-shadow: 0 8px 22px rgba(15, 61, 78, 0.1);
}

.feature-action-card .fac-ic {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--ocean-soft), #eef6f7);
  color: var(--deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-action-card strong {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--deep);
}

.feature-action-card small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

/* Section Headers */
.sec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 12px;
  gap: 10px;
}

.sec-row h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--deep);
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--ocean);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 8px;
}

.link-btn:hover {
  background: var(--ocean-soft);
}

/* Cards & Panels */
.card {
  background: var(--paper);
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--deep);
}

.card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.callout {
  background: #edf6f6;
  border: 1px solid #cfe3e4;
  border-right: 4px solid var(--ocean);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--deep);
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.7;
}

.callout.warn {
  background: var(--gold-bg);
  border-color: #eedcb5;
  border-right-color: var(--gold);
  color: #6b4b12;
}

.callout.danger {
  background: var(--danger-bg);
  border-color: #f3cccc;
  border-right-color: var(--danger);
  color: var(--danger);
}

.callout.success {
  background: var(--success-bg);
  border-color: #bfe6d3;
  border-right-color: var(--success);
  color: #14573d;
}

/* Listings Grid & Unit Cards */
.listings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 680px) {
  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1080px) {
  .listings-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1480px) {
  .listings-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.unit-card {
  background: var(--paper);
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.unit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(15, 61, 78, 0.11);
}

.unit-media {
  position: relative;
  height: 196px;
  background: #dce8e8;
  cursor: pointer;
  overflow: hidden;
}

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

.unit-card:hover .unit-media img {
  transform: scale(1.03);
}

.unit-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(15, 61, 78, 0.88);
  color: #fff;
  backdrop-filter: blur(6px);
}

.badge.gold {
  background: rgba(198, 161, 94, 0.94);
  color: #1c1506;
}

.badge.green {
  background: rgba(31, 122, 87, 0.92);
  color: #fff;
}

.badge.soft {
  background: var(--ocean-soft);
  color: var(--deep);
}

.badge.pending {
  background: var(--gold-bg);
  color: var(--gold-ink);
}

.badge.rejected {
  background: var(--danger-bg);
  color: var(--danger);
}

.fav-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

.fav-btn.active {
  color: #d63d4d;
  background: #fff;
}

.unit-ref {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(10, 43, 56, 0.78);
  color: #fff;
  padding: 2px 9px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
}

.unit-body {
  padding: 14px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.unit-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--deep);
  line-height: 1.5;
  cursor: pointer;
}

.unit-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
}

.unit-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f4f8f8;
  border: 1px solid #e4efef;
  padding: 3px 9px;
  border-radius: 9px;
  font-weight: 600;
}

.unit-spec-pill .svg-ic {
  width: 14px;
  height: 14px;
  color: var(--ocean);
}

.unit-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #edf3f3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.unit-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--deep);
}

.unit-price small {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 100%;
  padding: 11px 42px 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--bd);
  background: var(--paper);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-box input:focus {
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(14, 96, 112, 0.12);
}

.search-box .search-ic {
  position: absolute;
  right: 13px;
  color: var(--muted);
  pointer-events: none;
}

.chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.chips-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  border: 1px solid var(--bd);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip.active {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease, background 0.14s ease;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--deep) 0%, var(--ocean) 100%);
  color: #fff;
  box-shadow: 0 5px 16px rgba(15, 61, 78, 0.22);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-gold {
  background: linear-gradient(135deg, #c9a45f 0%, #b58c42 100%);
  color: #fff;
  box-shadow: 0 5px 15px rgba(198, 161, 94, 0.28);
}

.btn-soft {
  background: var(--ocean-soft);
  color: var(--deep);
  border: 1px solid #cce0e2;
}

.btn-soft:hover {
  background: #d8ecee;
}

.btn-outline {
  background: var(--paper);
  color: var(--deep);
  border: 1px solid var(--bd);
}

.btn-sm {
  padding: 8px 13px;
  font-size: 12px;
  border-radius: 11px;
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

@media (min-width: 680px) {
  .form-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--deep);
}

.field label small {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid #cfdede;
  background: #fbfdfd;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ocean);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 96, 112, 0.12);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.check-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--bd);
  background: #fafcfc;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.check-pill input {
  width: auto;
  accent-color: var(--deep);
}

/* Upload Zone */
.upload-zone {
  border: 1.5px dashed #aac6c9;
  border-radius: 15px;
  background: #f5fbfb;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.upload-zone:hover {
  background: #ebf6f6;
  border-color: var(--ocean);
}

.upload-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.upload-thumb {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--bd);
}

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

.upload-thumb button {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(184, 50, 50, 0.9);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 760px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

.gallery-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  background: #dce8e8;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(10, 43, 56, 0.84));
  color: #fff;
}

.gallery-cap strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

/* Chat UI */
.chat-box {
  background: #f5f9f9;
  border: 1px solid var(--bd);
  border-radius: 18px;
  padding: 14px;
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.msg-bubble {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.65;
  position: relative;
}

.msg-bubble.tenant {
  align-self: flex-start;
  background: var(--deep);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-bubble.owner,
.msg-bubble.admin {
  align-self: flex-end;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--bd);
  border-bottom-left-radius: 4px;
}

.msg-bubble.system {
  align-self: center;
  max-width: 96%;
  background: #e9f4f4;
  color: var(--deep);
  font-size: 12px;
  text-align: center;
  border: 1px solid #d1e5e6;
}

.msg-meta {
  display: block;
  font-size: 10px;
  opacity: 0.72;
  margin-top: 4px;
}

.chat-quick-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.chat-quick-chips button {
  border: 1px solid #cce0e2;
  background: #fff;
  color: var(--deep);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11.5px;
  cursor: pointer;
}

.chat-form {
  display: flex;
  gap: 8px;
}

.chat-form input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid #c9dbdc;
  background: #fff;
  font-size: 13.5px;
  outline: none;
}

.chat-form input:focus {
  border-color: var(--ocean);
}

/* Services Cards */
.service-card {
  background: var(--paper);
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.service-head h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--deep);
}

/* About Village Facts Grid */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
}

@media (min-width: 720px) {
  .facts-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fact-box {
  background: #f5fafa;
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
}

.fact-box strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--deep);
}

.fact-box span {
  font-size: 11.5px;
  color: var(--muted);
}

/* App Download Promo Card */
.app-promo-card {
  margin-top: 18px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #0d3949 0%, #0f5666 65%, #166a78 100%);
  color: #fff;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(15, 61, 78, 0.22);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 720px) {
  .app-promo-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.app-promo-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-promo-info img {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  border: 2px solid rgba(242, 223, 177, 0.45);
  flex-shrink: 0;
}

.app-promo-info h4 {
  margin: 0 0 3px;
  font-size: 15.5px;
  font-weight: 800;
}

.app-promo-info p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.84);
}

.app-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.btn-glass {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Birthday Card */
.birthday-card {
  border-radius: 20px;
  background: linear-gradient(135deg, #0f3d4e 0%, #165e6d 55%, #c6a15e 140%);
  color: #fff;
  padding: 22px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 61, 78, 0.24);
  margin: 12px 0;
}

.birthday-card h4 {
  margin: 8px 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-light);
}

.birthday-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

/* Unit Detail Page */
.detail-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 280px;
  background: #dce8e8;
  margin-bottom: 12px;
  cursor: pointer;
}

@media (min-width: 720px) {
  .detail-hero {
    height: 360px;
  }
}

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

.detail-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 14px;
}

.detail-thumbs img {
  width: 76px;
  height: 58px;
  object-fit: cover;
  border-radius: 11px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.78;
}

.detail-thumbs img.active {
  border-color: var(--deep);
  opacity: 1;
}

/* Footer */
.site-footer {
  width: 100%;
  padding: 16px 16px 24px;
}

@media (min-width: 860px) {
  .site-footer {
    padding: 20px 32px 28px;
  }
}

@media (min-width: 1360px) {
  .site-footer {
    padding: 22px 48px 30px;
  }
}

.privacy-banner {
  background: var(--gold-bg);
  border: 1px solid #efdcb6;
  color: #6c4d17;
  border-radius: 15px;
  padding: 11px 14px;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  line-height: 1.65;
}

.footer-meta {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 12px;
  font-weight: 600;
}

/* Fixed 5-Tab Bottom Navigation — 100% Full Width */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--bd);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  box-shadow: 0 -6px 24px rgba(15, 61, 78, 0.08);
}

.nav-item {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 700;
  transition: color 0.15s ease;
}

.nav-item.active {
  color: var(--deep);
}

.nav-item.active .nav-ic {
  color: var(--ocean);
}

.nav-fab-wrap {
  margin-top: -28px;
}

.nav-fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep) 0%, var(--ocean) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(15, 61, 78, 0.34);
  border: 3px solid #fff;
  transition: transform 0.16s ease;
}

.nav-fab-wrap:hover .nav-fab {
  transform: scale(1.06);
}

.nav-fab .svg-ic {
  width: 24px;
  height: 24px;
}

/* Slide-out Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 32, 42, 0.48);
  backdrop-filter: blur(3px);
  z-index: 90;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(315px, 86vw);
  height: 100dvh;
  background: var(--paper);
  z-index: 100;
  box-shadow: -10px 0 40px rgba(9, 32, 42, 0.24);
  transform: translateX(104%);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head {
  padding: 16px;
  border-bottom: 1px solid var(--bd);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.drawer-brand strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--deep);
}

.drawer-brand small {
  font-size: 11px;
  color: var(--muted);
}

.drawer-user {
  padding: 12px 16px;
  background: #f4f9f9;
  border-bottom: 1px solid var(--bd);
  font-size: 12.5px;
}

.drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.drawer-list button,
.drawer-list a {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-align: right;
  transition: background 0.14s ease, color 0.14s ease;
}

.drawer-list button:hover,
.drawer-list a:hover {
  background: var(--ocean-soft);
  color: var(--deep);
}

.drawer-list button .svg-ic,
.drawer-list a .svg-ic {
  color: var(--ocean);
  width: 19px;
  height: 19px;
}

.drawer-sep {
  height: 1px;
  background: #e9f0f0;
  margin: 6px 8px;
}

.pill-soon {
  margin-right: auto;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  background: var(--gold-bg);
  color: var(--gold-ink);
  padding: 2px 8px;
  border-radius: 999px;
}

.pill-new {
  margin-right: auto;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  background: var(--success-bg);
  color: var(--success);
  padding: 2px 8px;
  border-radius: 999px;
}

.drawer-link-apk {
  background: #edf7f7 !important;
  color: var(--deep) !important;
}

.drawer-link-admin {
  background: #fff6e2 !important;
  color: #7c5612 !important;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 22, 30, 0.94);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox[hidden] {
  display: none;
}

.lb-stage {
  max-width: 900px;
  width: 100%;
  text-align: center;
  color: #fff;
}

.lb-stage img {
  max-height: 74vh;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.lb-caption {
  margin-top: 12px;
}

.lb-caption strong {
  font-size: 15px;
  display: block;
}

.lb-caption p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
}

.lb-close,
.lb-nav {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lb-close {
  top: 18px;
  left: 18px;
}

.lb-prev {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* Tabs */
.tabs {
  display: flex;
  background: #e9f1f2;
  padding: 4px;
  border-radius: 14px;
  gap: 4px;
  margin-bottom: 14px;
}

.tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 9px 10px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.tabs button.active {
  background: #fff;
  color: var(--deep);
  box-shadow: 0 2px 8px rgba(15, 61, 78, 0.1);
}

/* Toast */
.toast-stack {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, 92vw);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--deep);
  color: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(9, 36, 48, 0.28);
  animation: fadeUp 0.2s ease;
  pointer-events: auto;
}

.toast.success {
  background: #17694a;
}

.toast.error {
  background: #a92b2b;
}

.empty-state {
  text-align: center;
  padding: 32px 18px;
  background: var(--paper);
  border: 1px dashed #c8dbdc;
  border-radius: var(--radius-lg);
}

.empty-state h4 {
  margin: 10px 0 6px;
  color: var(--deep);
}

.empty-state p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.success-box {
  text-align: center;
  padding: 26px 18px;
  background: var(--success-bg);
  border: 1px solid #bce4d0;
  border-radius: var(--radius-lg);
  color: #13533a;
}

.success-box .ref-pill {
  display: inline-block;
  margin: 10px 0;
  padding: 5px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--deep);
  font-weight: 800;
  font-size: 13px;
  border: 1px solid #b8decb;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--bd);
  border-radius: 14px;
  background: #fafdfd;
  margin-bottom: 10px;
  gap: 10px;
}

.bella-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 220px;
  background: var(--deep) url('/static/images/bella-marina.jpg') center / cover no-repeat;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  margin-bottom: 16px;
}

.bella-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 43, 56, 0.2), rgba(10, 43, 56, 0.84));
}

.bella-hero > * {
  position: relative;
  z-index: 2;
}
