@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700;800;900&family=Dancing+Script:wght@500;600;700&display=swap");

:root {
  --white: #ffffff;
  --ivory: #f7f1e8;
  --ivory-2: #fffaf1;
  --dark-red: #7a0000;
  --wine: #520008;
  --black: #000000;
  --ink: #15100f;
  --muted: #7e716b;
  --pastel-grey: #d2c8be;
  --gray-brown: #574944;
  --gold: #c8a96a;
  --line: rgba(87, 73, 68, 0.18);
  --glass: rgba(255, 250, 241, 0.70);
  --shadow: 0 28px 90px rgba(29, 13, 13, 0.20);
  --shadow-soft: 0 18px 55px rgba(87, 73, 68, 0.12);
  --radius-xl: 42px;
  --radius-lg: 30px;
  --radius-md: 22px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Dancing Script", cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background:
    radial-gradient(circle at 15% 5%, rgba(122, 0, 0, 0.14), transparent 26%),
    radial-gradient(circle at 85% 20%, rgba(200, 169, 106, 0.18), transparent 22%),
    linear-gradient(135deg, var(--ivory-2), var(--ivory));
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.42;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.13'/%3E%3C/svg%3E");
}

::selection {
  background: var(--dark-red);
  color: var(--ivory);
}

a,
button {
  color: inherit;
  text-decoration: none;
  outline: none;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(200, 169, 106, 0.92);
  outline-offset: 5px;
}

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

button {
  font: inherit;
}

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 3px;
  background: var(--dark-red);
  transform: scaleX(0);
  transform-origin: left;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--wine);
  color: var(--ivory);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.page-loader.hide {
  opacity: 0;
  visibility: hidden;
}

.page-loader div {
  text-align: center;
  animation: loaderFloat 1.2s ease infinite alternate;
}

.page-loader span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 32px;
}

.page-loader p {
  margin: 0;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

@keyframes loaderFloat {
  to { transform: translateY(-10px); }
}

.site-header {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 14px;
  right: 14px;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 12px 14px 12px 12px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  background: rgba(247, 241, 232, 0.68);
  box-shadow: 0 18px 50px rgba(23, 16, 15, 0.10);
  backdrop-filter: blur(18px);
  transition: 0.35s ease;
}

.site-header.is-scrolled {
  top: max(8px, env(safe-area-inset-top));
  background: rgba(247, 241, 232, 0.90);
  box-shadow: 0 16px 44px rgba(23, 16, 15, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dark-red);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(122, 0, 0, 0.28);
}

.brand-copy {
  min-width: 0;
}

.brand strong {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  white-space: nowrap;
}

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

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav a {
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--gray-brown);
  font-size: 13px;
  font-weight: 800;
  transition: 0.25s ease;
}

.top-nav a:hover {
  color: var(--dark-red);
  background: rgba(122,0,0,0.06);
}

.nav-cta {
  color: var(--ivory) !important;
  background: var(--ink) !important;
}

/* HERO */

.hero-cinematic {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.8fr);
  align-items: center;
  gap: clamp(20px, 4vw, 72px);
  padding: calc(120px + env(safe-area-inset-top)) clamp(18px, 5vw, 72px) 70px;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(21, 16, 15, 0.95), rgba(82, 0, 8, 0.86)),
    url("../img/C1-ELAN/0.jpg") center/cover;
  color: var(--ivory);
}

.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 26%, rgba(255,255,255,0.16), transparent 20%),
    linear-gradient(to bottom, rgba(0,0,0,0.12), rgba(0,0,0,0.58));
}

.hero-outline {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1vw;
  pointer-events: none;
  opacity: 0.20;
}

.hero-outline span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(76px, 16vw, 250px);
  font-weight: 700;
  line-height: 0.76;
  letter-spacing: -0.07em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 241, 232, 0.58);
  transform: translateX(-2vw);
}

.hero-outline span:nth-child(2) {
  text-align: right;
  transform: translateX(3vw);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.23em;
  font-size: 12px;
  font-weight: 900;
}

.hero-logo {
  width: max-content;
  margin: 24px 0 26px;
  text-align: center;
}

.hero-logo span {
  display: block;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 42px;
  line-height: 0.8;
  letter-spacing: -0.12em;
}

.hero-logo strong {
  display: block;
  margin-top: 9px;
  letter-spacing: 0.22em;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.hero-logo small {
  display: block;
  margin-top: 6px;
  letter-spacing: 0.34em;
  font-size: 9px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(70px, 10.5vw, 158px);
  line-height: 0.82;
  letter-spacing: -0.07em;
  font-weight: 600;
}

.hero-copy h1 em,
.about-copy h2 em,
.contact-copy h2 em {
  display: block;
  color: var(--gold);
  font-family: var(--script);
  font-size: 0.88em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  transform: translateX(0.03em);
}

.hero-subtitle {
  max-width: 620px;
  margin: 30px 0 0;
  color: rgba(255,255,255,0.78);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.8;
}

.hero-actions,
.card-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 21px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--ivory);
  background: var(--dark-red);
  box-shadow: 0 18px 38px rgba(122, 0, 0, 0.30);
}

.btn.ghost {
  color: var(--ivory);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.30);
}

.btn.soft {
  color: var(--dark-red);
  background: rgba(122, 0, 0, 0.08);
}

.btn.small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 13px;
}

.hero-stack {
  position: relative;
  z-index: 2;
  min-height: 620px;
}

.hero-photo {
  position: absolute;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 34px;
  background: var(--gray-brown);
  box-shadow: 0 28px 80px rgba(0,0,0,0.34);
  animation: floatCard 8s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -1.4s);
  isolation: isolate;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: paint;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  clip-path: inset(0 round 34px);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.hero-photo:hover img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.04);
}

.hero-photo div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 14px;
  border-radius: 18px;
  background: rgba(21, 16, 15, 0.58);
  backdrop-filter: blur(14px);
}

.hero-photo span {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
}

.hero-photo strong {
  display: block;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.hero-photo-1 {
  top: 4%;
  left: 6%;
  width: 58%;
  height: 54%;
  transform: rotate(-5deg) translateZ(0);
}

.hero-photo-2 {
  right: 0;
  top: 22%;
  width: 50%;
  height: 50%;
  transform: rotate(5deg) translateZ(0);
}

.hero-photo-3 {
  left: 14%;
  bottom: 2%;
  width: 48%;
  height: 42%;
  transform: rotate(2deg) translateZ(0);
}

@keyframes floatCard {
  to { translate: 0 -20px; }
}

.scroll-cue {
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  bottom: 26px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 10px;
  font-weight: 900;
}

.scroll-cue span {
  width: 42px;
  height: 1px;
  background: rgba(255,255,255,0.5);
  animation: cue 1.8s ease infinite alternate;
}

@keyframes cue {
  to { width: 82px; }
}

/* TICKER */

.ticker-section {
  overflow: hidden;
  border-block: 1px solid rgba(122,0,0,0.12);
  background: var(--ivory-2);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 34s linear infinite;
}

.ticker-track span {
  padding: 16px 24px;
  color: var(--dark-red);
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 50px);
  line-height: 1;
  white-space: nowrap;
}

