/* ============================================
   RH Tower — Home Page Styles
   Premium · Luxury · Glassmorphism
   ============================================ */

/* ----- CSS Custom Properties ----- */
:root {
  --color-bg:       #0B1220;
  --color-primary:  #2563EB;
  --color-accent:   #60A5FA;
  --color-text:     #FFFFFF;
  --color-muted:    #CBD5E1;
  --color-glass:    rgba(255, 255, 255, 0.08);
  --color-border:   rgba(255, 255, 255, 0.15);
  --color-error:    #FCA5A5;

  --font-family:    'Kantumruy Pro', 'Inter', 'Noto Sans Khmer', 'Noto Sans SC', sans-serif;
  --fw-light:       300;
  --fw-regular:     400;
  --fw-medium:      500;
  --fw-semibold:    600;
  --fw-bold:        700;

  --max-width:      1100px;
  --header-height:  72px;
  --radius:         16px;
  --radius-sm:      10px;
  --transition:     0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-family);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] {
  display: none !important;
}

/* ============================================
   BACKGROUND LAYER
   ============================================ */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* Background image with slow zoom animation */
.bg__image {
  position: absolute;
  inset: -20px;          /* Extra space for the zoom */
  background: url('../../assets/images/background.png') center / cover no-repeat;
  filter: blur(2px);
  animation: bgZoom 30s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes bgZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.12); }
}

/* Dark overlay — lighter at the top so the building shows behind the hero */
.bg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 18, 32, 0.55) 0%,
    rgba(11, 18, 32, 0.65) 50%,
    rgba(11, 18, 32, 0.85) 100%
  );
  transition: background var(--transition);
}

/* Darken the background once the visitor scrolls past the hero */
body.scrolled .bg__overlay {
  background: rgba(11, 18, 32, 0.86);
}

/* Particle canvas */
.bg__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: var(--header-height);
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

body.scrolled .header {
  background: rgba(11, 18, 32, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo__img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.logo__text em {
  font-style: normal;
  color: var(--color-accent);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  color: var(--color-muted);
  transition: color var(--transition);
}

.nav a:hover {
  color: #60A5FA;
}

.nav .nav__book {
  display: none;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), border-color var(--transition);
}

.btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.25;
  transition: transform var(--transition);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 3px;
}

.btn--primary {
  background: #2563EB;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn--primary:hover {
  background: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}

.btn--ghost {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  border-color: rgba(37, 99, 235, 0.6);
  background: rgba(37, 99, 235, 0.18);
  transform: translateY(-2px);
}

.btn--sm {
  min-height: 42px;
  padding: 0 22px;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

/* ============================================
   GLASS CARD
   ============================================ */

.glass {
  background: var(--color-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-height) + 40px) 24px 96px;
  text-align: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  display: flex;
  justify-content: center;
}

.scroll-hint__dot {
  width: 4px;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--color-accent);
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { transform: translateY(0);    opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ============================================
   BADGE
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  user-select: none;
}

/* ============================================
   HEADING
   ============================================ */

.heading {
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subheading {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: var(--fw-light);
  line-height: 1.4;
  margin-bottom: 18px;
}

/* ============================================
   DESCRIPTION
   ============================================ */

.description {
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  font-weight: var(--fw-regular);
  line-height: 1.75;
  color: var(--color-muted);
  max-width: 600px;
  margin-bottom: 40px;
}

.hide-mobile {
  display: inline;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px;
}

.section--tight {
  padding-top: 24px;
  padding-bottom: 24px;
}

.section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}

.section__head .badge {
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: var(--fw-bold);
  line-height: 1.2;
}

.section__lead {
  margin-top: 12px;
  max-width: 560px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-muted);
}

/* ----- Stats ----- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px;
  text-align: center;
}

.stat__value {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  color: var(--color-accent);
}

.stat__label {
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ----- About ----- */
.about {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 40px;
}

.about p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-muted);
}

.about p + p {
  margin-top: 16px;
}

