/* Mobile-only refinement. Loaded before shared layers; no desktop declarations. */
@layer dv-mobile;
@media (max-width:767px), (max-width:950px) and (max-height:500px) and (pointer:coarse) {
 @layer dv-mobile {
  :root {--mobile-gutter:20px;--header-height:72px!important;--header-gutter:16px!important;--header-logo:132px!important;}
  html {scroll-padding-block:24px!important;}
  body :is(.wrap,.dv-v-wrap,.dv-v-narrow) {width:calc(100% - 40px)!important;max-width:100%!important;}
  body main {min-width:0!important;}
  body :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {font-size:16px!important;min-width:0!important;max-width:100%!important;}
  body input::placeholder,body textarea::placeholder {font-size:inherit!important;}
  body :is(.dv-control,.dv-text-link,.preview-link,summary) {min-height:48px!important;}
  body :is(.dv-control,.dv-text-link,.preview-link) {touch-action:manipulation;}
  body :is(a,button,input,select,textarea,summary):focus-visible {outline-offset:3px!important;}
  body :is(.button-row,.dv-v-actions) {gap:10px!important;}
  body :is(.page-intro h1,.page-intro h2) {font-size:clamp(34px,9.5vw,46px)!important;line-height:1.08!important;overflow-wrap:anywhere;}
  body .page-intro {padding-block:36px 28px!important;}
  body .page-intro>p {font-size:16px!important;line-height:1.65!important;margin-top:20px!important;}
  body .section {padding-block:48px!important;}
  body .section.compact {padding-top:12px!important;}
  body :is(.section-heading h2,.preview-copy h2,.concierge-copy h2) {font-size:clamp(30px,8.4vw,40px)!important;line-height:1.12!important;}
  body .section-heading {margin-bottom:28px!important;}
  body :is(.section-heading>p,.preview-copy>p,.concierge-copy>p) {line-height:1.65!important;}
  body .eyebrow {line-height:1.6!important;}
  /* Keep all four services visible, with the arrows clear of the scene copy. */
  body.is-home .immersive-hero {height:max(780px,100svh)!important;min-height:780px!important;max-height:none!important;}
  body.is-home .immersive-hero .hero-content {width:calc(100% - 40px)!important;height:auto!important;min-height:0!important;padding:104px 0 0!important;justify-content:flex-start!important;align-items:flex-start!important;}
  body.is-home #scene-title {font-size:clamp(36px,10.2vw,44px)!important;line-height:1.08!important;max-width:100%!important;}
  body.is-home #scene-text {font-size:14px!important;line-height:1.55!important;max-width:34ch!important;}
  body.is-home .hero-content .button-row {margin-top:18px!important;flex-wrap:wrap!important;}
  body.is-home :is(.arrival-photo-credit,.hero-media-credit) {font-size:10px!important;line-height:1.5!important;max-width:32ch!important;margin-top:14px!important;}
  body.is-home .hero-bottom {position:absolute!important;inset:auto 20px calc(16px + env(safe-area-inset-bottom,0px))!important;width:auto!important;display:grid!important;gap:12px!important;padding:0!important;}
  body.is-home .hero-bottom .global-search {width:100%!important;min-height:56px!important;margin:0!important;}
  body.is-home .hero-bottom .global-search input {width:100%!important;font-size:16px!important;}
  body.is-home .scene-controls {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px 12px!important;overflow:visible!important;padding:0!important;}
  body.is-home .scene-controls>.dv-control {display:grid!important;grid-template-columns:16px minmax(0,1fr) 16px!important;width:100%!important;min-width:0!important;padding:8px 4px!important;gap:7px!important;justify-content:flex-start!important;white-space:normal!important;font-size:13px!important;}
  body.is-home .scene-controls .scene-label {min-width:0!important;width:auto!important;white-space:normal!important;overflow-wrap:anywhere;text-align:start!important;}
  body.is-home .scene-controls .scene-number {position:static!important;width:auto!important;font-size:10px!important;}
  body.is-home .scene-controls .icon {width:16px!important;flex-shrink:0!important;margin-inline-start:auto!important;}
  body.is-home .scene-arrow {top:auto!important;bottom:220px!important;inset-inline-start:auto!important;inset-inline-end:20px!important;transform:none!important;}
  body.is-home .scene-arrow--previous {inset-inline-end:78px!important;}
  body.dv-mobile-contact-clear>.whatsapp-float,body.dv-mobile-hero-visible>.whatsapp-float {display:none!important;}
  /* Native horizontal rails expose the next choice without long stacks. */
  body.is-home :is(.accommodation-grid,.preview-models) {display:flex!important;gap:14px!important;overflow-x:auto!important;scroll-snap-type:x mandatory;scroll-padding-inline:0;overscroll-behavior-inline:contain;scrollbar-width:thin;padding:0 0 14px!important;}
  body.is-home :is(.accommodation-grid>.accommodation-card,.preview-models>.preview-model) {flex:0 0 86%!important;min-width:0!important;width:86%!important;scroll-snap-align:start;}
  body.is-home .accommodation-card {height:300px!important;aspect-ratio:auto!important;}
  body.is-home .preview-model {height:360px!important;aspect-ratio:auto!important;}
  body.is-home :is(.accommodation-card,.preview-model) .dv-tile-copy {padding:20px!important;}
  body.is-home :is(.accommodation-card,.preview-model) h3 {font-size:24px!important;line-height:1.15!important;max-width:calc(100% - 32px)!important;}
  body.is-home .chapter-foot {display:grid!important;gap:14px!important;margin-top:20px!important;}
  body.is-home .collection-preview {padding-block:48px!important;}
  body.is-home .preview-copy .button-row {margin-block:24px!important;flex-direction:column!important;align-items:stretch!important;}
  body.is-home .preview-copy .button-row>a {width:100%!important;font-size:14px!important;}
  body.is-home .preview-models {margin-top:28px!important;}
  body.is-home .preview-copy>.button-row .preview-link {display:inline-flex!important;align-items:center!important;justify-content:center!important;}
  body .dv-experience {padding-block:48px!important;width:100%!important;max-width:none!important;margin-inline:0!important;}
  body .dv-experience .wrap {width:calc(100% - 40px)!important;}
  body .dv-experience-heading h2 {font-size:34px!important;line-height:1.1!important;}
  body .dv-experience-layout {gap:18px!important;}
  body .dv-experience-tabs {scroll-snap-type:x proximity;}
  body .dv-experience-tab {scroll-snap-align:start;}
  body .dv-experience-tab .dv-experience-number {display:none!important;}
  body .dv-experience .dv-experience-tab strong {font-size:15px!important;}
  body .dv-experience .dv-experience-tab.dv-control {padding:12px!important;}
  body :is(.dv-experience-ready .dv-experience-screen,.dv-experience-panel) {aspect-ratio:4/5!important;}
  body .dv-experience-panel-copy {inset:auto 20px 20px!important;gap:12px!important;}
  body .dv-experience-panel h3 {font-size:30px!important;}
  body .dv-experience-footer .button-row {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:10px!important;}
  body .dv-experience-footer .button-row a {padding-inline:16px!important;width:auto!important;flex:1 1 auto!important;}
  body .dv-pack-showcase {--pack-card-width:min(340px,calc(100vw - 64px));--pack-card-height:450px;}
  body .dv-pack-showcase .section-heading {width:calc(100% - 40px)!important;}
  body .dv-pack-showcase .section-heading h2 {font-size:32px!important;}
  body .dv-pack-card .dv-pack-description {font-size:14px!important;line-height:1.55!important;}
  body .dv-pack-deck {padding-inline:20px!important;}
  body .dv-pack-ready .dv-pack-deck {padding:0!important;}
  body .dv-pack-caption {width:calc(100% - 40px)!important;}
  /* Consistent, legible inner pages and filters. */
  body .filter-group,body .dv-v-segments {display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;overflow-x:auto!important;overscroll-behavior-inline:contain;scrollbar-width:thin;gap:8px!important;padding:6px!important;}
  body :is(.filter-group,.dv-v-segments)>.dv-control {flex:0 0 auto!important;white-space:nowrap!important;min-height:48px!important;padding-inline:16px!important;}
  body .dv-v-hero-copy {padding-block:24px!important;}
  body .dv-v-hero-copy h1 {font-size:36px!important;}
  body .dv-v-actions {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body .dv-v-actions>.dv-control {width:100%!important;min-width:0!important;min-height:56px!important;padding:12px!important;font-size:14px!important;}
  body .dv-v-section {padding-block:48px!important;}
  body .comparison-tools {position:static!important;display:grid!important;grid-template-columns:1fr!important;gap:12px!important;padding:16px!important;background:var(--control-soft,#f3f3f4)!important;color:var(--control-ink,#000)!important;box-shadow:none!important;}
  body .comparison-tabs {display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:8px!important;max-width:100%!important;scrollbar-width:thin;}
  body .comparison-tabs>button {white-space:nowrap!important;flex:0 0 auto!important;min-height:48px!important;}
  body .compare-scroll {max-width:100%!important;overscroll-behavior-inline:contain;scrollbar-width:thin;}
  body .comparison-switch {display:flex!important;align-items:center!important;gap:12px!important;min-height:44px!important;font-size:14px!important;}
  body :is(.planner-layout,.field-grid) {grid-template-columns:minmax(0,1fr)!important;gap:20px!important;}
  body .planner-form :is(fieldset,label) {min-width:0!important;}
  body .planner-form fieldset {margin-bottom:28px!important;padding:20px 16px!important;}
  body .planner-form legend {font-size:22px!important;line-height:1.3!important;padding-inline:0!important;}
  body .planner-form label {font-size:14px!important;line-height:1.5!important;}
  body .service-options {display:grid!important;grid-template-columns:1fr!important;gap:6px!important;}
  body .service-options>label {display:flex!important;align-items:center!important;gap:12px!important;min-height:48px!important;}
  body .vehicle-options {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  body .vehicle-options>label {min-height:72px!important;padding:12px!important;}
  body .planner-form .consent {display:flex!important;align-items:flex-start!important;gap:12px!important;font-size:14px!important;line-height:1.6!important;}
  body .planner-form>.dv-control {width:100%!important;}
  body :is(.form-note,.form-storage-note) {font-size:13px!important;line-height:1.65!important;}
  body .dv-villa-toolbar {gap:16px!important;}
  body .dv-villa-modes {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  body .dv-villa-modes .dv-control {white-space:normal!important;padding:12px!important;font-size:14px!important;}
  body .dv-villa-screen {min-height:360px!important;}
  /* Dialogs remain scrollable above the on-screen keyboard. */
  body dialog {box-sizing:border-box!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important;overscroll-behavior:contain;}
  body :is(.language-dialog,.contact-dialog,.spotlight-dialog,.model-picker) {width:calc(100vw - 24px)!important;margin:auto!important;padding:20px!important;}
  body .spotlight-dialog {align-self:start!important;margin-top:max(12px,env(safe-area-inset-top,0px))!important;}
  body .spotlight-form {gap:8px!important;}
  body .spotlight-form input {font-size:16px!important;}
  body #mobile-nav .dv-nav-primary {padding:12px 20px calc(24px + env(safe-area-inset-bottom,0px))!important;}
  body #mobile-nav .dv-nav-item {min-height:56px!important;font-size:20px!important;padding:12px!important;}
  body #mobile-nav .dv-nav-utilities {padding-top:24px!important;}
  body #mobile-nav .dv-nav-panel {padding:20px 20px calc(24px + env(safe-area-inset-bottom,0px))!important;}
  body #mobile-nav .dv-nav-mobilebar {height:calc(72px + env(safe-area-inset-top,0px))!important;padding-top:calc(12px + env(safe-area-inset-top,0px))!important;}
  body #mobile-nav :is(.dv-nav-primary,.dv-nav-content) {height:calc(100dvh - 72px - env(safe-area-inset-top,0px))!important;}
  body #mobile-nav .dv-nav-close {top:calc(12px + env(safe-area-inset-top,0px))!important;}
  body>.whatsapp-float {right:16px!important;bottom:calc(16px + env(safe-area-inset-bottom,0px))!important;}
  body:has(dialog[open])>.whatsapp-float,body.dv-navigation-open>.whatsapp-float,body:has(input:focus,textarea:focus,select:focus)>.whatsapp-float {display:none!important;}
  body footer {padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))!important;}
  @media(max-width:359px) {
   body .vehicle-options {grid-template-columns:1fr!important;}
   body .dv-experience .dv-experience-tab.dv-control {padding-inline:10px!important;}
   body .dv-experience .dv-experience-tab strong {font-size:14px!important;}
  }
  @media(max-height:500px) and (pointer:coarse) {
   body.is-home .immersive-hero {height:740px!important;min-height:740px!important;}
   body #mobile-nav .dv-nav-item {min-height:48px!important;}
  }
 }
}