.ticker-track span:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px var(--dark-red);
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* SECTIONS */

.section {
  padding: clamp(56px, 7vw, 108px) clamp(18px, 5vw, 72px);
}

.editorial-intro,
.price-intro {
  display: grid;
  grid-template-columns: 1.15fr minmax(280px, 520px);
  gap: 34px;
  align-items: end;
}

.section h2,
.reel-heading h2,
.home-head h2,
.rules-card h2,
.contact-copy h2,
.gallery-heading h2,
.detail-note h2,
.about-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 6.6vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 600;
}

.section-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

/* ROOM REEL */

.reel-section {
  padding: clamp(44px, 7vw, 90px) 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(200,169,106,0.10), transparent 26%),
    var(--wine);
  color: var(--ivory);
  overflow: hidden;
}

.reel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 5vw, 72px) 24px;
}

.reel-heading h2 {
  max-width: 860px;
}

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

.circle-btn {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  background: rgba(255,255,255,0.09);
  color: var(--ivory);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(12px);
  transition: 0.25s ease;
}

.circle-btn:hover {
  transform: scale(1.08);
  background: rgba(255,255,255,0.18);
}

.reel-window {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 30px 0 48px;
  scrollbar-width: none;
  touch-action: pan-y pan-x;
}

.reel-window::-webkit-scrollbar {
  display: none;
}

.cursor-grab { cursor: grab; }
.cursor-grabbing { cursor: grabbing !important; }

.reel-track {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 54px);
  width: max-content;
  padding-inline: clamp(18px, 5vw, 72px);
}

.reel-card {
  position: relative;
  width: min(350px, 76vw);
  aspect-ratio: 9 / 13.2;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 34px;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 32px 80px rgba(0,0,0,0.30);
  transform: rotate(-2deg) translateZ(0);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  user-select: none;
  isolation: isolate;
  contain: paint;
  backface-visibility: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  clip-path: inset(0 round 34px);
}

.reel-card:nth-child(2n) {
  transform: translateY(30px) rotate(3deg) translateZ(0);
}

.reel-card:nth-child(3n) {
  transform: translateY(-20px) rotate(-4deg) translateZ(0);
}

.reel-card:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.018) translateZ(0);
  box-shadow: 0 42px 110px rgba(0,0,0,0.40);
}

.reel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: saturate(0.95) contrast(1.05);
}

.reel-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.78), transparent 62%),
    radial-gradient(circle at 50% 20%, transparent, rgba(0,0,0,0.25));
}

.reel-content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.reel-content span {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  font-weight: 900;
}

.reel-content h3 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 42px;
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.reel-content p {
  margin: 12px 0 14px;
  color: rgba(255,255,255,0.74);
  line-height: 1.5;
  font-size: 13px;
}

.reel-content strong {
  display: inline-flex;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--wine);
  background: var(--ivory);
  font-size: 12px;
}

/* ABOUT */

.about-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) 1.14fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(68px, 8vw, 118px) clamp(18px, 5vw, 72px);
}

.about-media {
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--pastel-grey);
  box-shadow: var(--shadow);
  isolation: isolate;
  contain: paint;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  clip-path: inset(0 round var(--radius-xl));
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy p {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}

.about-copy h2 em,
.contact-copy h2 em {
  font-family: var(--script);
  color: var(--dark-red);
  font-style: normal;
  font-size: 0.88em;
}

/* HOME BLOCKS */

.home-block {
  margin: 0 clamp(18px, 5vw, 72px) clamp(34px, 5vw, 72px);
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--glass);
  box-shadow: var(--shadow-soft);
}

.home-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.home-head span {
  display: block;
  margin-bottom: 10px;
  color: var(--dark-red);
  font-family: var(--serif);
  font-size: 34px;
}

.home-head p {
  margin: 12px 0 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 900;
}

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

/* ROOM PREVIEW CARD */

.room-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.9s ease;
  isolation: isolate;
  contain: paint;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  clip-path: inset(0 round var(--radius-lg));
}

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

.image-wrap {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(122,0,0,0.20), rgba(87,73,68,0.20)),
    var(--pastel-grey);
  isolation: isolate;
  contain: paint;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease, filter 0.65s ease;
}

.room-card:hover .image-wrap img {
  transform: scale(1.04);
  filter: saturate(1.04) contrast(1.04);
}

.image-missing {
  display: grid;
  place-items: center;
}

.image-missing::after {
  content: "Chưa thấy ảnh. Kiểm tra đúng đường dẫn img/MÃ-PHÒNG/0.jpg";
  max-width: 230px;
  color: var(--gray-brown);
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  padding: 20px;
}

.chapter-pill,
.room-id {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.chapter-pill {
  top: 16px;
  left: 16px;
  padding: 9px 12px;
  color: var(--ivory);
  background: rgba(0,0,0,0.58);
  backdrop-filter: blur(9px);
}

.room-id {
  right: 16px;
  bottom: 16px;
  padding: 9px 12px;
  color: var(--dark-red);
  background: rgba(247, 241, 232, 0.9);
}

.room-id.large {
  top: 20px;
  right: 20px;
  bottom: auto;
}

.room-card-body {
  padding: 22px;
}

.room-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.room-type {
  margin: 0 0 6px;
  color: var(--dark-red);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  font-weight: 900;
}

.room-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.tier {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(122,0,0,0.08);
  color: var(--dark-red);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 900;
}

.room-vibe {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(87, 73, 68, 0.08);
  color: var(--gray-brown);
  font-size: 12px;
  font-weight: 800;
}

.from-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  background: var(--ivory-2);
  border: 1px solid rgba(87, 73, 68, 0.12);
}

.from-price span,
.from-price small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 900;
}

.from-price strong {
  color: var(--dark-red);
  font-family: var(--serif);
  font-size: 38px;
  line-height: 0.9;
}

/* PRICE COMPARE */

.price-section {
  padding-bottom: 80px;
}

.filter-bar {
  position: sticky;
  top: 86px;
  z-index: 50;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px clamp(18px, 5vw, 72px);
  border-block: 1px solid var(--line);
  background: rgba(247, 241, 232, 0.86);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.58);
  color: var(--gray-brown);
  cursor: pointer;
  font-weight: 900;
  transition: 0.25s ease;
}

.filter-btn:hover { transform: translateY(-2px); }

.filter-btn.active {
  color: var(--ivory);
  background: var(--dark-red);
  border-color: var(--dark-red);
}

.price-compare-wrap {
  padding: 30px clamp(18px, 5vw, 72px) 0;
}

.price-compare {
  display: grid;
  gap: 12px;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(420px, 2fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,250,241,0.78);
  box-shadow: 0 12px 36px rgba(87,73,68,0.08);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease, box-shadow 0.25s ease;
}