/* ----- Floor Directory ----- */
.floors {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.floor {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  transition: border-color var(--transition), transform var(--transition);
}

.floor:hover {
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.floor__level {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  min-width: 68px;
  height: 52px;
  padding: 0 10px;
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-sm);
}

.floor h3 {
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 2px;
}

.floor p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-muted);
}

/* ----- Amenities ----- */
.amenities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.amenity {
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition);
}

.amenity:hover {
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.amenity svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  margin-bottom: 16px;
  color: var(--color-accent);
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-sm);
}

.amenity h3 {
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 6px;
}

.amenity p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--color-muted);
}

/* ----- Contact ----- */
.contact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.contact__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition);
}

.contact__item:hover {
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.contact__item svg {
  width: 24px;
  height: 24px;
  margin-bottom: 14px;
  color: var(--color-accent);
}

.contact__label {
  font-size: 0.72rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  opacity: 0.8;
}

.contact__value {
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* ----- Location Map ----- */
.map {
  position: relative;
  margin-top: 16px;
  overflow: hidden;
  padding: 0;
}

.map__canvas {
  height: 420px;
  background: #0d1526;
}

/* soft vignette so the map blends into the glass card */
.map::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 80px rgba(11, 18, 32, 0.75);
}

.map__card {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 460px;
  padding: 14px 16px;
  background: rgba(11, 18, 32, 0.82);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.map__logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(96, 165, 250, 0.5);
}

.map__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.map__eyebrow {
  font-size: 0.68rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.map__title {
  font-size: 1rem;
  font-weight: var(--fw-bold);
}

.map__address {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.map__btn {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 16px;
  gap: 8px;
}

.map__btn svg {
  width: 16px;
  height: 16px;
}

.map__btn:hover svg {
  transform: none;
}

/* Logo pin */
.map-pin {
  background: none;
  border: 0;
}

.map-pin__head {
  position: absolute;
  top: 2px;
  left: 4px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1D4ED8, #3B82F6);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.55);
  transition: transform 0.25s ease;
}

.map-pin:hover .map-pin__head {
  transform: rotate(-45deg) scale(1.08);
}

.map-pin__head img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  transform: rotate(45deg);
}

.map-pin__pulse {
  position: absolute;
  left: 50%;
  top: 61px;
  width: 22px;
  height: 8px;
  margin: -4px 0 0 -11px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.55);
  animation: pinPulse 2s ease-out infinite;
}

@keyframes pinPulse {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(3);   opacity: 0; }
}

.map .map__imagery {
  filter: brightness(0.72) saturate(0.85) contrast(1.05);
}

/* Leaflet controls in the dark theme */
.map .leaflet-container {
  font-family: inherit;
  background: #0d1526;
}

.map .leaflet-bar {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.map .leaflet-bar a {
  width: 34px;
  height: 34px;
  line-height: 34px;
  color: var(--color-text);
  background: rgba(17, 26, 44, 0.92);
  border-bottom-color: var(--color-border);
}

.map .leaflet-bar a:hover {
  background: var(--color-primary);
  color: #fff;
}

.map .leaflet-control-attribution {
  font-size: 0.6rem;
  color: rgba(203, 213, 225, 0.6);
  background: rgba(11, 18, 32, 0.7);
}

.map .leaflet-control-attribution a {
  color: var(--color-accent);
}

/* ----- Call To Action ----- */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 56px 32px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.18), transparent 70%),
    var(--color-glass);
}

.cta .btn {
  margin-top: 20px;
}

/* ============================================
   SITE FOOTER
   ============================================ */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-border);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.site-footer__brand .logo {
  margin-bottom: 12px;
}

.site-footer__brand .logo__img {
  width: 36px;
  height: 36px;
}

.site-footer__tagline {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--color-muted);
  opacity: 0.7;
  max-width: 260px;
}

