/* Phone-only overrides. Tablet/desktop retain the existing styles. */
@media (max-width:700px), (max-width:1000px) and (max-height:500px) and (pointer:coarse) {
  :root{--gutter:7%;--navbar-height:96px;--spacing-section:134px;--spacing-text-img:80.4px;--spacing-title-body:53.6px;--spacing-eyebrow-title:32.16px;--mobile-cta-width:clamp(124px,39vw,168px);--mobile-title-size:clamp(30px,8.5vw,46px)}
  .wrap{width:86%}
  .intro{padding-left:7%;padding-right:7%}
  .site-header,.site-header:not(.is-scrolled){height:96px;padding:16px 7%;align-items:flex-start}
  .site-header .brand{margin-top:4px}
  .site-header .brand img,.site-header:not(.is-scrolled) .brand-white{width:56.77px;height:53.46px;object-fit:contain}
  .hero h1{font-size:clamp(38px,11.1vw,66px)}
  .hero .hero-slogan-word{white-space:nowrap}
  .site-header .navbar-actions,.site-header:not(.is-scrolled) .navbar-actions{padding-top:8px;display:flex;flex-direction:row;align-items:center;gap:8px}
  .site-header .initial-ctas{display:flex;gap:0;order:0}
  .site-header.is-scrolled .initial-ctas{display:none}
  .site-header .initial-ctas>a.btn{display:none}
  .site-header .initial-ctas .light{display:inline-flex}
  .site-header .language-switch{order:1;font-size:10px;gap:4px;letter-spacing:0}
  .site-header .language-switch a{min-height:44px;display:inline-flex;align-items:center}
  .site-header .menu-toggle{display:flex;order:2;width:28px;min-width:28px;height:44px;padding:12px 2px}
  .site-header:not(.is-scrolled) .menu-toggle{display:none}
  .site-header .initial-ctas .btn,.hero .hero-actions .btn{box-sizing:border-box;width:calc(44px * var(--cta-ratio));min-width:0;height:44px;min-height:44px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;font-size:9px;letter-spacing:.15em;line-height:1.2;white-space:nowrap}
  .site-header .initial-ctas .btn{--cta-ratio:3.030475}
  .hero .hero-actions .btn{--cta-ratio:3.792351}
  .hero .hero-actions .btn:last-child{--cta-ratio:4.317897}
  .hero .hero-actions{position:static;display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
  .hero{padding-top:120px;padding-bottom:32px}
  .site-menu .menu-close,.site-menu .menu-close:hover,.site-menu .menu-close:focus,.site-menu .menu-close:active,
  #gallery-close,#gallery-close:hover,#gallery-close:focus,#gallery-close:active{background:none!important;border:0!important;outline:0!important;box-shadow:none!important;filter:none!important;text-shadow:none!important;-webkit-tap-highlight-color:transparent}
  #gallery-close{position:relative}
  #gallery-close img{visibility:hidden}
  #gallery-close::before{content:'';position:absolute;inset:10px;background:#D9532E;mask:url('/assets/CORALIS_CLOSE.png') center/contain no-repeat}
  .site-menu .menu-close::before{background:#D9532E;filter:none;box-shadow:none}
  .site-menu .menu-close::before,#gallery-close::before{mask-mode:luminance}
  #viewer>.close,#viewer>.close:hover,#viewer>.close:focus,#viewer>.close:active{background:none!important;border:0!important;outline:0!important;box-shadow:none!important;filter:none!important;text-shadow:none!important;-webkit-tap-highlight-color:transparent}
  .site-menu{padding:64px 7% 24px;justify-content:flex-start;overflow-y:auto}
  .site-menu nav a{font-size:26px}
  .marina{padding:134px 0}
  .marina-images{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--phone-image-gap,7vw);padding:0}
  .marina-images>p{grid-area:auto;margin:0 7% calc(32px - var(--phone-image-gap,7vw));max-width:none}
  .marina-images>.marina-left,.marina-images>.marina-right{grid-area:auto;width:86%;height:312px;margin:0 7%;object-fit:cover;object-position:center}
  .marina-copy{padding-top:80.4px;margin-left:7%;width:86%}
  .marina-copy .copy{padding:0}
  section.banner[data-section='3'],section.banner[data-section='5']{width:100%;height:312px;min-height:0;aspect-ratio:auto;margin:0;border:0;border-radius:0;background-size:cover;background-position:center;padding-top:24px;padding-bottom:24px}
  section.banner[data-section='3'] h1{font-size:var(--mobile-title-size);line-height:1.1}
  section[data-section='5'] .banner-statement{font-size:var(--mobile-title-size)}
  section.banner[data-section='3'] h1,[data-section='4'] .asym h2.statement,.terraces .statement,section[data-section='5'] .banner-statement{text-align:center}
  section.banner[data-section='3'] h1,section[data-section='5'] .banner-statement{justify-self:stretch;width:100%}
  [data-section='4'].wrap{width:86%}
  [data-section='4'] .asym{grid-template-columns:minmax(0,1fr);gap:var(--phone-image-gap,7vw);margin-top:80.4px;margin-left:-8.139535%;margin-right:-8.139535%}
  [data-section='4'] .asym>div{display:contents}
  [data-section='4'] .asym>div>img{grid-row:1;width:86%;height:312px;margin:0 7%;object-fit:cover;object-position:center}
  [data-section='4'] .asym>img{grid-row:2;width:86%;height:312px;margin:0 7%;object-fit:cover;object-position:center}
  [data-section='4'] .asym h2.statement{grid-row:3;width:86%;margin:calc(32px - var(--phone-image-gap,7vw)) 7% 0;font-size:var(--mobile-title-size)}
  [data-section='4'] .statement .mobile-statement-line{display:block;white-space:nowrap}
  .two,.terraces,.contact{grid-template-columns:1fr;gap:53.6px}
  .two>.copy{padding-top:0}
  .interiors{padding-top:134px}
  .interiors .two.wrap{width:86%;padding-bottom:80.4px;gap:32.16px}
  .terraces>div:first-child>.eyebrow,.terraces>div:first-child>h2{margin-left:0}
  .terraces>div:first-child>img{width:100%;height:312px;margin-left:0;margin-top:134px;object-fit:cover;object-position:center}
  .terraces{row-gap:var(--phone-image-gap,7vw)}
  .terraces>div:last-child{padding-top:0}
  .terraces>div:last-child>img{width:100%;height:312px;aspect-ratio:auto;object-fit:cover;object-position:center;margin-left:0}
  .terraces .statement{font-size:var(--mobile-title-size);margin-top:53.6px}
  .intro>h2,.marina-copy>h2,[data-section='4'] .two h2,.interiors>h2,.terraces>div:first-child>h2,.typologies .two h2,.amenities>h2,.location .wrap>h2,.coral>h2,.contact>div>h2{font-size:var(--mobile-title-size)}
  .eyebrow,h4,.policy-page .legal-content h4{font-size:10px}
  .location .icons .location-label,.location .icons .location-label span,.location .icons .location-label em{font-size:10px}
  main p+p{margin-top:.99em}
  .types{grid-template-columns:1fr;margin-top:80.4px;row-gap:53.6px}
  .types .type>span,.types .type:hover>span,.types .type:focus>span,.types .type:focus-visible>span{opacity:0;inset:0;transition:none}
  .types .type.is-mobile-selected>span{opacity:1}
  .types .type{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;touch-action:pan-y}
  .types .type-caption{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:32.16px;padding:32.16px 9px}
  .types .type-caption h2{margin:0;min-width:0;font-size:25.46px}
  .type-actions{display:flex;align-items:center;gap:2px;flex-shrink:0}
  .types .type-caption .download,.mobile-plan-open{position:static;transform:none;display:inline-flex;align-items:center;justify-content:center;min-width:44px;width:44px;min-height:44px;height:44px;padding:3px;background:transparent;border:0}
  .mobile-plan-open img,.types .type-caption .download img{width:38px;height:38px;object-fit:contain}
  .types :is(.type,.download,.mobile-plan-open):is(:hover,:active,:focus){background:transparent!important;background-image:none!important;border:0!important;outline:none;box-shadow:none!important;filter:none!important;-webkit-tap-highlight-color:transparent}
  .types :is(.type,.download,.mobile-plan-open):focus-visible{outline:2px dashed #333!important;outline-offset:4px}
  #gallery-viewer.single-image .viewer-tools :is(button,a):is(:hover,:active,:focus){background:transparent!important;background-image:none!important;border:0!important;outline:none;box-shadow:none!important;filter:none!important;-webkit-tap-highlight-color:transparent}
  #gallery-viewer.single-image .viewer-tools :is(button,a):focus-visible{outline:2px dashed #F8F5F0!important;outline-offset:3px}
  #gallery-viewer.pdf-mode #gallery-close,#gallery-viewer.pdf-mode #gallery-close:is(:hover,:active,:focus,:focus-visible){border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;background-image:none!important;filter:none!important}
  #gallery-viewer.pdf-mode .viewer-stage .viewer-frame{width:calc(100% - 48px);height:calc(100dvh - 144px)}
  #gallery-viewer.pdf-mode .viewer-tools .viewer-pdf-download{min-width:44px;min-height:44px;padding:10px}
  .amenities .icons{grid-template-columns:1fr 1fr;margin-top:80.4px;margin-bottom:53.6px;row-gap:53.6px}
  .amenities .icons img{margin-bottom:32.16px}
  [data-section='9'] .icons img{width:61.2px;height:54.4px}
  .location h2{margin-bottom:80.4px}
  .location .wrap{padding-bottom:53.6px}
  .location .icons{grid-template-columns:minmax(0,1fr);padding-top:21.44px;padding-bottom:21.44px;gap:16px}
  .location .icons>div,.location .icons>div:first-child{min-width:0;display:grid;grid-template-columns:54.6px minmax(0,1fr);column-gap:10px;row-gap:0;text-align:left}
  .location .icons .location-label{flex-wrap:wrap;text-align:left;justify-content:flex-start}
  .location .icons>div:first-child .location-label{display:block;white-space:normal}
  .location .icons>div{grid-template-rows:auto;align-items:center}
  .location .icons>div>img,.location .icons>div>.location-label{grid-row:1;align-self:center}
  .location .icons>div:first-child .location-label span,.location .icons>div:first-child .location-label em{display:inline;white-space:normal;font-size:10px}
  .location .icons>div:first-child .location-label .airport-tail,.location .icons>div:first-child .location-label em{white-space:nowrap}
  .location .fine{margin-top:16.08px}
  .location .map{width:100%;height:clamp(420px,65svh,620px);aspect-ratio:auto;margin-bottom:0;touch-action:none}
  .location .map>img{object-fit:contain}
  .location>.map-tools{position:static;width:86%;margin:12px 7% 134px;display:flex;justify-content:flex-end;gap:8px}
  .location>.map-tools #plus,.location>.map-tools #minus{width:38px;height:38px;min-width:38px;font-size:24px;padding:0}
  section[data-section='3'].has-mobile-sequence,section[data-section='5'].has-mobile-sequence{position:relative;isolation:isolate;overflow:hidden}
  .has-mobile-sequence>.scroll-banner-media{visibility:hidden}
  .has-mobile-sequence[data-section]>.mobile-banner-media{position:absolute;inset:-6% 0;z-index:-1;pointer-events:none}
  .mobile-banner-media img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;opacity:0}
  .mobile-banner-media img:first-child{opacity:1}
  .has-mobile-sequence>h1,.has-mobile-sequence>h2{position:relative;z-index:1}
  .coral.scroll-banner{width:100%;height:auto;min-height:580px;margin:0;padding:80.4px 7%;border:0;border-radius:0}
  .coral.scroll-banner>h2{margin-bottom:53.6px}
  .coral.scroll-banner>.coral-body{margin:0}
  .contact form{padding-top:0;gap:32.16px}
  .contact .btn{margin-top:21.44px}
  .form-consents{gap:8px}
  .partners{row-gap:21.44px;padding-top:16.08px;padding-bottom:16.08px}
  footer.wrap{padding-top:134px;padding-bottom:134px}
  .footer-row{margin-top:80.4px}
  .thanks-page{padding-top:53.6px;padding-bottom:53.6px}
  .thanks-content h2{margin-bottom:21.44px}.thanks-content h5{margin-bottom:32.16px}
  .gallery-shell .gallery{touch-action:pan-y;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
  .gallery-shell .photo,.interiors .photo:first-child,.outdoors .photo:nth-child(2){flex-basis:86%}
  .gallery-shell .photo img{height:min(650px,100svh)}
  .gallery-shell .gallery.is-dragging{scroll-snap-type:none}
  .gallery-shell .gallery.has-mobile-loop{overflow-anchor:none}
  .gallery-shell .photo{scroll-snap-align:start}
  .viewer-tools{right:8px;gap:0}.viewer-tools button{min-width:44px;padding:10px}.viewer-tools img{width:22px;height:22px}
  #gallery-viewer .viewer-frame,#gallery-viewer .viewer-stage.zoomed .viewer-frame{width:calc(100% - 48px)}
  #gallery-viewer.mobile-portrait .viewer-stage,#gallery-viewer.mobile-portrait .viewer-stage.zoomed{height:calc(100% - 72px);bottom:72px}
  #gallery-viewer.mobile-portrait .viewer-frame,#gallery-viewer.mobile-portrait .viewer-stage.zoomed .viewer-frame{height:calc(100dvh - 164px);width:calc(100% - 48px)}
  #gallery-viewer.mobile-portrait .viewer-prev,#gallery-viewer.mobile-portrait .viewer-next{top:var(--mobile-arrow-top,calc(100% - 60px));right:auto;min-width:44px;min-height:44px}
  #gallery-viewer.mobile-portrait .viewer-prev{left:var(--mobile-arrow-left,24px)}
  #gallery-viewer.mobile-portrait .viewer-next{left:auto;right:var(--mobile-arrow-right,24px)}
  #gallery-viewer.mobile-gallery .viewer-prev,#gallery-viewer.mobile-gallery .viewer-next{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;top:var(--mobile-arrow-top);right:auto;justify-content:flex-start}
  #gallery-viewer.mobile-gallery .viewer-prev{left:var(--mobile-arrow-left,24px)}
  #gallery-viewer.mobile-gallery .viewer-next{left:auto;right:var(--mobile-arrow-right,24px);justify-content:flex-end}
  #gallery-viewer.mobile-gallery :is(.viewer-prev,.viewer-next) img{width:30px;height:30px}
  #gallery-viewer[data-fullscreen-mode='viewport']{height:100dvh;width:100vw;max-width:none;max-height:none;inset:0;margin:0}
  #gallery-viewer.viewer-expanded .viewer-frame,#gallery-viewer.viewer-expanded .viewer-stage.zoomed .viewer-frame{width:calc(100% - 16px);height:calc(100dvh - 96px)}
  #gallery-viewer.viewer-expanded.mobile-portrait .viewer-frame,#gallery-viewer.viewer-expanded.mobile-portrait .viewer-stage.zoomed .viewer-frame{height:calc(100dvh - 128px)}
}
@media(max-width:700px){#gallery-viewer.mobile-gallery :is(.viewer-prev,.viewer-next) img{width:24px;height:24px}}