.price-row.active {
  opacity: 1;
  transform: translateY(0);
}

.price-row:hover {
  box-shadow: var(--shadow-soft);
}

.price-room {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.price-room img {
  width: 76px;
  height: 60px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 16px;
}

.price-room strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-room small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.price-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(74px, 1fr));
  gap: 8px;
}

.price-values span,
.compact-price-line span {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--ivory-2);
  border: 1px solid rgba(87,73,68,0.10);
}

.price-values small,
.compact-price-line small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 10px;
  font-weight: 900;
}

.price-values strong,
.compact-price-line span {
  color: var(--dark-red);
  font-weight: 900;
}

.price-values strong {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
}

/* RULES */

.rules-section {
  padding: clamp(66px, 8vw, 120px) clamp(18px, 5vw, 72px);
}

.rules-card {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 66px);
  border: 1px solid var(--dark-red);
  border-radius: var(--radius-xl);
  background: rgba(255,250,241,0.82);
  box-shadow: var(--shadow);
}

.rules-brand {
  text-align: center;
  margin-bottom: 22px;
  color: var(--dark-red);
}

.rules-brand span {
  display: block;
  font-family: var(--serif);
  font-size: 44px;
  line-height: 0.8;
  letter-spacing: -0.12em;
}

.rules-brand strong {
  display: block;
  margin-top: 10px;
  letter-spacing: 0.22em;
  font-family: var(--serif);
  font-size: 18px;
}

.rules-brand small {
  display: block;
  margin-top: 7px;
  letter-spacing: 0.34em;
  font-size: 9px;
  font-weight: 900;
}

.rules-card h2 {
  color: var(--dark-red);
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(54px, 8vw, 110px);
}

.ornament {
  position: relative;
  height: 36px;
  max-width: 720px;
  margin: 10px auto;
  background:
    radial-gradient(circle at center, var(--dark-red) 0 7px, transparent 8px);
}

.ornament::before,
.ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 18px);
  height: 1px;
  background: var(--dark-red);
}

.ornament::before { left: 0; }
.ornament::after { right: 0; }

.rules-subtitle {
  margin: 0 0 34px;
  color: var(--dark-red);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-family: var(--serif);
  font-size: 25px;
}

.rules-list {
  display: grid;
}

.rules-item {
  display: grid;
  grid-template-columns: 92px 90px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 96px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(87,73,68,0.16);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
  transition-delay: var(--delay, 0ms);
}

.rules-item.active {
  opacity: 1;
  transform: translateY(0);
}

.rules-number {
  color: var(--dark-red);
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
}

.rules-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--dark-red);
  background: #eadfce;
  font-size: 30px;
}

.rules-item p {
  margin: 0;
  color: #2f2521;
  line-height: 1.55;
  font-size: 17px;
}

.thank-you {
  margin: 36px 0 0;
  color: var(--dark-red);
  text-align: center;
  font-family: var(--script);
  font-size: 40px;
}

/* CONTACT */

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: stretch;
  padding: clamp(70px, 8vw, 120px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 82% 24%, rgba(200,169,106,0.16), transparent 28%),
    var(--wine);
  color: var(--ivory);
}

.contact-copy p {
  color: rgba(255,255,255,0.72);
  margin-top: 22px;
}

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

.contact-item {
  display: block;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 26px;
  background: rgba(255,255,255,0.07);
  transition: 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.12);
}

.contact-item span,
.contact-item > svg {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--dark-red);
  font-weight: 900;
  box-sizing: border-box;
}
.contact-item > svg {
  padding: 12px;
}

.contact-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}

.contact-item small {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,0.62);
}

.site-footer {
  padding: 26px clamp(18px, 5vw, 72px) 84px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* DETAIL PAGE - COMPACT */

.room-detail-page {
  padding: calc(112px + env(safe-area-inset-top)) clamp(18px, 5vw, 72px) 90px;
}

.detail-top {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.detail-cover,
.detail-info,
.gallery-panel,
.detail-note {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.detail-cover {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--pastel-grey);
  isolation: isolate;
  contain: paint;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  clip-path: inset(0 round var(--radius-xl));
}

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

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 48px);
  background:
    radial-gradient(circle at 90% 14%, rgba(200,169,106,0.18), transparent 28%),
    var(--wine);
  color: var(--ivory);
}

.detail-info h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(64px, 8vw, 118px);
  line-height: 0.82;
  letter-spacing: -0.07em;
}

.detail-desc {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255,255,255,0.76);
  line-height: 1.75;
}

.detail-info .tag {
  color: var(--ivory);
  background: rgba(255,255,255,0.12);
}

.detail-price-compact {
  margin-top: 22px;
}

.compact-price-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 8px;
}

.compact-price-line span {
  color: var(--dark-red);
  background: rgba(255,250,241,0.92);
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.compact-price-line small {
  font-family: var(--sans);
}

.address-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--ivory);
}

.address-box span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 900;
}

.address-box strong {
  line-height: 1.5;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin-top: 24px;
}

.gallery-panel,
.detail-note {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  background: var(--glass);
}

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

.gallery-heading h2 {
  font-size: clamp(46px, 5.8vw, 74px);
}

.gallery-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 22px;
  aspect-ratio: 4 / 3;
  background: var(--pastel-grey);
  cursor: zoom-in;
  isolation: isolate;
  contain: paint;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  clip-path: inset(0 round 22px);
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

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

.gallery-item:hover img {
  transform: scale(1.04);
}

.detail-note {
  position: sticky;
  top: 110px;
  align-self: start;
}

.detail-note h2 {
  font-size: clamp(38px, 4vw, 56px);
}

.detail-note p {
  color: var(--muted);
  line-height: 1.75;
}

.price-note {
  margin-top: 16px;
}

.floating-book {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 45;
  width: min(560px, calc(100vw - 28px));
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  background: rgba(21, 16, 15, 0.92);
  color: var(--ivory);
  transform: translateX(-50%);
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  backdrop-filter: blur(16px);
}

.floating-book span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 900;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,0.84);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  width: min(1120px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 24px;
}

.lightbox-close {
  position: fixed;
  top: calc(18px + env(safe-area-inset-top));
  right: 18px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--dark-red);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.empty-state,
.not-found {
  grid-column: 1 / -1;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass);
  text-align: center;
}

.empty-state h3,
.not-found h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 48px;
}

/* reveal */