.site-footer__links,
.site-footer__contact,
.site-footer__social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__links h4,
.site-footer__contact h4,
.site-footer__social h4 {
  font-size: 0.82rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.site-footer__links a,
.site-footer__contact a {
  font-size: 0.82rem;
  color: var(--color-muted);
  transition: color var(--transition);
}

.site-footer__links a:hover,
.site-footer__contact a:hover {
  color: var(--color-accent);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-icons a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-glass);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.social-icons a:hover {
  color: #60A5FA;
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.social-icons svg {
  width: 18px;
  height: 18px;
}

.site-footer__bottom {
  border-top: 1px solid var(--color-border);
  text-align: center;
  padding: 16px 24px;
}

.site-footer__bottom p {
  font-size: 0.75rem;
  color: rgba(203, 213, 225, 0.45);
}

/* ============================================
   BOOKING MODAL — wide, no-scroll
   ============================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalFade 0.25s ease;
}

@keyframes modalFade {
  from { opacity: 0; }
}

@keyframes modalRise {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
}

/* Panel — wide so everything fits without scroll */
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px 28px 22px;
  background: rgba(17, 26, 44, 0.96);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: modalRise 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal__panel--wide {
  max-width: 820px;
  overflow: hidden;          /* no scrollbar */
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.modal__close:hover {
  color: var(--color-text);
  background: var(--color-glass);
}

/* Header — single line */
.modal__header {
  text-align: center;
  margin-bottom: 16px;
}

.modal__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.modal__icon svg {
  width: 30px;
  height: 30px;
  color: var(--color-accent);
}

.modal__title {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  margin-bottom: 4px;
  text-align: center;
}

.modal__lead {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--color-muted);
  text-align: center;
}

/* Success view */
.modal__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0;
}

.modal__success .modal__lead {
  margin-bottom: 20px;
}

.modal__check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1D4ED8, #2563EB);
}

.modal__check svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.5;
}

/* ============================================
   COMPACT FORM — fits on one screen
   ============================================ */

.form--compact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form__row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

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

.field--grow {
  flex: 1.5;
}

.field > span {
  font-size: 0.72rem;
  font-weight: var(--fw-semibold);
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

.field input,
.field select,
.cselect__trigger {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color-scheme: dark;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.field input:focus,
.field select:focus,
.cselect__trigger:focus-visible,
.cselect.open .cselect__trigger {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ----- Custom select ----- */
.cselect {
  position: relative;
}

.cselect__native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.cselect__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.cselect__trigger:hover {
  border-color: rgba(37, 99, 235, 0.45);
}

.cselect__value {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(203, 213, 225, 0.45);
}

.cselect.has-value .cselect__value {
  color: var(--color-text);
}

.cselect__arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  stroke-width: 2.25;
  color: var(--color-muted);
  transition: transform var(--transition), color var(--transition);
}

.cselect.open .cselect__arrow {
  transform: rotate(180deg);
  color: var(--color-accent);
}

.cselect__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 5px;
  list-style: none;
  background: #111a2c;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  animation: cselectIn 0.16s ease;
}

.cselect--up .cselect__menu {
  top: auto;
  bottom: calc(100% + 6px);
  animation-name: cselectInUp;
}

@keyframes cselectIn   { from { opacity: 0; transform: translateY(-4px); } }
@keyframes cselectInUp { from { opacity: 0; transform: translateY(4px); } }

.cselect__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  color: var(--color-muted);
  border-radius: 7px;
  cursor: pointer;
  user-select: none;
}

.cselect__option.is-active {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.07);
}

.cselect__option.is-selected {
  color: var(--color-text);
  background: rgba(37, 99, 235, 0.22);
}

.cselect__option.is-selected::after {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 6px;
  margin-top: -3px;
  border-left: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(-45deg);
}

.field input.is-invalid {
  border-color: var(--color-error);
}

.field input::placeholder {
  color: rgba(203, 213, 225, 0.4);
}

