:root {
  --ink: #18241f;
  --muted: #6e7b74;
  --forest: #183027;
  --sage: #809188;
  --cream: #f5f3ed;
  --paper: #fbfaf7;
  --white: #fff;
  --sand: #c8b399;
  --line: #dfdfda;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }

.detail-header {
  align-items: center;
  background: rgba(251,250,247,.96);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 44px;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { align-items: center; display: flex; font-size: 15px; font-weight: 600; gap: 7px; letter-spacing: -.04em; width: fit-content; }
.brand-mark { align-items: center; background: var(--forest); border-radius: 50%; color: var(--cream); display: flex; height: 23px; justify-content: center; width: 23px; }
.brand-mark svg { height: 14px; stroke-width: 1.3; width: 14px; }
.back-link { align-items: center; color: #59665f; display: flex; font-size: 10px; gap: 5px; }
.back-link svg { height: 13px; width: 13px; }
.header-actions { align-items: center; display: flex; gap: 13px; justify-content: flex-end; }
.header-actions button { background: transparent; border: 0; padding: 0; }
.header-actions button svg { height: 14px; width: 14px; }
.profile { align-items: center; background: #ddcdb9; border-radius: 50%; display: flex; font-size: 8px; font-weight: 600; height: 25px; justify-content: center; width: 25px; }

.detail-page { margin: 0 auto; max-width: 1380px; padding: 38px 30px 90px; }
.title-row { align-items: flex-end; display: flex; justify-content: space-between; }
.match-line { align-items: center; color: #68766f; display: flex; font-size: 13px; gap: 7px; }
.match-line > svg { color: #a17e55; height: 15px; width: 15px; }
.match-line strong { color: #4c5b53; font-weight: 600; }
.title-row h1 { font-family: var(--serif); font-size: clamp(48px, 5vw, 68px); font-weight: 400; letter-spacing: -.035em; line-height: .95; margin: 12px 0 10px; }
.title-row p { align-items: center; color: #5f6e66; display: flex; font-size: 14px; gap: 11px; margin: 0; }
.title-row p i { background: #aeb6b1; border-radius: 50%; height: 3px; width: 3px; }
.title-actions { align-items: center; display: flex; gap: 20px; padding-bottom: 3px; }
.title-actions > span { font-size: 13px; }
.rating-line { align-items: center; display: inline-flex; gap: 4px; }
.rating-line svg { fill: currentColor; height: 11px; width: 11px; }
.title-actions button { align-items: center; background: transparent; border: 0; color: #536159; display: flex; font-size: 12px; gap: 7px; }
.title-actions svg { height: 16px; width: 16px; }

.gallery { display: grid; gap: 7px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 190px); margin-top: 26px; overflow: hidden; }
.gallery button { background: #ced4cf; border: 0; overflow: hidden; padding: 0; position: relative; }
.gallery-main { grid-row: 1 / 3; }
.gallery img { height: 100%; object-fit: cover; transition: transform 500ms ease; width: 100%; }
.gallery button:hover img { transform: scale(1.025); }
.gallery-main > span { backdrop-filter: blur(8px); background: rgba(255,255,255,.9); bottom: 14px; font-size: 9px; padding: 8px 11px; position: absolute; right: 14px; }

.virtual-tour-section {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin-top: 38px;
  padding: 30px 0 34px;
}
.virtual-tour-heading { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 18px; }
.virtual-tour-heading .section-kicker { font-size: 11px; }
.virtual-tour-heading h2 { font-family: var(--serif); font-size: 38px; font-weight: 400; line-height: 1.05; margin: 8px 0 10px; }
.virtual-tour-heading p { color: #5f6f66; font-size: 13px; line-height: 1.65; margin: 0; }
.virtual-tour-hint { align-items: center; color: #58685f; display: flex; font-size: 11px; gap: 7px; padding-bottom: 4px; }
.virtual-tour-hint svg { height: 16px; width: 16px; }
.virtual-tour-frame { background: #17271f; height: min(520px, 55vw); min-height: 390px; overflow: hidden; position: relative; }
.virtual-tour-frame iframe { background: #17271f; border: 0; display: block; height: 100%; opacity: 0; transition: opacity 280ms ease; width: 100%; }
.virtual-tour-placeholder { inset: 0; position: absolute; transition: opacity 240ms ease, visibility 0s linear 240ms; z-index: 2; }
.virtual-tour-placeholder > img { height: 100%; object-fit: cover; width: 100%; }
.virtual-tour-placeholder-shade { background: linear-gradient(180deg, rgba(13,27,22,.15), rgba(13,27,22,.62)); inset: 0; position: absolute; }
.load-3d-button { align-items: center; animation: virtual-tour-breathe 2.6s ease-in-out infinite; background: rgba(248,247,242,.96); border: 0; box-shadow: 0 12px 35px rgba(10,24,18,.22); color: var(--ink); display: grid; gap: 12px; grid-template-columns: 42px minmax(0,1fr) 18px; left: 50%; max-width: 390px; padding: 13px 15px; position: absolute; text-align: left; top: 50%; transform: translate(-50%, -50%); transform-origin: center; width: calc(100% - 48px); }
.load-3d-button:hover { animation-play-state: paused; background: white; }
.load-3d-button:disabled { cursor: wait; }
.load-3d-icon { align-items: center; background: var(--forest); border-radius: 50%; color: white; display: flex; height: 42px; justify-content: center; width: 42px; }
.load-3d-icon svg { height: 17px; width: 17px; }
.load-3d-button > span:nth-child(2) { display: grid; gap: 3px; }
.load-3d-button strong { font-size: 11px; }
.load-3d-button small { color: #78847d; font-size: 8px; line-height: 1.45; }
.load-3d-button > svg { color: #718078; height: 15px; width: 15px; }
.virtual-tour-frame.is-loading .load-3d-button { animation: none; transform: translate(-50%, -50%); }
.virtual-tour-frame.is-loading .load-3d-icon { animation: virtual-tour-loading 1s infinite ease-in-out; }
.virtual-tour-frame.is-ready iframe { opacity: 1; }
.virtual-tour-frame.is-ready .virtual-tour-placeholder { opacity: 0; pointer-events: none; visibility: hidden; }
.virtual-tour-badge { align-items: center; backdrop-filter: blur(8px); background: rgba(247,245,239,.9); bottom: 14px; color: #314139; display: flex; font-size: 8px; gap: 6px; left: 14px; opacity: 0; padding: 8px 10px; pointer-events: none; position: absolute; text-transform: uppercase; transition: opacity 180ms ease 220ms; }
.virtual-tour-frame.is-ready .virtual-tour-badge { opacity: 1; }
.virtual-tour-badge svg { height: 12px; width: 12px; }
@keyframes virtual-tour-loading {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(.9); }
}
@keyframes virtual-tour-breathe {
  0%, 100% { box-shadow: 0 12px 35px rgba(10,24,18,.22), 0 0 0 0 rgba(248,247,242,.24); transform: translate(-50%, -50%) scale(1); }
  50% { box-shadow: 0 18px 48px rgba(10,24,18,.3), 0 0 0 9px rgba(248,247,242,.09); transform: translate(-50%, -50%) scale(1.025); }
}

.detail-layout { align-items: start; display: grid; gap: 70px; grid-template-columns: minmax(0, 1fr) 360px; margin-top: 42px; }
.host-summary { align-items: center; border-bottom: 1px solid var(--line); display: flex; padding-bottom: 28px; }
.host-avatar { align-items: center; background: var(--forest); border-radius: 50%; color: white; display: flex; font-family: var(--serif); font-size: 22px; height: 48px; justify-content: center; margin-right: 14px; width: 48px; }
.host-summary > div:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.host-summary strong { font-size: 14px; }
.host-summary span { color: #69776f; font-size: 11px; }
.host-summary .verified { align-items: center; display: flex; gap: 5px; margin-left: auto; }
.verified-icon { align-items: center; background: #e7ede8; border-radius: 50%; color: #47725c; display: flex; height: 24px; justify-content: center; width: 24px; }
.verified-icon svg { height: 14px; width: 14px; }

.detail-section { border-bottom: 1px solid var(--line); padding: 42px 0; }
.section-kicker { color: #7d8b83; display: block; font-size: 9px; font-weight: 600; letter-spacing: .14em; margin-bottom: 15px; text-transform: uppercase; }
.detail-section h2 { font-family: var(--serif); font-size: 32px; font-weight: 400; letter-spacing: -.02em; margin: 0 0 18px; }
.intro-section h2 { font-size: clamp(36px, 4vw, 52px); line-height: 1; max-width: 720px; }
.detail-section > p { color: #64716a; font-size: 12px; line-height: 1.8; margin: 0; max-width: 760px; }
.intro-section .section-kicker { font-size: 11px; }
.intro-section > p { color: #53635a; font-size: 15px; line-height: 1.85; max-width: 900px; }

.feature-strip { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); padding: 28px 0; }
.feature-strip article { align-items: center; border-right: 1px solid var(--line); display: flex; gap: 11px; padding: 0 19px; }
.feature-strip article:first-child { padding-left: 0; }
.feature-strip article:last-child { border-right: 0; }
.feature-strip article > span { color: #8e704e; font-family: var(--serif); font-size: 25px; }
.feature-strip article > span svg { height: 23px; width: 23px; }
.feature-strip article div { display: flex; flex-direction: column; gap: 4px; }
.feature-strip strong { font-size: 13px; }
.feature-strip small { color: #6f7d75; font-size: 11px; line-height: 1.45; }

.section-heading { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 22px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { color: #68766f; font-size: 12px; line-height: 1.6; margin: 0; max-width: 310px; text-align: right; }
.room-section .section-kicker { font-size: 11px; }
.room-list { display: flex; flex-direction: column; gap: 10px; }
.room-option input { opacity: 0; pointer-events: none; position: absolute; }
.room-card { align-items: center; background: white; border: 1px solid var(--line); display: grid; gap: 15px; grid-template-columns: 118px 1fr auto; min-height: 112px; padding: 10px; transition: border 160ms ease, background 160ms ease; }
.room-card:hover { border-color: #aab8b0; }
.room-option input:checked + .room-card { background: #f0f3ee; border-color: #6f8278; box-shadow: inset 3px 0 var(--forest); }
.room-photo { background-position: center; background-size: cover; height: 90px; }
.room-info { display: flex; flex-direction: column; }
.room-info strong { font-family: var(--serif); font-size: 23px; font-weight: 400; }
.room-info span { color: #617168; font-size: 12px; margin-top: 6px; }
.room-info small { color: #748179; font-size: 11px; line-height: 1.45; margin-top: 8px; }
.room-price { padding-right: 8px; text-align: right; }
.room-price strong { display: block; font-size: 15px; }
.room-price small { color: #748179; font-size: 10px; margin-top: 5px; }

.amenities-section .section-kicker { font-size: 11px; }
.amenities-grid { display: grid; gap: 23px 38px; grid-template-columns: repeat(3, 1fr); }
.amenity { align-items: center; color: #46564e; display: flex; font-size: 13px; gap: 12px; }
.amenity span { align-items: center; border: 1px solid #cbd2cc; border-radius: 50%; color: #846b4e; display: flex; flex: 0 0 auto; height: 36px; justify-content: center; width: 36px; }
.amenity span svg { height: 17px; width: 17px; }
.policy-grid { display: grid; gap: 24px 40px; grid-template-columns: repeat(2, 1fr); }
.policy-section .section-kicker { font-size: 11px; }
.policy-grid strong { font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.15; }
.policy-grid p { color: #68766f; font-size: 13px; line-height: 1.65; margin: 8px 0 0; }

.booking-column { position: sticky; top: 70px; }
.booking-card { background: white; border: 1px solid #d9dbd6; box-shadow: 0 22px 60px rgba(23,43,36,.09); padding: 23px; }
.booking-price { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding-bottom: 17px; }
.booking-price small { color: #75827b; font-size: 10px; }
.booking-price p { color: #6f7c75; font-size: 11px; margin: 4px 0 0; }
.booking-price p strong { color: var(--ink); font-size: 20px; }
.booking-price > span { font-size: 11px; }
.selected-room { background: #eef1ec; margin-top: 16px; padding: 12px; position: relative; }
.selected-room span { color: #748179; display: block; font-size: 9px; font-weight: 600; letter-spacing: .1em; margin-bottom: 6px; text-transform: uppercase; }
.selected-room strong { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.selected-room button { background: transparent; border: 0; color: #526159; font-size: 10px; position: absolute; right: 10px; text-decoration: underline; top: 10px; }
.date-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 14px; }
.date-grid label, .field { border: 1px solid var(--line); display: block; padding: 9px 10px; }
.date-grid label + label { border-left: 0; }
.date-grid span, .field > span { color: #6f7c75; display: block; font-size: 9px; font-weight: 600; letter-spacing: .08em; margin-bottom: 7px; text-transform: uppercase; }
.date-grid input, .field input, .field select { background: transparent; border: 0; font-size: 13px; outline: 0; padding: 0; width: 100%; }
.field { margin-top: 9px; }
.field select { cursor: pointer; }
.price-breakdown { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); margin-top: 17px; padding: 12px 0; }
.price-breakdown > div { color: #65736b; display: flex; font-size: 11px; justify-content: space-between; padding: 6px 0; }
.price-breakdown strong { color: #526057; font-weight: 500; }
.price-breakdown .total-row { color: var(--ink); font-size: 14px; margin-top: 7px; padding-top: 11px; }
.total-row strong { color: var(--ink); font-size: 17px; font-weight: 600; }
.whatsapp-button { align-items: center; background: #1e6d4a; border: 0; color: white; display: flex; font-size: 13px; font-weight: 600; gap: 8px; justify-content: center; margin-top: 17px; min-height: 52px; width: 100%; }
.whatsapp-button:hover { background: #17583c; }
.whatsapp-button svg { height: 18px; width: 18px; }
.booking-note { color: #75827b; font-size: 10px; line-height: 1.55; margin: 12px 5px 0; text-align: center; }
.concierge-help { align-items: center; border: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: 40px 1fr auto; margin-top: 12px; padding: 14px; }
.maya-orb { align-items: center; background: linear-gradient(140deg,#d8c5aa,#82958a); border-radius: 50%; color: white; display: flex; height: 40px; justify-content: center; width: 40px; }
.maya-orb svg { height: 16px; width: 16px; }
.concierge-help strong { font-size: 12px; }
.concierge-help p { color: #748179; font-size: 10px; line-height: 1.45; margin: 4px 0 0; }
.concierge-help > button { background: transparent; border: 0; border-bottom: 1px solid #718078; font-size: 10px; padding: 0 0 3px; }

.detail-maya-widget { position: relative; z-index: 80; }
.detail-maya-launcher {
  align-items: center;
  background: var(--forest);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  bottom: 24px;
  box-shadow: 0 14px 38px rgba(18, 39, 31, .24);
  color: white;
  display: flex;
  height: 52px;
  justify-content: center;
  position: fixed;
  right: 24px;
  transition: opacity 180ms ease, transform 180ms ease;
  width: 52px;
  z-index: 82;
}
.detail-maya-launcher:hover { transform: translateY(-2px); }
.detail-maya-launcher > svg { height: 20px; width: 20px; }
.detail-maya-launcher > span {
  background: #6fbb83;
  border: 2px solid var(--paper);
  border-radius: 50%;
  height: 10px;
  position: absolute;
  right: 1px;
  top: 2px;
  width: 10px;
}
.detail-maya-panel {
  background: var(--cream);
  border: 1px solid #d8dbd5;
  bottom: 18px;
  box-shadow: 0 24px 70px rgba(17, 34, 28, .22);
  display: flex;
  flex-direction: column;
  height: min(650px, calc(100vh - 70px));
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  right: 18px;
  transform: translateX(calc(100% + 30px));
  transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
  visibility: hidden;
  width: 380px;
  z-index: 81;
}
.detail-maya-widget.is-open .detail-maya-launcher { opacity: 0; pointer-events: none; transform: scale(.82); }
.detail-maya-widget.is-open .detail-maya-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
  visibility: visible;
}
.detail-chat-header {
  align-items: center;
  background: rgba(246, 244, 238, .96);
  border-bottom: 1px solid #dcddd7;
  display: flex;
  flex: 0 0 auto;
  height: 68px;
  justify-content: space-between;
  padding: 0 16px;
}
.detail-chat-header .ai-status { align-items: center; display: flex; gap: 10px; }
.detail-chat-header .ai-status > span:last-child { display: grid; gap: 2px; }
.detail-chat-header .ai-status strong { font-size: 12px; }
.detail-chat-header .ai-status small { align-items: center; color: #7b8780; display: flex; font-size: 8px; gap: 5px; }
.detail-chat-header .ai-status small i { background: #65a979; border-radius: 50%; height: 5px; width: 5px; }
.detail-chat-header > button { align-items: center; background: transparent; border: 1px solid #9ca9a1; border-radius: 50%; color: #30453b; display: flex; height: 36px; justify-content: center; width: 36px; }
.detail-chat-header > button svg { height: 17px; stroke-width: 2; width: 17px; }
.detail-chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 16px 25px;
  scrollbar-color: #c5cac5 transparent;
  scrollbar-width: thin;
}
.detail-chat-messages .chat-date { color: #98a09c; font-size: 8px; margin-bottom: 17px; text-align: center; }
.detail-chat-messages .message {
  font-size: 11px;
  line-height: 1.6;
  max-width: 88%;
  padding: 11px 12px;
}
.detail-chat-messages .message p { margin: 0; white-space: pre-line; }
.detail-chat-messages .message-user { background: var(--forest); color: white; margin-left: auto; margin-top: 20px; }
.detail-chat-messages .chat-date + .message-user { margin-top: 0; }
.detail-chat-messages .message-row { align-items: flex-end; display: flex; gap: 7px; margin-top: 13px; }
.detail-chat-messages .message-ai { background: white; border: 1px solid #dedfd9; }
.detail-chat-messages .mini-orb {
  align-items: center;
  background: linear-gradient(140deg,#d8c5aa,#82958a);
  border-radius: 50%;
  color: white;
  display: flex;
  flex: 0 0 auto;
  height: 24px;
  justify-content: center;
  width: 24px;
}
.detail-chat-messages .mini-orb svg { height: 11px; width: 11px; }
.detail-chat-messages .typing-message { align-items: center; display: flex; gap: 4px; min-height: 42px; width: 58px; }
.detail-chat-messages .typing-message i { animation: detail-maya-typing 1.1s infinite ease-in-out; background: #718078; border-radius: 50%; height: 5px; opacity: .35; width: 5px; }
.detail-chat-messages .typing-message i:nth-child(2) { animation-delay: .15s; }
.detail-chat-messages .typing-message i:nth-child(3) { animation-delay: .3s; }
.detail-chat-messages .ai-listing-cards { display: grid; gap: 7px; margin: 8px 0 0 31px; }
.detail-chat-messages .ai-listing-card { align-items: center; background: white; border: 1px solid #dcddd8; display: grid; gap: 9px; grid-template-columns: 68px minmax(0,1fr) 18px; padding: 6px; }
.detail-chat-messages .ai-listing-card > img { height: 54px; object-fit: cover; width: 68px; }
.detail-chat-messages .ai-listing-copy { display: grid; gap: 2px; min-width: 0; }
.detail-chat-messages .ai-listing-copy strong { font-family: var(--serif); font-size: 15px; font-weight: 400; }
.detail-chat-messages .ai-listing-copy small { color: #7f8a84; font-size: 7px; }
.detail-chat-messages .ai-listing-copy b { font-size: 8px; margin-top: 2px; }
.detail-chat-messages .ai-listing-card > svg { color: #748179; height: 12px; width: 12px; }
.detail-chat-messages .follow-up { margin: 16px 0 0 31px; }
.detail-chat-messages .follow-up p { color: #738078; font-size: 9px; margin: 0 0 7px; }
.detail-chat-messages .follow-up button { background: transparent; border: 1px solid #cbd1cc; border-radius: 30px; color: #536159; font-size: 8px; margin: 0 3px 5px 0; padding: 7px 8px; }
.detail-chat-messages .message-enter-user {
  animation: detail-chat-user-enter 240ms cubic-bezier(.22,.75,.28,1) both;
  transform-origin: right bottom;
}
.detail-chat-messages .message-enter-ai {
  animation: detail-chat-ai-enter 280ms cubic-bezier(.22,.75,.28,1) both;
  transform-origin: left bottom;
}
.detail-chat-messages .typing-enter { animation: detail-chat-typing-enter 180ms ease-out both; }
.detail-chat-messages .listing-cards-enter .ai-listing-card {
  animation: detail-chat-card-enter 280ms cubic-bezier(.22,.75,.28,1) both;
}
.detail-chat-messages .listing-cards-enter .ai-listing-card:nth-child(2) { animation-delay: 45ms; }
.detail-chat-messages .listing-cards-enter .ai-listing-card:nth-child(3) { animation-delay: 90ms; }
.detail-chat-composer {
  background: white;
  border: 1px solid #d6d9d3;
  flex: 0 0 auto;
  margin: 0 12px 12px;
  padding: 11px;
}
.detail-chat-composer textarea { background: transparent; border: 0; font-size: 11px; line-height: 1.5; min-height: 46px; outline: 0; resize: none; width: 100%; }
.detail-chat-composer > div { align-items: center; display: flex; justify-content: space-between; margin-top: 4px; }
.detail-chat-composer > div > span { color: #a0a6a2; font-size: 7px; }
.detail-chat-composer .send-button { align-items: center; background: var(--forest); border: 0; border-radius: 50%; color: white; display: flex; height: 31px; justify-content: center; width: 31px; }
.detail-chat-composer .send-button:disabled { cursor: wait; opacity: .5; }
.detail-chat-composer .send-button svg { height: 14px; width: 14px; }
.ai-is-thinking .detail-chat-header .ai-status small i { animation: detail-maya-pulse 1.1s infinite ease-out; }
@keyframes detail-maya-typing {
  0%, 60%, 100% { opacity: .28; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
@keyframes detail-maya-pulse {
  0% { box-shadow: 0 0 0 0 rgba(101,169,121,.55); }
  100% { box-shadow: 0 0 0 5px rgba(101,169,121,0); }
}
@keyframes detail-chat-user-enter {
  from { opacity: 0; transform: translate3d(8px,7px,0) scale(.985); }
  to { opacity: 1; transform: translate3d(0,0,0) scale(1); }
}
@keyframes detail-chat-ai-enter {
  from { opacity: 0; transform: translate3d(-7px,8px,0) scale(.985); }
  to { opacity: 1; transform: translate3d(0,0,0) scale(1); }
}
@keyframes detail-chat-typing-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes detail-chat-card-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.photo-lightbox { align-items: center; background: rgba(10,18,15,.94); color: white; display: none; flex-direction: column; inset: 0; justify-content: center; padding: 55px; position: fixed; z-index: 100; }
.photo-lightbox.open { display: flex; }
.photo-lightbox > button { align-items: center; background: transparent; border: 0; color: white; display: flex; height: 38px; justify-content: center; position: absolute; right: 28px; top: 18px; width: 38px; }
.photo-lightbox > button svg { height: 24px; width: 24px; }
.photo-lightbox img { max-height: calc(100vh - 145px); max-width: min(1100px, 90vw); object-fit: contain; }
.photo-lightbox > div { align-items: center; display: flex; gap: 30px; margin-top: 17px; }
.photo-lightbox > div button { align-items: center; background: transparent; border: 0; color: white; display: flex; font-size: 10px; gap: 6px; }
.photo-lightbox > div button svg { height: 14px; width: 14px; }
.photo-lightbox > div span { color: #b8c0bb; font-size: 9px; }

@media (max-width: 980px) {
  .detail-layout { gap: 35px; grid-template-columns: minmax(0,1fr) 330px; }
  .gallery { grid-template-rows: repeat(2, 155px); }
  .feature-strip { grid-template-columns: 1fr; }
  .feature-strip article { border-bottom: 1px solid var(--line); border-right: 0; padding: 14px 0; }
}

@media (max-width: 760px) {
  body:has(.detail-maya-widget.is-open) { overflow: hidden; }
  .detail-header { grid-template-columns: 1fr auto; height: 39px; padding: 0 12px; }
  .back-link { display: none; }
  .detail-page { padding: 25px 14px 65px; }
  .title-row { align-items: flex-start; flex-direction: column; }
  .title-row h1 { font-size: 48px; }
  .title-actions { justify-content: space-between; margin-top: 15px; padding: 0; width: 100%; }
  .gallery { display: flex; margin: 21px -14px 0; overflow-x: auto; padding: 0 14px 5px; scrollbar-width: none; }
  .gallery button { flex: 0 0 72vw; height: 280px; }
  .gallery-main { grid-row: auto; }
  .gallery-main > span { display: none; }
  .virtual-tour-section { margin-top: 30px; padding: 24px 0 28px; }
  .virtual-tour-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .virtual-tour-heading h2 { font-size: 34px; }
  .virtual-tour-frame { height: 62vw; min-height: 330px; }
  .detail-layout { display: flex; flex-direction: column; gap: 35px; margin-top: 30px; }
  .detail-content, .booking-column { width: 100%; }
  .booking-column { position: static; }
  .host-summary .verified { display: none; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .section-heading > p { max-width: none; text-align: left; }
  .room-card { grid-template-columns: 95px 1fr; }
  .room-photo { height: 82px; }
  .room-price { grid-column: 2; padding: 0 0 4px; text-align: left; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .policy-grid { grid-template-columns: 1fr; }
  .detail-maya-launcher {
    bottom: 18px;
    height: 50px;
    right: 14px;
    width: 50px;
  }
  .detail-maya-panel {
    border: 0;
    bottom: 0;
    height: calc(100dvh - 39px);
    max-height: none;
    right: 0;
    transform: translateY(100%);
    width: 100%;
  }
  .detail-maya-widget.is-open .detail-maya-panel { transform: translateY(0); }
  .detail-chat-header { height: 64px; padding: 0 14px; }
  .detail-chat-messages { padding: 18px 14px 24px; }
  .detail-chat-composer { margin: 0 10px max(10px, env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  .detail-page { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
  .detail-maya-launcher { bottom: calc(78px + env(safe-area-inset-bottom)); }
  .detail-maya-panel {
    bottom: calc(66px + env(safe-area-inset-bottom));
    height: calc(100dvh - 39px - 66px - env(safe-area-inset-bottom));
  }
}

@media (max-width: 430px) {
  .gallery button { flex-basis: 86vw; height: 250px; }
  .virtual-tour-frame { height: 430px; min-height: 0; }
  .virtual-tour-hint { display: none; }
  .load-3d-button { gap: 10px; grid-template-columns: 38px minmax(0,1fr) 16px; padding: 11px; width: calc(100% - 28px); }
  .load-3d-icon { height: 38px; width: 38px; }
  .intro-section h2 { font-size: 38px; }
  .amenities-grid { grid-template-columns: 1fr; }
  .room-card { gap: 10px; grid-template-columns: 80px 1fr; }
  .room-photo { height: 74px; }
  .detail-chat-messages .message { font-size: 12px; max-width: 92%; }
  .detail-chat-messages .ai-listing-cards { margin-left: 0; }
  .detail-chat-messages .ai-listing-card { grid-template-columns: 64px minmax(0,1fr) 18px; }
  .detail-chat-messages .ai-listing-card > img { height: 52px; width: 64px; }
  .detail-chat-messages .follow-up { margin-left: 0; }
  .detail-chat-composer textarea { font-size: 13px; }
}

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