.reveal-up,
.rules-item {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal-up.active,
.rules-item.active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* RESPONSIVE */

@media (max-width: 1180px) {
  .hero-cinematic,
  .about-section,
  .detail-top,
  .detail-body {
    grid-template-columns: 1fr;
  }

  .hero-stack {
    min-height: 560px;
  }

  .home-room-grid {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    min-height: 520px;
  }

  .detail-note {
    position: static;
  }

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

  .price-row {
    grid-template-columns: 1fr;
  }

  .price-values {
    width: 100%;
  }

  .price-row .btn {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  body {
    background:
      radial-gradient(circle at 8% 2%, rgba(122,0,0,0.10), transparent 24%),
      linear-gradient(135deg, var(--ivory-2), var(--ivory));
  }

  .site-header {
    top: max(8px, env(safe-area-inset-top));
    left: 8px;
    right: 8px;
    padding: 9px;
  }

  .top-nav a:not(.nav-cta) {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 11px;
  }

  .brand small {
    display: none;
  }

  .nav-cta {
    padding: 10px 12px !important;
    font-size: 12px !important;
  }

  .hero-cinematic {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: calc(104px + env(safe-area-inset-top)) 14px 42px;
  }

  .hero-copy h1 {
    font-size: clamp(70px, 21vw, 112px);
  }

  .hero-subtitle {
    margin-top: 22px;
    font-size: 14px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-stack {
    min-height: 490px;
  }

  .hero-photo {
    border-radius: 26px;
    clip-path: inset(0 round 26px);
  }

  .hero-photo-1 {
    width: 66%;
    height: 48%;
    left: 0;
  }

  .hero-photo-2 {
    width: 60%;
    height: 45%;
    right: 0;
    top: 28%;
  }

  .hero-photo-3 {
    width: 56%;
    height: 38%;
    left: 8%;
    bottom: 3%;
  }

  .hero-photo strong {
    font-size: 23px;
  }

  .scroll-cue {
    display: none;
  }

  .ticker-track span {
    padding: 14px 18px;
  }

  .editorial-intro,
  .price-intro,
  .reel-heading {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 18px;
  }

  .section h2,
  .reel-heading h2,
  .home-head h2,
  .rules-card h2,
  .contact-copy h2,
  .gallery-heading h2,
  .detail-note h2,
  .about-copy h2 {
    font-size: 46px;
  }

  .reel-section {
    padding-top: 54px;
  }

  .reel-heading {
    display: block;
    padding-inline: 18px;
  }

  .reel-controls {
    display: none;
  }

  .reel-window {
    padding: 24px 0 38px;
  }

  .reel-card {
    width: min(315px, 78vw);
    border-radius: 30px;
    clip-path: inset(0 round 30px);
  }

  .reel-card:nth-child(2n),
  .reel-card:nth-child(3n),
  .reel-card {
    transform: none;
  }

  .about-section {
    padding: 54px 18px;
  }

  .about-media {
    min-height: 410px;
    border-radius: 28px;
    clip-path: inset(0 round 28px);
  }

  .home-block {
    margin-inline: 14px;
    padding: 20px;
    border-radius: 28px;
  }

  .home-head {
    display: block;
  }

  .home-head .btn {
    margin-top: 16px;
  }

  .room-card {
    border-radius: 26px;
    clip-path: inset(0 round 26px);
  }

  .room-card-body {
    padding: 20px;
  }

  .room-card h3 {
    font-size: 34px;
  }

  .filter-bar {
    top: calc(66px + env(safe-area-inset-top));
    padding-inline: 14px;
  }

  .price-compare-wrap {
    padding-inline: 14px;
  }

  .price-row {
    padding: 12px;
    border-radius: 22px;
  }

  .price-values,
  .compact-price-line {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-room img {
    width: 68px;
    height: 56px;
  }

  .price-room strong {
    font-size: 22px;
  }

  .rules-section,
  .contact-section {
    padding: 54px 18px;
  }

  .rules-card {
    padding: 24px 18px;
    border-radius: 28px;
  }

  .rules-subtitle {
    font-size: 19px;
  }

  .rules-item {
    grid-template-columns: 52px 54px 1fr;
    gap: 10px;
    min-height: 84px;
  }

  .rules-number {
    font-size: 34px;
  }

  .rules-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .rules-item p {
    font-size: 14px;
  }

  .thank-you {
    font-size: 34px;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .room-detail-page {
    padding: calc(94px + env(safe-area-inset-top)) 14px 84px;
  }

  .detail-cover,
  .detail-info,
  .gallery-panel,
  .detail-note {
    border-radius: 28px;
  }

  .detail-cover {
    min-height: 390px;
    clip-path: inset(0 round 28px);
  }

  .detail-info {
    padding: 28px 20px;
  }

  .detail-info h1 {
    font-size: clamp(58px, 17vw, 88px);
  }

  .detail-desc {
    font-size: 14px;
  }

  .gallery-heading {
    display: block;
  }

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

  .gallery-item:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-item {
    border-radius: 22px;
    clip-path: inset(0 round 22px);
  }

  .floating-book {
    display: flex;
  }
}

@media (max-width: 420px) {
  .hero-actions,
  .card-actions,
  .detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .price-values strong {
    font-size: 24px;
  }

  .compact-price-line span {
    font-size: 25px;
  }

  .reel-content h3 {
    font-size: 36px;
  }
}


/* ===== V2.4 PATCH: compact homes layout + real logo + mobile polish ===== */

.brand-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.82);
  box-shadow: 0 14px 34px rgba(122, 0, 0, 0.18);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.hero-logo.image-logo {
  width: min(260px, 70vw);
  margin: 22px 0 26px;
  padding: 0;
  text-align: left;
}

.hero-logo.image-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.18));
}

.rules-brand.image-logo {
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.rules-brand.image-logo img {
  width: min(260px, 78vw);
  height: auto;
  object-fit: contain;
}

/* Home section: make layout overview compact and easier to see */
.home-block {
  padding: clamp(18px, 3vw, 32px);
}

.home-head {
  margin-bottom: 18px;
}

.home-head h2 {
  font-size: clamp(42px, 5.4vw, 76px);
}

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

.layout-tile {
  position: relative;
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 168px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 250, 241, 0.78);
  box-shadow: 0 12px 36px rgba(87, 73, 68, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  isolation: isolate;
  contain: paint;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  clip-path: inset(0 round 26px);
}

.layout-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(122, 0, 0, 0.22);
}

.layout-thumb {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  background: var(--pastel-grey);
}

.layout-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.layout-tile:hover .layout-thumb img {
  transform: scale(1.04);
  filter: saturate(1.04) contrast(1.04);
}

.layout-thumb span {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ivory);
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 9px;
  font-weight: 900;
}

.layout-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 16px;
}