/* Phone input with country prefix */
.phone-input {
  display: flex;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.phone-input:focus-within {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.phone-input__prefix {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  font-size: 0.78rem;
  font-weight: var(--fw-medium);
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid var(--color-border);
  white-space: nowrap;
  user-select: none;
}

.phone-input__flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}

.phone-input {
  background: rgba(255, 255, 255, 0.05);
}

.phone-input input {
  flex: 1;
  min-width: 0;
  height: 100%;
  letter-spacing: 0.04em;
  background: transparent;
  border: none !important;
  border-radius: 0 !important;
}

.phone-input input:focus {
  border: none !important;
  box-shadow: none;
  background: transparent;
}

.phone-input.is-valid {
  border-color: rgba(34, 197, 94, 0.6);
}

.phone-input.is-invalid {
  border-color: var(--color-error);
}

.phone-input.is-invalid:focus-within {
  box-shadow: 0 0 0 3px rgba(252, 165, 165, 0.15);
}

.phone-input__status {
  flex-shrink: 0;
  align-self: center;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  stroke-width: 2.5;
  color: #4ADE80;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--transition), transform var(--transition);
}

.phone-input.is-valid .phone-input__status {
  opacity: 1;
  transform: scale(1);
}

.field__hint {
  min-height: 1em;
  font-size: 0.68rem;
  line-height: 1.3;
  color: rgba(203, 213, 225, 0.55);
  transition: color var(--transition);
}

.field__hint.is-valid {
  color: #4ADE80;
}

.field__hint.is-invalid {
  color: var(--color-error);
}

/* Footer row: error + button + privacy in one line area */
.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 4px;
}

.form__footer .form__error {
  flex: 1 1 100%;
  min-height: 0;
  font-size: 0.78rem;
  color: var(--color-error);
}

.form__footer .form__error:empty {
  display: none;
}

.form__footer .btn--submit {
  white-space: nowrap;
}

.form__footer .form__privacy {
  flex: 1;
  min-width: 200px;
}

/* Submit button — solid blue */
.btn--submit {
  background: #2563EB;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  font-size: 0.9rem;
  min-height: 42px;
  padding: 0 24px;
}

.btn--submit:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.btn--submit svg {
  width: 18px;
  height: 18px;
}

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

.btn--submit.is-sending span {
  visibility: hidden;
  width: 0;
  overflow: hidden;
}

.btn--submit.is-sending::after {
  content: attr(data-sending-text);
  display: inline;
}

.form__privacy {
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--color-muted);
  opacity: 0.55;
}

/* ============================================
   LANGUAGE DROPDOWN
   ============================================ */

.header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  position: relative;
}

.lang__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  color: var(--color-text);
  background: var(--color-glass);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--transition), background var(--transition);
}

.lang__btn:hover,
.lang.open .lang__btn {
  border-color: rgba(37, 99, 235, 0.5);
  background: rgba(37, 99, 235, 0.12);
}

.lang__btn:focus-visible,
.lang__option:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.lang__flag {
  flex-shrink: 0;
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.lang__arrow {
  width: 14px;
  height: 14px;
  stroke-width: 2.25;
  color: var(--color-muted);
  transition: transform var(--transition);
}

.lang.open .lang__arrow {
  transform: rotate(180deg);
}

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(17, 26, 44, 0.97);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  animation: modalRise 0.18s ease;
}

.lang__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: var(--fw-medium);
  text-align: left;
  color: var(--color-muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.lang__option:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
}

.lang__option.active {
  color: var(--color-text);
  background: rgba(37, 99, 235, 0.18);
}

.lang__option.active::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 7px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color var(--transition);
}

.menu-toggle:hover {
  border-color: rgba(37, 99, 235, 0.4);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-muted);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