.layout-info p {
  margin: 0 0 6px;
  color: var(--dark-red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 900;
}

.layout-info h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.layout-info small {
  display: -webkit-box;
  margin-top: 10px;
  color: var(--muted);
  overflow: hidden;
  line-height: 1.45;
  font-size: 12px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.layout-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.layout-meta span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--gray-brown);
  background: rgba(87, 73, 68, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 9px;
  font-weight: 900;
}

.layout-meta strong {
  color: var(--dark-red);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0;
}

/* Remove any old big room-card style inside home blocks if browser cached mixed markup */
.home-room-grid .room-card {
  min-height: auto;
}

/* Detail page: make first screen less huge and easier to scan */
.detail-top {
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
}

.detail-cover {
  min-height: min(500px, 62vh);
}

.detail-info {
  min-height: min(500px, 62vh);
  justify-content: center;
}

.detail-info h1 {
  font-size: clamp(56px, 6.8vw, 96px);
}

.detail-desc {
  margin-top: 18px;
}

.detail-actions {
  margin-top: 20px;
}

.detail-body {
  grid-template-columns: minmax(0, 1fr) 320px;
}

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

.gallery-item {
  border-radius: 18px;
  clip-path: inset(0 round 18px);
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-heading h2 {
  font-size: clamp(42px, 5vw, 66px);
}

.detail-note h2 {
  font-size: clamp(34px, 3.5vw, 50px);
}

/* Stronger fix for pointed corners on hover/tap in Chromium/Safari */
.hero-photo,
.reel-card,
.room-card,
.layout-tile,
.gallery-item,
.detail-cover,
.about-media,
.image-wrap {
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.hero-photo *,
.reel-card *,
.room-card *,
.layout-tile *,
.gallery-item *,
.detail-cover * {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@media (max-width: 1320px) {
  .home-room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .detail-body {
    grid-template-columns: 1fr;
  }

  .detail-note {
    position: static;
  }

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

@media (max-width: 760px) {
  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-logo img {
    padding: 4px;
  }

  .hero-logo.image-logo {
    width: min(210px, 68vw);
    margin: 18px 0 22px;
  }

  .home-block {
    padding: 16px;
  }

  .home-head h2 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .home-room-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .layout-tile {
    grid-template-columns: 38% 1fr;
    min-height: 132px;
    border-radius: 22px;
    clip-path: inset(0 round 22px);
  }

  .layout-thumb {
    min-height: 132px;
  }

  .layout-info {
    padding: 13px;
  }

  .layout-info h3 {
    font-size: 27px;
  }

  .layout-info small {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }

  .layout-meta {
    margin-top: 10px;
  }

  .layout-meta span:nth-child(2) {
    display: none;
  }

  .detail-top {
    gap: 14px;
  }

  .detail-cover {
    min-height: 330px;
  }

  .detail-info {
    min-height: auto;
  }

  .detail-info h1 {
    font-size: clamp(50px, 15vw, 76px);
  }

  .compact-price-line {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .compact-price-line span {
    padding: 9px 7px;
    font-size: 21px;
  }

  .compact-price-line small {
    font-size: 8px;
  }

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

  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item {
    border-radius: 16px;
    clip-path: inset(0 round 16px);
  }

  .detail-note {
    display: none;
  }
}

@media (max-width: 420px) {
  .layout-tile {
    grid-template-columns: 1fr;
  }

  .layout-thumb {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

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


/* ===== V2.5 PATCH: public polished copy + livelier hero stage ===== */

/* More polished hero image stage */
.hero-stack {
  perspective: 1200px;
}

.hero-orbit {
  position: absolute;
  inset: 8% 7% 5% 2%;
  border: 1px solid rgba(248, 240, 227, 0.14);
  border-radius: 42px;
  background:
    radial-gradient(circle at 18% 16%, rgba(200, 169, 106, 0.15), transparent 22%),
    radial-gradient(circle at 82% 68%, rgba(255, 250, 241, 0.10), transparent 24%);
  transform: rotate(-4deg);
  pointer-events: none;
  filter: blur(0.2px);
}

.hero-ambient {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.55;
  animation: ambientFloat 8s ease-in-out infinite alternate;
}

.ambient-one {
  width: 170px;
  height: 170px;
  left: 2%;
  top: 12%;
  background: rgba(200, 169, 106, 0.22);
}

.ambient-two {
  width: 220px;
  height: 220px;
  right: 4%;
  bottom: 10%;
  background: rgba(122, 0, 0, 0.38);
  animation-delay: -2s;
}

@keyframes ambientFloat {
  to {
    transform: translate3d(18px, -18px, 0) scale(1.08);
  }
}

.hero-photo {
  will-change: transform;
  transform-style: preserve-3d;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.16), transparent 34%, transparent 66%, rgba(255,255,255,0.10)),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.12), transparent 40%);
  mix-blend-mode: screen;
  opacity: 0.45;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: auto 18px -18px 18px;
  z-index: -1;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.34);
  filter: blur(16px);
}

.hero-photo-sheen {
  position: absolute;
  inset: -30% -70%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.22) 48%, transparent 62%);
  transform: translateX(-36%) rotate(8deg);
  animation: sheenMove 6.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 1.25s);
  opacity: 0.45;
}

@keyframes sheenMove {
  0%, 42% {
    transform: translateX(-38%) rotate(8deg);
    opacity: 0;
  }
  54% {
    opacity: 0.5;
  }
  76%, 100% {
    transform: translateX(38%) rotate(8deg);
    opacity: 0;
  }
}

.hero-photo-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(54, 38, 31, 0.82), rgba(34, 28, 27, 0.74));
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}

.hero-photo div:not(.hero-photo-caption):not(.hero-photo-sheen) {
  display: none;
}

.hero-photo-caption span {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
}

.hero-photo-caption strong {
  display: block;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.hero-photo-caption small {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,0.68);
  font-size: 11px;
  font-weight: 800;
}

.hero-photo-1 {
  top: 2%;
  left: 3%;
  width: 62%;
  height: 54%;
  animation-name: heroFloatA;
}

.hero-photo-2 {
  right: 0;
  top: 23%;
  width: 54%;
  height: 48%;
  animation-name: heroFloatB;
}

.hero-photo-3 {
  left: 11%;
  bottom: 1%;
  width: 52%;
  height: 42%;
  animation-name: heroFloatC;
}

@keyframes heroFloatA {
  from { transform: rotate(-5deg) translate3d(0, 0, 0); }
  to { transform: rotate(-3.5deg) translate3d(0, -18px, 28px); }
}

@keyframes heroFloatB {
  from { transform: rotate(5deg) translate3d(0, 0, 0); }
  to { transform: rotate(3.5deg) translate3d(10px, -12px, 40px); }
}

@keyframes heroFloatC {
  from { transform: rotate(2deg) translate3d(0, 0, 0); }
  to { transform: rotate(0.7deg) translate3d(-8px, -14px, 20px); }
}

.hero-photo:hover {
  z-index: 6;
}

.hero-mood-note {
  position: absolute;
  right: 6%;
  bottom: 0;
  z-index: 7;
  width: min(260px, 48vw);
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 26px;
  color: var(--ivory);
  background: rgba(247, 241, 232, 0.10);
  box-shadow: 0 20px 54px rgba(0,0,0,0.22);
  backdrop-filter: blur(16px);
  animation: noteFloat 7s ease-in-out infinite alternate;
}

.hero-mood-note span {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  font-weight: 900;
}

.hero-mood-note strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
}

@keyframes noteFloat {
  to { transform: translateY(-12px); }
}

/* Public-facing section polish */
#homes .section-kicker::after {
  content: "";
}

#priceList .section-kicker::after {
  content: "";
}

/* Reduce any internal/business wording appearance by styling sections as finished editorial copy */
.editorial-intro .section-desc,
.price-intro .section-desc {
  max-width: 520px;
}

/* Better mobile hero stack: still lively but less cluttered */
@media (max-width: 760px) {
  .hero-orbit {
    inset: 7% 1% 3% 0;
    border-radius: 30px;
  }

  .hero-photo-sheen {
    display: none;
  }

  .hero-photo-1 {
    width: 70%;
    height: 46%;
    left: 0;
    top: 2%;
  }

  .hero-photo-2 {
    width: 62%;
    height: 42%;
    top: 30%;
    right: 0;
  }

  .hero-photo-3 {
    width: 58%;
    height: 36%;
    left: 7%;
    bottom: 2%;
  }

  .hero-mood-note {
    right: 2%;
    bottom: 5%;
    width: min(210px, 52vw);
    padding: 14px 15px;
    border-radius: 22px;
  }

  .hero-mood-note strong {
    font-size: 20px;
  }

  .hero-photo-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 11px 12px;
  }

  .hero-photo-caption strong {
    font-size: 22px;
  }

  .hero-photo-caption small {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero-mood-note {
    display: none;
  }

  .hero-stack {
    min-height: 450px;
  }
}


/* ===== V2.6 PATCH: hero headline simplified + stronger photo shine + reel buttons fixed/mobile ===== */

/* Cleaner hero wording: less giant text, more premium breathing room */
.hero-copy {
  max-width: 700px;
}

.hero-title {
  max-width: 720px;
}

.hero-copy h1.hero-title {
  font-size: clamp(58px, 8.2vw, 118px);
  line-height: 0.86;
}

.hero-copy h1.hero-title span {
  display: block;
}

.hero-copy h1.hero-title em {
  display: block;
  margin-top: -0.08em;
  font-size: 0.78em;
  line-height: 0.92;
  transform: translateX(0.02em);
}

.hero-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-values span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: var(--ivory);
  background: rgba(255,255,255,0.09);
  backdrop-filter: blur(14px);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.hero-subtitle {
  max-width: 570px;
  margin-top: 22px;
}

/* Make the three hero room frames feel more alive with visible light sweep */
.hero-photo {
  --shine-speed: 4.8s;
}

.hero-photo::before {
  opacity: 0.55;
}

.hero-photo-sheen {
  display: block;
  position: absolute;
  inset: -42% -95%;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(
      112deg,
      transparent 34%,
      rgba(255, 255, 255, 0.08) 43%,
      rgba(255, 246, 220, 0.52) 50%,
      rgba(255, 255, 255, 0.10) 57%,
      transparent 66%
    );
  mix-blend-mode: screen;
  transform: translateX(-48%) rotate(8deg);
  animation: strongSheen var(--shine-speed) cubic-bezier(0.16, 1, 0.3, 1) infinite;
  animation-delay: calc(var(--i) * 0.95s);
}

@keyframes strongSheen {
  0%, 18% {
    opacity: 0;
    transform: translateX(-52%) rotate(8deg);
  }
  32% {
    opacity: 0.85;
  }
  52%, 100% {
    opacity: 0;
    transform: translateX(52%) rotate(8deg);
  }
}

.hero-photo:hover .hero-photo-sheen {
  animation-duration: 2.2s;
}

/* More useful reel controls */
.reel-heading {
  position: relative;
}

.reel-controls {
  position: sticky;
  right: clamp(18px, 5vw, 72px);
  z-index: 5;
}

.circle-btn {
  position: relative;
  overflow: hidden;
  color: var(--ivory);
  border-color: rgba(200,169,106,0.50);
  background: rgba(255,255,255,0.12);
}

.circle-btn::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.24), transparent);
  transform: translateX(-70%) rotate(12deg);
  transition: transform 0.5s ease;
}

.circle-btn:hover::after {
  transform: translateX(70%) rotate(12deg);
}

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

/* Hide controls on touch screens where drag is more natural, but keep them if desktop width */
@media (hover: none) and (pointer: coarse) {
  .reel-controls {
    display: none;
  }
}