body.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Language-specific font classes */
body.font-english {
  font-family: 'Kantumruy Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.font-khmer {
  font-family: 'Kantumruy Pro', 'Noto Sans Khmer', 'Inter', sans-serif;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

body.font-khmer .heading,
body.font-khmer .section__title {
  line-height: 1.5;
}

body.font-chinese {
  font-family: 'Kantumruy Pro', 'Noto Sans SC', 'Inter', sans-serif;
  line-height: 1.5;
}

/* ============================================
   FADE-IN ANIMATIONS
   ============================================ */

/* Hero: staggered reveal on load */
.fade-in,
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible,
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.35s; }
.fade-in:nth-child(4) { transition-delay: 0.5s; }
.fade-in:nth-child(5) { transition-delay: 0.65s; }
.fade-in:nth-child(6) { transition-delay: 0.8s; }

/* Below the fold: stagger cards within each grid as they scroll into view */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }
.reveal:nth-child(7) { transition-delay: 0.48s; }
.reveal:nth-child(8) { transition-delay: 0.56s; }

/* Hover lift should not wait for the reveal delay */
.reveal.visible:hover {
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .bg__image,
  .scroll-hint__dot {
    animation: none;
  }

  .fade-in,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   RESPONSIVE — Laptop (≤ 960px)
   ============================================ */

@media (max-width: 960px) {
  .menu-toggle {
    display: flex;
  }

  .hide-mobile-btn {
    display: none;
  }

  .nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 24px;
    background: rgba(11, 18, 32, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9;
    animation: modalFade 0.25s ease;
  }

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

  .nav a {
    display: block;
    width: 100%;
    padding: 16px 0;
    font-size: 1.1rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav .nav__book {
    display: inline-flex;
    width: 100%;
    max-width: 320px;
    margin-top: 20px;
  }

  body.nav-open {
    overflow: hidden;
  }

  /* backdrop-filter would trap the fixed menu inside the header */
  body.nav-open .header {
    background: rgba(11, 18, 32, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: var(--color-border);
  }

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

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  /* Modal: allow scroll on smaller laptops */
  .modal__panel--wide {
    max-width: 600px;
    overflow-y: auto;
  }

  .form__row--3 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   RESPONSIVE — Tablet (≤ 768px)
   ============================================ */

@media (max-width: 768px) {
  .section {
    padding: 56px 20px;
  }

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

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

  .map__canvas {
    height: 320px;
  }

  .map__card {
    position: relative;
    left: auto;
    bottom: auto;
    max-width: none;
    flex-wrap: wrap;
    border: 0;
    border-top: 1px solid var(--color-border);
    border-radius: 0;
    box-shadow: none;
  }

  .map__info {
    flex: 1;
  }

  .map__btn {
    width: 100%;
  }

  .about {
    padding: 28px 24px;
  }

  .description {
    margin-bottom: 32px;
  }
}

/* ============================================
   RESPONSIVE — Mobile (≤ 480px)
   ============================================ */

@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

  .header__inner {
    padding: 0 16px;
    gap: 10px;
  }

  .header__right {
    gap: 8px;
  }

  .logo {
    font-size: 1rem;
    gap: 8px;
  }

  .logo__img {
    width: 36px;
    height: 36px;
  }

  .lang__btn {
    height: 36px;
    padding: 0 10px;
    gap: 6px;
  }

  .lang__name {
    display: none;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding: 48px 16px;
  }

  .badge {
    font-size: 0.7rem;
    padding: 6px 14px;
  }

  .description {
    font-size: 0.88rem;
  }

  .hide-mobile {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .amenities,
  .contact,
  .form__row,
  .form__row--3 {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .modal__panel--wide {
    max-width: 100%;
    overflow-y: auto;
    max-height: calc(100vh - 32px);
    padding: 24px 16px 20px;
  }

  .form__footer {
    flex-direction: column;
  }

  .form__footer .btn--submit {
    width: 100%;
  }

  .stats {
    gap: 12px;
  }

  .floor {
    padding: 16px;
    gap: 16px;
  }

  .cta {
    padding: 40px 20px;
  }

  .modal__panel {
    padding: 32px 20px 24px;
  }
}