/* Mobile hero tuning: reduce clutter */
@media (max-width: 760px) {
  .hero-copy h1.hero-title {
    font-size: clamp(56px, 16vw, 84px);
  }

  .hero-copy h1.hero-title em {
    font-size: 0.76em;
  }

  .hero-values {
    gap: 8px;
    margin-top: 18px;
  }

  .hero-values span {
    min-height: 36px;
    padding: 0 12px;
    font-size: 10px;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-top: 18px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-photo-sheen {
    display: block;
    opacity: 0.55;
    animation-duration: 5.6s;
  }
}

@media (max-width: 420px) {
  .hero-copy h1.hero-title {
    font-size: clamp(52px, 15vw, 72px);
  }

  .hero-values span {
    flex: 1 1 auto;
    justify-content: center;
  }
}


/* ===== V2.6.1 PATCH: remove flashing/sheen effect on 3 hero frames ===== */

.hero-photo-sheen {
  display: none !important;
  opacity: 0 !important;
  animation: none !important;
}

.hero-photo::before {
  display: none !important;
}

.hero-photo:hover .hero-photo-sheen {
  display: none !important;
  animation: none !important;
}

@media (max-width: 760px) {
  .hero-photo-sheen {
    display: none !important;
    opacity: 0 !important;
    animation: none !important;
  }
}


/* ===== V2.6.2 PATCH: mobile room detail must be single-column, no horizontal overflow ===== */

/* Global overflow guard */
html,
body {
  max-width: 100%;
  overflow-x: hidden !important;
}

/* Header safety on small screens */
@media (max-width: 900px) {
  .site-header {
    width: auto !important;
    max-width: calc(100vw - 16px) !important;
    left: 8px !important;
    right: 8px !important;
    gap: 8px !important;
    overflow: hidden !important;
  }

  .brand {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .brand-copy {
    min-width: 0 !important;
  }

  .brand strong {
    max-width: 185px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .top-nav {
    flex: 0 0 auto !important;
  }

  .top-nav a:not(.nav-cta) {
    display: none !important;
  }

  .nav-cta {
    max-width: 88px !important;
    min-height: 40px !important;
    padding: 0 12px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 12px !important;
  }
}

/* Force room detail into a clean mobile bio layout */
@media (max-width: 900px) {
  body[data-page="room"] .room-detail-page {
    width: 100% !important;
    max-width: 100vw !important;
    padding: calc(92px + env(safe-area-inset-top)) 14px calc(92px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
  }

  body[data-page="room"] .detail-top {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: stretch !important;
  }

  body[data-page="room"] .detail-cover,
  body[data-page="room"] .detail-info {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body[data-page="room"] .detail-cover {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
    border-radius: 28px !important;
    clip-path: inset(0 round 28px) !important;
  }

  body[data-page="room"] .detail-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body[data-page="room"] .detail-info {
    min-height: 0 !important;
    padding: 24px 18px !important;
    border-radius: 28px !important;
  }

  body[data-page="room"] .detail-info .eyebrow {
    margin-bottom: 12px !important;
    font-size: 10px !important;
    line-height: 1.45 !important;
    letter-spacing: 0.16em !important;
  }

  body[data-page="room"] .detail-info h1 {
    max-width: 100% !important;
    margin: 0 !important;
    font-size: clamp(44px, 13vw, 68px) !important;
    line-height: 0.9 !important;
    letter-spacing: -0.055em !important;
    overflow-wrap: normal !important;
  }

  body[data-page="room"] .detail-desc {
    max-width: 100% !important;
    margin-top: 16px !important;
    color: rgba(255,255,255,0.78) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  body[data-page="room"] .tag-list {
    gap: 7px !important;
    margin-top: 14px !important;
  }

  body[data-page="room"] .tag {
    padding: 7px 9px !important;
    font-size: 11px !important;
  }

  body[data-page="room"] .detail-price-compact {
    margin-top: 16px !important;
  }

  body[data-page="room"] .compact-price-line {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body[data-page="room"] .compact-price-line span {
    min-width: 0 !important;
    padding: 11px 10px !important;
    border-radius: 16px !important;
    font-size: 25px !important;
    text-align: left !important;
  }

  body[data-page="room"] .compact-price-line small {
    font-size: 9px !important;
    letter-spacing: 0.08em !important;
  }

  body[data-page="room"] .address-box {
    margin-top: 14px !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  body[data-page="room"] .detail-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 16px !important;
  }

  body[data-page="room"] .detail-actions .btn {
    width: 100% !important;
  }

  body[data-page="room"] .detail-body {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 14px !important;
  }

  body[data-page="room"] .gallery-panel {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px !important;
    border-radius: 28px !important;
  }

  body[data-page="room"] .gallery-heading {
    display: flex !important;
    align-items: end !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
  }

  body[data-page="room"] .gallery-heading h2 {
    font-size: clamp(38px, 11vw, 54px) !important;
    line-height: 0.9 !important;
  }

  body[data-page="room"] .gallery-heading span {
    flex: 0 0 auto !important;
    font-size: 10px !important;
  }

  body[data-page="room"] .gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body[data-page="room"] .gallery-item {
    width: 100% !important;
    border-radius: 16px !important;
    clip-path: inset(0 round 16px) !important;
    aspect-ratio: 1 / 1 !important;
  }

  body[data-page="room"] .gallery-item:first-child {
    grid-column: span 2 !important;
    grid-row: auto !important;
    aspect-ratio: 16 / 10 !important;
  }

  body[data-page="room"] .detail-note {
    display: none !important;
  }

  body[data-page="room"] .floating-book {
    display: flex !important;
    width: min(560px, calc(100vw - 24px)) !important;
  }
}

/* Extra small phones */
@media (max-width: 390px) {
  body[data-page="room"] .room-detail-page {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .brand strong {
    max-width: 145px !important;
  }

  .nav-cta {
    max-width: 70px !important;
    padding: 0 10px !important;
  }

  body[data-page="room"] .detail-cover {
    aspect-ratio: 4 / 5.4 !important;
  }

  body[data-page="room"] .detail-info {
    padding: 22px 16px !important;
  }

  body[data-page="room"] .detail-info h1 {
    font-size: clamp(40px, 12vw, 58px) !important;
  }

  body[data-page="room"] .compact-price-line span {
    font-size: 23px !important;
  }
}


/* ===== V2.6.3 PATCH: mobile hero clean luxury, remove messy stacked frames on phone ===== */

@media (max-width: 760px) {
  body[data-page="home"] .hero-cinematic {
    display: block !important;
    min-height: auto !important;
    padding: calc(102px + env(safe-area-inset-top)) 16px 38px !important;
    background:
      linear-gradient(180deg, rgba(21, 16, 15, 0.92), rgba(82, 0, 8, 0.90)),
      url("../img/C8-THE-ART/0.jpg") center/cover !important;
  }

  body[data-page="home"] .hero-noise {
    background:
      radial-gradient(circle at 72% 18%, rgba(255,255,255,0.12), transparent 24%),
      linear-gradient(to bottom, rgba(0,0,0,0.10), rgba(0,0,0,0.54)) !important;
  }

  body[data-page="home"] .hero-outline,
  body[data-page="home"] .hero-stack,
  body[data-page="home"] .hero-orbit,
  body[data-page="home"] .hero-ambient,
  body[data-page="home"] .hero-mood-note,
  body[data-page="home"] .scroll-cue {
    display: none !important;
  }

  body[data-page="home"] .hero-copy {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  body[data-page="home"] .eyebrow {
    max-width: 320px !important;
    margin-bottom: 14px !important;
    font-size: 10px !important;
    line-height: 1.55 !important;
    letter-spacing: 0.18em !important;
  }

  body[data-page="home"] .hero-logo.image-logo {
    width: 132px !important;
    margin: 18px 0 22px !important;
    opacity: 0.96 !important;
  }

  body[data-page="home"] .hero-copy h1.hero-title {
    max-width: 330px !important;
    font-size: clamp(48px, 14vw, 68px) !important;
    line-height: 0.9 !important;
    letter-spacing: -0.055em !important;
  }

  body[data-page="home"] .hero-copy h1.hero-title em {
    margin-top: -0.04em !important;
    font-size: 0.76em !important;
    line-height: 1 !important;
  }

  body[data-page="home"] .hero-values {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 20px !important;
    max-width: 100% !important;
  }

  body[data-page="home"] .hero-values span {
    min-height: 38px !important;
    padding: 0 8px !important;
    justify-content: center !important;
    border-color: rgba(255,255,255,0.20) !important;
    background: rgba(255,255,255,0.10) !important;
    font-size: 9px !important;
    letter-spacing: 0.10em !important;
    white-space: nowrap !important;
  }

  body[data-page="home"] .hero-subtitle {
    max-width: 100% !important;
    margin-top: 18px !important;
    color: rgba(255,255,255,0.78) !important;
    font-size: 14px !important;
    line-height: 1.75 !important;
  }

  body[data-page="home"] .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 24px !important;
  }

  body[data-page="home"] .hero-actions .btn {
    width: 100% !important;
    min-height: 54px !important;
  }

  body[data-page="home"] .hero-actions .btn.ghost {
    background: rgba(255,255,255,0.12) !important;
  }

  /* Add a clean single featured card instead of 3 stacked frames */
  body[data-page="home"] .hero-copy::after {
    content: "Bộ sưu tập phòng được trình bày ngay bên dưới";
    display: block;
    margin-top: 18px;
    padding: 13px 14px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    color: rgba(255,255,255,0.72);
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
  }

  /* Pull Room Reel closer after hero so user sees rooms immediately */
  body[data-page="home"] .ticker-section {
    display: none !important;
  }

  body[data-page="home"] .reel-section {
    padding-top: 42px !important;
  }

  body[data-page="home"] .reel-heading {
    padding-inline: 16px !important;
    padding-bottom: 10px !important;
  }

  body[data-page="home"] .reel-heading h2 {
    max-width: 100% !important;
    font-size: clamp(40px, 12vw, 56px) !important;
    line-height: 0.92 !important;
  }

  body[data-page="home"] .reel-window {
    padding-top: 18px !important;
  }
}

/* Extra compact for very small Android/iPhone widths */
@media (max-width: 390px) {
  body[data-page="home"] .hero-cinematic {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body[data-page="home"] .hero-logo.image-logo {
    width: 118px !important;
  }

  body[data-page="home"] .hero-copy h1.hero-title {
    font-size: clamp(44px, 13.5vw, 60px) !important;
  }

  body[data-page="home"] .hero-values span {
    font-size: 8.5px !important;
    padding: 0 6px !important;
  }
}


/* ===== V2.6.4 PATCH: phone room detail + intelligent Room Reel gestures ===== */

/* Reel: vertical swipe should scroll page; horizontal swipe is handled by JS */
.reel-window {
  touch-action: pan-y !important;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.reel-card {
  touch-action: pan-y !important;
}

/* Bulletproof detail page stacking on phones and tablets */
@media (max-width: 1024px), (pointer: coarse) and (max-width: 1180px) {
  body[data-page="room"] {
    overflow-x: hidden !important;
  }

  body[data-page="room"] .room-detail-page {
    display: block !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: calc(96px + env(safe-area-inset-top)) 14px calc(92px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
  }

  body[data-page="room"] .detail-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body[data-page="room"] .detail-cover,
  body[data-page="room"] .detail-info,
  body[data-page="room"] .detail-body,
  body[data-page="room"] .gallery-panel,
  body[data-page="room"] .detail-note {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body[data-page="room"] .detail-cover {
    order: 1 !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 5 !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    clip-path: inset(0 round 28px) !important;
  }

  body[data-page="room"] .detail-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body[data-page="room"] .detail-info {
    order: 2 !important;
    display: block !important;
    min-height: 0 !important;
    padding: 24px 18px !important;
    border-radius: 28px !important;
  }

  body[data-page="room"] .detail-info .eyebrow {
    margin-bottom: 11px !important;
    font-size: 10px !important;
    line-height: 1.45 !important;
    letter-spacing: 0.14em !important;
  }

  body[data-page="room"] .detail-info h1 {
    max-width: 100% !important;
    margin: 0 !important;
    font-size: clamp(42px, 12.5vw, 66px) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.055em !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  body[data-page="room"] .detail-desc {
    max-width: 100% !important;
    margin-top: 15px !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  body[data-page="room"] .tag-list {
    margin-top: 14px !important;
    gap: 7px !important;
  }

  body[data-page="room"] .tag {
    padding: 7px 9px !important;
    font-size: 11px !important;
  }

  body[data-page="room"] .detail-price-compact {
    margin-top: 16px !important;
  }

  body[data-page="room"] .compact-price-line {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  body[data-page="room"] .compact-price-line span {
    min-width: 0 !important;
    padding: 11px 10px !important;
    border-radius: 16px !important;
    font-size: 25px !important;
  }

  body[data-page="room"] .compact-price-line small {
    font-size: 9px !important;
    letter-spacing: 0.08em !important;
  }

  body[data-page="room"] .address-box {
    margin-top: 14px !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  body[data-page="room"] .detail-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 16px !important;
  }

  body[data-page="room"] .detail-actions .btn {
    width: 100% !important;
  }

  body[data-page="room"] .detail-body {
    display: block !important;
    margin-top: 14px !important;
  }

  body[data-page="room"] .gallery-panel {
    padding: 18px !important;
    border-radius: 28px !important;
  }

  body[data-page="room"] .gallery-heading {
    display: flex !important;
    align-items: end !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
  }

  body[data-page="room"] .gallery-heading h2 {
    font-size: clamp(38px, 11vw, 54px) !important;
    line-height: 0.9 !important;
  }

  body[data-page="room"] .gallery-heading span {
    flex: 0 0 auto !important;
    font-size: 10px !important;
  }

  body[data-page="room"] .gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body[data-page="room"] .gallery-item {
    width: 100% !important;
    border-radius: 16px !important;
    clip-path: inset(0 round 16px) !important;
    aspect-ratio: 1 / 1 !important;
  }

  body[data-page="room"] .gallery-item:first-child {
    grid-column: span 2 !important;
    grid-row: auto !important;
    aspect-ratio: 16 / 10 !important;
  }

  body[data-page="room"] .detail-note {
    display: none !important;
  }
}

/* On mobile browser viewport, ensure header never creates horizontal scroll */
@media (max-width: 760px) {
  .site-header {
    max-width: calc(100vw - 16px) !important;
    overflow: hidden !important;
  }

  .brand {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .brand-copy,
  .brand-copy strong {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .brand-copy strong {
    max-width: 190px !important;
  }

  .nav-cta {
    flex: 0 0 auto !important;
    max-width: 96px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body[data-page="room"] .floating-book {
    display: flex !important;
    width: min(560px, calc(100vw - 24px)) !important;
  }
}

@media (max-width: 390px) {
  body[data-page="room"] .room-detail-page {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body[data-page="room"] .detail-cover {
    aspect-ratio: 4 / 5.35 !important;
  }

  body[data-page="room"] .detail-info {
    padding: 22px 16px !important;
  }

  body[data-page="room"] .detail-info h1 {
    font-size: clamp(40px, 12vw, 58px) !important;
  }

  .brand-copy strong {
    max-width: 150px !important;
  }
}


/* ===== V2.6.5 PATCH: Reel autoplay + vertical gesture + centered header CTA ===== */

.reel-window {
  touch-action: pan-y !important;
  overscroll-behavior-x: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

.reel-track { will-change: transform; }
.reel-card { touch-action: pan-y !important; }

.site-header { align-items: center !important; }
.top-nav { align-items: center !important; align-self: center !important; }

.nav-cta,
.top-nav .nav-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  height: 48px !important;
  min-height: 48px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 760px) {
  .site-header {
    min-height: 64px !important;
    padding: 8px 10px !important;
  }

  .brand { align-items: center !important; }

  .brand-logo {
    width: 48px !important;
    height: 48px !important;
  }

  .brand-copy {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  .top-nav {
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
  }

  .nav-cta,
  .top-nav .nav-cta {
    height: 46px !important;
    min-height: 46px !important;
    max-width: 108px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-align: center !important;
    transform: translateY(0) !important;
  }

  body[data-page="home"] .reel-window { touch-action: pan-y !important; }
  body[data-page="home"] .reel-card { width: min(330px, 78vw) !important; }
  body[data-page="home"] .reel-track { gap: 18px !important; }
}

@media (max-width: 390px) {
  .brand-copy strong { max-width: 156px !important; }
  .nav-cta,
  .top-nav .nav-cta {
    max-width: 92px !important;
    padding: 0 12px !important;
  }
}
