/* MyResa V3: layout only. Original booking/search behavior is retained. */
:root{--v3-green:#123f33;--v3-cream:#f7f9f4}
@media(min-width:701px){.hero{display:block!important;max-width:1240px!important;margin:auto!important;padding:22px 20px!important}.hero .photo{display:none!important}.hero-content{width:100%!important;max-width:none!important}.hero-heading{margin:0 0 12px!important;font-size:clamp(24px,3vw,38px)!important}.hero-content .hotel-search{width:100%!important;max-width:none!important;margin:0!important;padding:16px!important}.hotel-search-grid{display:grid!important;grid-template-columns:minmax(200px,2fr) repeat(2,minmax(110px,1fr)) minmax(170px,1.2fr) minmax(150px,1.2fr)!important;gap:10px!important;align-items:end}.hotel-search-grid>*{grid-column:auto!important;min-width:0}.hotel-search .guest-field,.hotel-search .residence-field{grid-column:auto!important}.hotel-search button[type=submit]{margin:12px 0 0!important}.hotel-search .hint{margin-top:7px!important}}
#myresa-hotel-results{max-width:1240px!important;padding:0 20px!important;margin:22px auto!important}
.v3-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0 12px}.v3-filter-button{background:var(--v3-green);color:#fff;border:0;border-radius:12px;padding:12px 20px;font-weight:750;cursor:pointer}.v3-count{font-size:13px;color:#527467}.v3-map{border:1px solid #d7e3db;border-radius:20px;overflow:hidden;background:#f0f5f0;margin-bottom:20px}.v3-map-head{display:flex;justify-content:space-between;align-items:center;padding:12px 18px;background:#e6f0e9}.v3-map-toggle{background:#fff;border:1px solid #c8d9ce;border-radius:9px;padding:8px 12px;cursor:pointer}.v3-map-body{min-height:150px;display:grid;place-items:center;padding:22px;text-align:center;font-size:13px;color:#547365}.v3-map-body[hidden]{display:none}.v3-hotel-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important}.v3-hotel-grid article[hidden]{display:none!important}
.v3-filter-dialog{border:0;border-radius:22px;padding:0;width:min(500px,calc(100vw - 30px));max-height:90vh;box-shadow:0 25px 90px #0005;color:#193331}.v3-filter-dialog::backdrop{background:#0a211ab3}.v3-filter-panel{padding:24px;display:grid;gap:22px}.v3-filter-top,.v3-filter-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}.v3-filter-top h3{margin:0}.v3-filter-close{font-size:25px;background:none;border:0;cursor:pointer}.v3-filter-panel label{display:grid;gap:9px;font-weight:650;font-size:14px}.v3-filter-panel select{padding:13px;border:1px solid #c3d5c8;border-radius:11px;font:inherit;background:#fff;color:#193331}.v3-filter-actions button{padding:12px 16px;border:1px solid #bdd0c4;border-radius:12px;cursor:pointer;background:#fff}.v3-filter-actions .v3-apply{background:#16856e;color:#fff;border-color:#16856e}
@media(max-width:700px){.hero-content .hotel-search{padding:18px!important}.hotel-search-grid{display:flex!important;flex-direction:column!important;gap:12px!important}.hotel-search-grid>*{width:100%!important;min-width:0!important}.hotel-search-grid .date-field{width:100%!important}.v3-hotel-grid{grid-template-columns:1fr!important;gap:16px!important}.v3-map{display:none}.v3-map.v3-map-mobile-active{display:block}.v3-map.v3-map-mobile-active .v3-map-body{min-height:60vh}.v3-toolbar{position:relative}.v3-filter-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;margin:0}.v3-filter-panel{min-height:100%;align-content:start}.v3-filter-actions{margin-top:auto}}

@media(max-width:700px){.hotel-search-grid>[hidden]{display:none!important}}

/* V3 service selector — same position on mobile and desktop. */
.v3-services{display:flex;align-items:stretch;gap:10px;margin:0 0 14px;max-width:100%}
.v3-service{display:flex;align-items:center;justify-content:center;gap:9px;flex:1;min-width:0;padding:13px 18px;border:1px solid rgba(237,255,244,.44);border-radius:15px;background:rgba(255,255,255,.10);color:#fff;font:inherit;font-weight:750;cursor:pointer;transition:background .12s ease}
.v3-service span:first-child{font-size:21px;line-height:1}
.v3-service.is-active{background:#f7f9f4;color:#123f33;border-color:#f7f9f4}
.v3-service:focus-visible{outline:3px solid #76e4b5;outline-offset:3px}
.v3-soon{padding:28px;border-radius:24px;background:#f7f9f4;color:#123f33;min-height:140px}
.v3-soon:not([hidden]){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
.v3-soon strong{font-size:22px}.v3-soon span{font-size:14px;color:#53746a}
#v3-panel-hotels[hidden],#v3-panel-soon[hidden]{display:none!important}
@media(max-width:700px){.v3-services{gap:8px;margin-bottom:12px}.v3-service{padding:12px 4px;flex-direction:column;gap:5px;border-radius:14px;font-size:12px}.v3-service span:first-child{font-size:22px}}

/* PATCH 2: map and filters powered by the existing hotel search response. */
.v3-map-body:has(.v3-map-surface){display:block;padding:0;text-align:left;min-height:320px}
.v3-map-surface{height:360px;width:100%;z-index:0}
.v3-mobile-map-switch{display:none;background:#fff;color:#123f33;border:1px solid #c8d9ce;border-radius:12px;padding:11px 14px;font-weight:700;cursor:pointer}
@media(max-width:700px){.v3-mobile-map-switch{display:inline-block}.v3-hotel-grid.v3-mobile-list-hidden{display:none!important}.v3-map.v3-map-mobile-active .v3-map-body:has(.v3-map-surface){min-height:60vh}.v3-map.v3-map-mobile-active .v3-map-surface{height:60vh}.v3-map.v3-map-mobile-active .v3-map-head{display:none}}

/* Keep site-wide image rules from altering Leaflet tiles and pins. */
.v3-map-surface.leaflet-container{position:relative;overflow:hidden;isolation:isolate}
.v3-map-surface .leaflet-tile{width:256px!important;height:256px!important;max-width:none!important;max-height:none!important;object-fit:fill!important}
.v3-map-surface .leaflet-marker-icon,.v3-map-surface .leaflet-marker-shadow{max-width:none!important;max-height:none!important;object-fit:initial!important}

/* Google Maps hotel popup */
.v3-map-hotel-popup{min-width:160px;max-width:240px;font:14px/1.5 system-ui,sans-serif;color:#123f36}
.v3-map-hotel-popup img{display:block;width:100%;max-height:115px;object-fit:cover;border-radius:7px;margin-bottom:6px}
.v3-map-hotel-popup strong{display:block;margin-bottom:5px}

/* PATCH 4: readable result heading and responsive filter count. */
#myresa-hotel-results .v3-results-heading{color:#f6fff9!important;text-shadow:0 1px 2px rgba(0,0,0,.18)}
#myresa-hotel-results .v3-results-note{color:#e1f3e9!important}
.v3-filter-actions .v3-apply{min-width:150px;white-space:nowrap;font-weight:700}
.v3-filter-actions{padding-top:2px}
.v3-filter-dialog .v3-filter-panel{gap:18px}
@media(max-width:700px){.v3-filter-actions{gap:8px}.v3-filter-actions .v3-apply{min-width:0}}

/* MyResa V3 mobile UX: edge-to-edge media and floating selection panels */
.shell>header .language-picker option{background:#fff!important;color:#173e35!important}
@media(max-width:700px){
 html,body{max-width:100%;overflow-x:clip}
 #myresa-hotel-results{width:100vw!important;max-width:none!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;padding:0!important;box-sizing:border-box!important}
 #myresa-hotel-results .v3-toolbar,#myresa-hotel-results .v3-results-heading,#myresa-hotel-results .v3-results-note{margin-left:16px!important;margin-right:16px!important}
 #myresa-hotel-results .v3-hotel-grid{width:100%!important;gap:18px!important}
 #myresa-hotel-results .v3-hotel-grid article{width:100%!important;max-width:none!important;border-radius:0!important;margin:0!important;box-shadow:none!important}
 #myresa-hotel-results .v3-hotel-grid article>div:first-child{width:100%!important;aspect-ratio:4/3!important;border-radius:0!important}
 #myresa-hotel-results .v3-hotel-grid article>div:first-child img{width:100%!important;height:100%!important;object-fit:cover!important}
 #myresa-hotel-results .v3-hotel-grid article>div:nth-child(2){padding:18px!important;background:#fff}
 #myresa-hotel-results .v3-map{width:100%!important;border:0!important;border-radius:0!important;margin-left:0!important;margin-right:0!important}
 #myresa-hotel-results .v3-map-surface{width:100%!important}
 .hero-content .hotel-search{max-width:none!important;width:100%!important}
 .hotel-search-grid .guests-panel:not([hidden]),#aylak-calendar:not([hidden]){position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100%!important;max-width:none!important;max-height:min(85dvh,760px)!important;overflow-y:auto!important;overscroll-behavior:contain;z-index:1001!important;box-sizing:border-box!important;margin:0!important;padding:18px 18px max(22px,env(safe-area-inset-bottom))!important;border-radius:24px 24px 0 0!important;background:#fff!important;box-shadow:0 -15px 70px #092d2860!important}
 #aylak-calendar .aylak-days button{min-height:44px}
 .hotel-search-grid .guests-panel[hidden],#aylak-calendar[hidden]{display:none!important}
 body.myresa-mobile-overlay-open::before{content:"";position:fixed;inset:0;background:rgba(6,30,25,.5);z-index:1000;pointer-events:auto}
 body.myresa-mobile-overlay-open{overflow:hidden}
}

/* MyResa V3: subtle mobile card corners, full-width photography retained. */
@media (max-width:700px){
 #myresa-hotel-results .v3-hotel-grid{
   width:100%!important;
   margin-left:0!important;
   margin-right:0!important;
   gap:14px!important;
 }
 #myresa-hotel-results .v3-hotel-grid article{
   border-radius:0!important;
   overflow:hidden!important;
   background:#fff!important;
 }
 #myresa-hotel-results .v3-hotel-grid article>div:first-child{
   border-radius:0!important;
   overflow:hidden!important;
 }
 #myresa-hotel-results .v3-hotel-grid article>div:nth-child(2){
   border-radius:0!important;
 }
}

.myresa-checkout {
  width: min(620px, calc(100% - 2rem));
  max-height: 90dvh;
  padding: 1.25rem;
  border: 1px solid #dbe7e3;
  border-radius: 16px;
  color: #193331;
}
.myresa-checkout::backdrop { background: #122b27a0; }
.myresa-checkout h2 { font-size: 1.35rem; margin: 0 4.5rem .75rem 0; }
.myresa-checkout-close { float: right; }
.myresa-choose-room,
.myresa-checkout button {
  margin: .3rem .3rem .3rem 0;
  padding: .55rem .75rem;
  border: 1px solid #397565;
  border-radius: 8px;
  background: #edf6f0;
  color: #193331;
  cursor: pointer;
}
.myresa-checkout button:disabled { opacity: .6; cursor: wait; }
.myresa-checkout-form fieldset {
  min-width: 0;
  margin: .75rem 0;
  border: 1px solid #dbe7e3;
  border-radius: 10px;
}
.myresa-checkout-form label { display: block; margin: .5rem 0; }
.myresa-checkout-form input:not([type=checkbox]):not([type=radio]) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: .45rem;
  border: 1px solid #a0b5ae;
  border-radius: 6px;
}
.myresa-checkout-form input[type=checkbox], .myresa-checkout-form input[type=radio] { margin: 0 .35rem; }
.myresa-checkout-guest + .myresa-checkout-guest { margin-top: .75rem; }

/* V4 visual-only homepage: quiet brand, search-first, no promotional sections. */
.shell>header{height:82px;min-height:82px}
.shell>header .nav{gap:0}
.shell>header .language-picker{appearance:none;-webkit-appearance:none;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;color:var(--ink)!important;padding:10px 4px!important;font-size:14px!important;font-weight:750!important;letter-spacing:.02em;min-width:42px;text-align:center;cursor:pointer}
.shell>header .language-picker:focus-visible{outline:2px solid #267d61!important;outline-offset:4px}
.hero{padding-bottom:clamp(32px,5vw,65px)!important}
.hero-heading{font-size:clamp(23px,2.5vw,32px)!important;letter-spacing:-.9px!important;font-weight:720!important}
.v3-service{transition:background .25s ease,color .25s ease,border-color .25s ease,transform .25s ease}
.v3-service:active{transform:scale(.985)}
.hero-content .hotel-search{box-shadow:0 16px 48px rgba(18,63,51,.075)!important}
footer{margin-top:clamp(22px,4vw,55px);align-items:center}
@media(max-width:700px){
 .shell>header{height:76px;min-height:76px}
 .hero{padding-top:8px!important;padding-bottom:32px!important}
 .hero-heading{font-size:clamp(20px,5.4vw,25px)!important;margin:0 0 12px!important}
 .v3-service{min-height:66px}
 footer{gap:12px;padding-top:20px;padding-bottom:26px}
}
@media(prefers-reduced-motion:reduce){.v3-service{transition:none!important}}

/* V5 visual-only: continuous soft fade and quiet install hint. */
html{background:#f2f8f2!important;min-height:100%}
body{min-height:100dvh;background:linear-gradient(180deg,#103f35 0px,#103f35 175px,#214d43 310px,#50796d 485px,#91b3a5 665px,#c6dfd1 860px,#e5f1e8 1060px,#f2f8f2 1290px,#f2f8f2 100%)!important;background-repeat:no-repeat!important;background-color:#f2f8f2!important}
.shell{min-height:100dvh;display:flex;flex-direction:column}
.shell main{flex:1;width:100%}
.shell>header .aylak-menu-toggle,#aylak-mobile-menu{display:none!important}
.shell>header .nav>a{display:none!important}
.shell>header .language-picker{color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important}
.myresa-home-tip{width:min(820px,100%);margin:34px auto 48px;padding:21px 24px;border:1px solid rgba(33,90,69,.12);border-radius:20px;background:rgba(245,251,245,.72);color:#21473b;box-shadow:0 10px 35px rgba(25,65,50,.035)}
.myresa-home-tip-kicker{font-size:10px;letter-spacing:.16em;font-weight:750;color:#54806c}
.myresa-home-tip-title{font-size:16px;font-weight:680;margin:8px 0 5px;line-height:1.35}
.myresa-home-tip-copy{font-size:13px;color:#607b6c;margin:0 0 10px;line-height:1.5}
.myresa-home-tip-details summary{display:inline-block;cursor:pointer;color:#1b7256;font-size:13px;font-weight:650;list-style:none;text-decoration:underline;text-underline-offset:3px}
.myresa-home-tip-details summary::-webkit-details-marker{display:none}
.myresa-home-tip-details summary:focus-visible{outline:2px solid #168665;outline-offset:4px}
.myresa-home-tip-steps{font-size:12px;line-height:1.6;color:#47665a;max-width:520px}.myresa-home-tip-steps p{margin:10px 0 0}
.shell footer{margin-top:0!important;border-color:rgba(40,90,65,.15);background:transparent!important}
@media(max-width:700px){body{background:linear-gradient(180deg,#103f35 0px,#103f35 155px,#214d43 280px,#527d70 430px,#98bcae 610px,#cde4d7 800px,#e7f2e9 1010px,#f2f8f2 1230px,#f2f8f2 100%)!important;background-repeat:no-repeat!important;background-color:#f2f8f2!important}.myresa-home-tip{margin:22px auto 30px;padding:18px 20px;border-radius:18px}.shell footer{padding-bottom:30px!important}}
@media(display-mode:standalone){.myresa-home-tip{display:none!important}}

/* V6: guided presentation; original form fields, IDs, calendar and UTP payload are retained. */
.myresa-home-tip{display:block!important;visibility:visible!important;box-sizing:border-box!important;max-width:calc(100% - 28px)!important;position:relative!important;z-index:1!important}
@media(display-mode:standalone){.myresa-home-tip{display:none!important}}
.hotel-search.myresa-guided .hotel-search-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;align-items:stretch!important}
.hotel-search.myresa-guided .hotel-search-grid>.destination-field,.hotel-search.myresa-guided .hotel-search-grid>.guest-field,.hotel-search.myresa-guided .hotel-search-grid>.residence-field{grid-column:1/-1!important}
.hotel-search.myresa-guided .hotel-search-grid>.date-field{grid-column:span 1!important}
.hotel-search.myresa-guided .hotel-search-grid>[data-guided-stage]{transition:opacity .28s ease,transform .28s ease,background .28s ease,padding .28s ease;min-width:0!important}
.hotel-search.myresa-guided .hotel-search-grid>.myresa-future{display:none!important}
.hotel-search.myresa-guided .hotel-search-grid>.myresa-complete{position:relative!important;display:block!important;background:rgba(222,236,226,.6);padding:10px 14px!important;border-radius:13px!important;cursor:pointer;min-height:49px!important;box-sizing:border-box!important}
.hotel-search.myresa-guided .hotel-search-grid>.myresa-complete>input:not([type=hidden]),.hotel-search.myresa-guided .hotel-search-grid>.myresa-complete>.search-control,.hotel-search.myresa-guided .hotel-search-grid>.myresa-complete>.aylak-date-trigger,.hotel-search.myresa-guided .hotel-search-grid>.myresa-complete>.aylak-hidden-date{display:none!important}
.hotel-search.myresa-guided .hotel-search-grid>.myresa-complete>span:first-child{display:block!important;font-size:11px!important;color:#537769!important;margin:0 0 3px!important}
.hotel-search.myresa-guided .hotel-search-grid>.myresa-complete .myresa-step-summary{display:block!important;color:#193e33!important;font-size:14px!important;font-weight:650!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hotel-search.myresa-guided .hotel-search-grid>.myresa-current .myresa-step-summary,.hotel-search.myresa-guided .hotel-search-grid>.myresa-future .myresa-step-summary{display:none!important}
.hotel-search.myresa-guided .hotel-search-grid>.myresa-current{animation:myresa-step-in .28s ease both}
@keyframes myresa-step-in{from{opacity:.6;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.hotel-search.myresa-guided #hotel-search-submit{display:none!important}
.hotel-search.myresa-guided.myresa-all-complete[data-step="3"] #hotel-search-submit{display:block!important;animation:myresa-step-in .28s ease both}
.hotel-search.myresa-guided #hotel-search-hint{display:none!important}
.hotel-search.myresa-guided .hotel-search-grid>.guests-panel:not([hidden]),.hotel-search.myresa-guided #aylak-calendar:not([hidden]){z-index:1002!important}
@media(max-width:700px){
 .hotel-search.myresa-guided .hotel-search-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .hotel-search.myresa-guided .hotel-search-grid>.date-field{width:100%!important}
 .hotel-search.myresa-guided .hotel-search-grid>.myresa-complete{min-height:46px!important}
 .hotel-search.myresa-guided .hotel-search-grid>.myresa-current.date-field{overflow:visible!important}
}
@media(prefers-reduced-motion:reduce){.hotel-search.myresa-guided .hotel-search-grid>[data-guided-stage]{transition:none!important}.hotel-search.myresa-guided .hotel-search-grid>.myresa-current,.hotel-search.myresa-guided.myresa-all-complete #hotel-search-submit{animation:none!important}}

/* V7: measured, calm transitions and mobile legibility. */
.hotel-search.myresa-guided .hotel-search-grid{align-content:start!important}
.hotel-search.myresa-guided .hotel-search-grid>.myresa-current{animation:myresa-step-in-v7 290ms cubic-bezier(.22,1,.36,1) both!important}
@keyframes myresa-step-in-v7{from{opacity:.12;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.hotel-search.myresa-guided .hotel-search-grid>.myresa-complete{transition:background-color 290ms ease,padding 290ms ease,opacity 290ms ease!important}
.hotel-search.myresa-guided .hotel-search-grid>.myresa-complete>span:first-child{font-size:12px!important;line-height:1.3!important}
.hotel-search.myresa-guided .hotel-search-grid>.myresa-complete .myresa-step-summary{font-size:15px!important;line-height:1.35!important}
.hotel-search.myresa-guided .hotel-search-grid>.myresa-current>span:first-child{font-size:14px!important;line-height:1.4!important}
@media(max-width:700px){
 .hotel-search.myresa-guided{padding-bottom:20px!important}
 .hotel-search.myresa-guided .hotel-search-grid>.myresa-complete{padding:11px 13px!important;min-height:54px!important}
 .myresa-home-tip{margin-top:38px!important;margin-bottom:30px!important}
}
@media(prefers-reduced-motion:reduce){
 .hotel-search.myresa-guided .hotel-search-grid>.myresa-current{animation:none!important}
 .hotel-search.myresa-guided .hotel-search-grid>.myresa-complete{transition:none!important}
}

/* V8: consistent install hint in normal browser and non-jarring guided transition. */
.myresa-home-tip{display:block!important;visibility:visible!important;opacity:1!important;min-height:0!important}
@media(max-width:700px){.myresa-home-tip{width:calc(100% - 28px)!important;margin:32px auto 24px!important;clear:both!important}.shell main{overflow:visible!important}}
@media(display-mode:standalone){.myresa-home-tip{display:none!important}}
@media(prefers-reduced-motion:reduce){.hotel-search.myresa-guided .hotel-search-grid>.myresa-current{animation:none!important}}

/* V9: tappable hotel cards and integrated room-rate selection */
.v3-hotel-grid .myresa-hotel-tappable{cursor:pointer;transition:box-shadow .25s ease,transform .25s ease}
.v3-hotel-grid .myresa-hotel-tappable:focus-visible{outline:3px solid #128568;outline-offset:3px}
.v3-hotel-grid .myresa-hotel-tappable:hover{box-shadow:0 10px 28px #123e3222!important}
.myresa-inline-hotel{grid-column:1/-1;background:#f8faf6;border:1px solid #dce9e2;border-radius:20px;padding:clamp(16px,3vw,28px);color:#173d33;animation:myresa-hotel-enter .28s ease both;min-width:0}
.myresa-inline-hotel-head{display:flex;justify-content:space-between;gap:12px;align-items:start}
.myresa-inline-hotel h3{font-size:clamp(20px,3vw,28px);line-height:1.25;margin:0}
.myresa-inline-hotel h4{font-size:17px;margin:22px 0 12px}
.myresa-inline-hotel h5{font-size:16px;margin:0 0 10px}
.myresa-inline-close{background:transparent;border:0;color:#173d33;font-size:28px;cursor:pointer;padding:0 8px;line-height:1}
.myresa-hotel-location,.myresa-hotel-dates{font-size:14px;color:#526b61;margin:8px 0}
.myresa-hotel-detail-image{display:block;width:100%;max-height:290px;object-fit:cover;border-radius:14px;margin-top:14px}
.myresa-room-group{border:1px solid #dce9e2;border-radius:14px;background:white;padding:14px;margin:12px 0}
.myresa-room-rate{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #edf1ed}
.myresa-rate-info{display:flex;flex-direction:column;gap:5px;font-size:14px;min-width:0}
.myresa-rate-info strong{font-size:17px}
.myresa-rate-select{background:#118568;color:white;border:0;border-radius:10px;padding:11px 18px;font-weight:600;cursor:pointer;flex-shrink:0}
@keyframes myresa-hotel-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.myresa-room-rate{align-items:start}.myresa-inline-hotel{margin:0}.myresa-rate-select{padding:10px 13px}}
@media(prefers-reduced-motion:reduce){.myresa-inline-hotel{animation:none}.v3-hotel-grid .myresa-hotel-tappable{transition:none}}

/* V10: Hotel page is separate from search results */
#myresa-hotel-page[hidden]{display:none!important}
body.myresa-viewing-hotel .myresa-home-tip{display:none!important}
#myresa-hotel-page{padding:20px clamp(16px,5vw,48px) 60px;max-width:1100px;margin:0 auto;color:#173d33}
.myresa-hotel-page-content{background:#f8faf6;border-radius:24px;padding:clamp(18px,4vw,36px);min-height:60vh}
.myresa-hotel-page-back{background:none;border:0;color:#126d58;padding:8px 0;margin-bottom:18px;cursor:pointer}
.myresa-hotel-page-content h1{font-size:clamp(24px,4vw,36px);line-height:1.2;margin:0 0 8px}
.myresa-hotel-page-location{font-size:14px;color:#58736a;margin:0 0 18px}
.myresa-hotel-page-image{width:100%;height:clamp(210px,45vw,430px);object-fit:cover;border-radius:18px;display:block;margin:0 0 18px}
.myresa-hotel-page-dates{font-size:14px;color:#58736a;margin:0 0 22px}
.myresa-hotel-page-content h2{font-size:21px;margin:22px 0 16px}
.myresa-hotel-room{border:1px solid #dbe6df;border-radius:16px;background:white;margin:12px 0;overflow:hidden}
.myresa-hotel-room-summary{display:flex;align-items:center;justify-content:space-between;gap:15px;cursor:pointer;padding:20px;font-size:17px;font-weight:600;list-style:none}
.myresa-hotel-room-summary::-webkit-details-marker{display:none}
.myresa-hotel-room-summary small{white-space:nowrap;font-size:14px;color:#137b64;font-weight:600}
.myresa-hotel-room[open] .myresa-hotel-room-summary{border-bottom:1px solid #e6eee9}
.myresa-hotel-room-rates{padding:6px 12px 12px}
.myresa-hotel-rate{display:flex;justify-content:space-between;align-items:center;gap:14px;width:100%;padding:18px 12px;background:transparent;color:#173d33;border:0;border-bottom:1px solid #e9efeb;text-align:left;cursor:pointer;font:inherit}
.myresa-hotel-rate:last-child{border-bottom:0}
.myresa-hotel-rate:hover,.myresa-hotel-rate:focus-visible{background:#edf6f0;border-radius:10px}
.myresa-hotel-rate strong{white-space:nowrap;color:#087f66}
@media(max-width:700px){#myresa-hotel-page{padding:14px 14px 35px}.myresa-hotel-page-content{padding:16px}.myresa-hotel-room-summary{padding:16px;font-size:15px}.myresa-hotel-rate{font-size:14px}}

/* V10 refinement: edge-to-edge results on mobile and natural hotel page hierarchy. */
@media(max-width:700px){
  /* Results width is owned by the original mobile edge-to-edge rule above. */
  #myresa-hotel-results .v3-hotel-grid{grid-template-columns:minmax(0,1fr)!important}
  #myresa-hotel-results .v3-hotel-grid article{width:100%!important;box-sizing:border-box!important}
  #myresa-hotel-page{padding:0 12px 40px!important;width:100%;box-sizing:border-box}
  .myresa-hotel-page-content{padding:14px!important;border-radius:20px}
  .myresa-hotel-page-content h1{font-size:23px!important;line-height:1.25}
  .myresa-hotel-room-summary{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
  .myresa-hotel-room-summary small{white-space:normal}
  .myresa-hotel-rate{min-height:64px;gap:8px}
}
.myresa-hotel-page-image{margin-bottom:20px}
.myresa-hotel-room-summary:focus-visible,.myresa-hotel-page-back:focus-visible{outline:3px solid #128568;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.myresa-hotel-page-content,.myresa-hotel-room{animation:none!important;transition:none!important}}

/* V11: one active view; use the exact mobile geometry of result cards. */
body.myresa-viewing-hotel .shell>header,
body.myresa-viewing-hotel .shell main>.hero,
body.myresa-viewing-hotel #myresa-hotel-results,
body.myresa-viewing-hotel .myresa-home-tip{display:none!important}
#myresa-hotel-page[hidden],#myresa-hotel-results[hidden],.shell main>.hero[hidden]{display:none!important}
@media(max-width:700px){
 #myresa-hotel-page{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;box-sizing:border-box!important}
 #myresa-hotel-page .myresa-hotel-page-content{width:100%!important;max-width:none!important;box-sizing:border-box!important;margin:0!important;padding:0 0 24px!important;background:#f8faf6;border-radius:0!important;min-height:60vh}
 #myresa-hotel-page .myresa-hotel-page-image{width:100%!important;height:auto!important;aspect-ratio:4/3!important;object-fit:cover!important;border-radius:0!important;margin:0 0 18px!important}
 #myresa-hotel-page .myresa-hotel-page-back,#myresa-hotel-page .myresa-hotel-page-content>h1,#myresa-hotel-page .myresa-hotel-page-location,#myresa-hotel-page .myresa-hotel-page-dates,#myresa-hotel-page .myresa-hotel-page-content>h2{margin-left:18px!important;margin-right:18px!important}
 #myresa-hotel-page .myresa-hotel-room{margin:12px 18px!important}
}

/* V12: results are a separate view, with a compact editable search summary. */
#myresa-search-summary[hidden]{display:none!important}
#myresa-search-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;width:calc(100% - 24px);max-width:1120px;margin:12px auto 8px;padding:13px 16px;border:1px solid #dce9df;border-radius:15px;background:#f8fbf7;color:#173f34;text-align:left;cursor:pointer;font:inherit;box-shadow:0 2px 10px rgba(15,55,40,.035)}
.myresa-summary-copy{display:flex;flex-direction:column;min-width:0;gap:4px}.myresa-summary-main{font-size:15px;line-height:1.3;overflow-wrap:anywhere}.myresa-summary-details{font-size:12px;color:#60776b;line-height:1.35}.myresa-summary-edit{font-size:24px;flex-shrink:0;color:#167b61}
#myresa-search-summary:focus-visible{outline:3px solid #118568;outline-offset:2px}
body.myresa-viewing-results .shell>header,body.myresa-viewing-results .shell main>.hero,body.myresa-viewing-results .myresa-home-tip{display:none!important}
body.myresa-viewing-hotel #myresa-search-summary{display:none!important}
body.myresa-viewing-results #myresa-hotel-results{margin-top:8px!important}
/* Suggestions should layer above informational content while editing. */
.destination-field{position:relative;z-index:15}
.destination-field:focus-within{z-index:60}
.destination-field .aylak-suggestions,.destination-field .destination-suggestions{z-index:100!important}
.myresa-home-tip{z-index:0!important}
@media(max-width:700px){#myresa-search-summary{width:calc(100% - 24px);margin:10px 12px 6px;border-radius:14px}}
@media(prefers-reduced-motion:no-preference){#myresa-search-summary:not([hidden]){animation:myresa-summary-in 260ms ease-out both}@keyframes myresa-summary-in{from{opacity:.5;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}}

/* V13: isolated, results-only floating controls. No changes to card widths or global selectors. */
#myresa-results-floating[hidden]{display:none}
#myresa-results-floating{position:fixed;top:env(safe-area-inset-top,0px);left:0;right:0;z-index:850;display:flex;align-items:center;gap:8px;box-sizing:border-box;padding:8px max(12px,env(safe-area-inset-left,0px)) 8px max(12px,env(safe-area-inset-right,0px));background:#123f33;box-shadow:0 5px 18px rgba(0,0,0,.16)}
#myresa-results-floating button{font:inherit;cursor:pointer;min-height:46px;border-radius:12px;border:1px solid rgba(255,255,255,.25)}
#myresa-results-floating .myresa-float-search{min-width:0;flex:1;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;background:#f8fbf7;color:#173f34;text-align:left;font-size:13px;font-weight:650}
#myresa-results-floating .myresa-float-query{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#myresa-results-floating .myresa-float-filter,#myresa-results-floating .myresa-float-map{flex:0 0 46px;background:#245649;color:#fff;font-size:21px}
#myresa-results-floating button:focus-visible{outline:3px solid #76e4b5;outline-offset:2px}
#myresa-results-floating .myresa-float-map[hidden]{display:none}
@media(min-width:701px){#myresa-results-floating{max-width:1240px;left:50%;right:auto;transform:translateX(-50%);width:100%}}

/* Hotel details: supplier-provided gallery and facts only. */
.myresa-hotel-gallery{position:relative;overflow:hidden;border-radius:18px}
.myresa-hotel-gallery .myresa-hotel-page-image{width:100%;display:block;object-fit:cover}
.myresa-hotel-gallery-controls{position:absolute;bottom:12px;right:12px;display:flex;align-items:center;gap:10px;padding:5px 7px;border-radius:24px;background:rgba(13,48,42,.82);color:white;font-size:12px}
.myresa-hotel-gallery-controls button{background:transparent;border:0;color:white;font-size:24px;cursor:pointer;min-width:32px;min-height:32px}
.myresa-hotel-facts{margin:18px 0 22px;color:inherit}
.myresa-hotel-facts h2{font-size:18px;margin:0 0 9px}
.myresa-hotel-facts p{font-size:14px;line-height:1.65;white-space:pre-line}
.myresa-hotel-amenities{display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:0;list-style:none}
.myresa-hotel-amenities li{border:1px solid #d7e5e0;border-radius:12px;padding:8px 12px;font-size:13px}

/* Hotel detail information layout: mobile first, no changes to room rates. */
.myresa-hotel-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.myresa-hotel-shortcuts button,.myresa-hotel-shortcuts a{border:1px solid #b9d5cb;border-radius:20px;background:transparent;color:#176750;font:inherit;font-size:12px;padding:8px 12px;text-decoration:none;cursor:pointer}
.myresa-hotel-gallery{position:relative}
.myresa-hotel-gallery .myresa-hotel-page-image{margin-bottom:0!important}
.myresa-hotel-gallery-controls{z-index:2;bottom:12px;right:12px}
.myresa-hotel-mosaic{display:none}
.myresa-hotel-facts{padding:18px;border:1px solid #dbe6df;border-radius:16px;background:#fff;margin:18px 0}
.myresa-hotel-facts .myresa-hotel-description{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line}
.myresa-hotel-facts.is-expanded .myresa-hotel-description{display:block;overflow:visible}
.myresa-hotel-show-more{display:inline-block;margin-top:8px;border:0;background:none;color:#137b64;font:inherit;font-size:13px;font-weight:600;cursor:pointer;padding:5px 0}
.myresa-hotel-amenities-section:not(.is-expanded) .myresa-hotel-amenities li:nth-child(n+7){display:none}
.myresa-hotel-policies{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:8px;font-size:13px}
.myresa-hotel-policies dt{text-transform:capitalize;font-weight:600}.myresa-hotel-policies dd{margin:0}
.myresa-hotel-photo-viewer{max-width:min(96vw,1000px);max-height:95vh;border:0;border-radius:12px;padding:12px;background:#132c28;color:#fff}
.myresa-hotel-photo-viewer::backdrop{background:rgba(0,0,0,.86)}
.myresa-hotel-photo-viewer img{display:block;max-width:90vw;max-height:80vh;object-fit:contain;margin:auto}
.myresa-hotel-photo-viewer button{border:0;background:transparent;color:inherit;padding:8px 14px;cursor:pointer;font-size:16px}
.myresa-hotel-photo-viewer>div{display:flex;justify-content:center;align-items:center;gap:12px}
@media(min-width:801px){.myresa-hotel-gallery{display:none}.myresa-hotel-mosaic{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:repeat(2,180px);gap:4px;overflow:hidden;border-radius:18px;position:relative}.myresa-hotel-mosaic img{width:100%;height:100%;object-fit:cover;cursor:pointer}.myresa-hotel-mosaic img:first-child{grid-row:span 2}.myresa-hotel-mosaic>button{position:absolute;bottom:12px;right:12px;border:0;border-radius:18px;padding:10px 14px;background:#fff;color:#173d33;cursor:pointer}}
@media(max-width:800px){.myresa-hotel-gallery{border-radius:0}.myresa-hotel-facts{margin:16px 18px}.myresa-hotel-shortcuts{margin:0 18px 14px}.myresa-hotel-mosaic{display:none}}

/* Hotel detail overlays — isolated from the results map and booking flow. */
.myresa-hotel-map-dialog{width:min(1000px,96vw);height:min(800px,90dvh);max-width:none;max-height:none;border:0;border-radius:18px;padding:0;overflow:hidden;background:#f8fbf8;color:#123f36}
.myresa-hotel-map-dialog::backdrop{background:rgba(0,0,0,.65)}
.myresa-hotel-map-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px}
.myresa-hotel-map-head button{border:1px solid #cbdcd3;background:white;border-radius:9px;padding:9px 12px;cursor:pointer}
.myresa-hotel-map-surface{height:calc(100% - 62px);min-height:200px;display:flex;align-items:center;justify-content:center}
.myresa-hotel-map-surface>div{width:100%;height:100%}
.myresa-hotel-photo-viewer{width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border-radius:0!important;background:#0b1715!important;display:flex;flex-direction:column;justify-content:center;align-items:center;overscroll-behavior:contain}
.myresa-hotel-photo-viewer:not([open]){display:none}
.myresa-hotel-photo-viewer img{max-width:100vw!important;max-height:calc(100dvh - 64px)!important;width:auto;height:auto;object-fit:contain}
.myresa-photo-viewer-actions{position:absolute;z-index:3;top:0;left:0;right:0;min-height:56px;display:flex;align-items:center;justify-content:center;gap:14px;background:linear-gradient(rgba(0,0,0,.55),transparent)}
.myresa-photo-viewer-actions button{min-width:44px;min-height:44px}
.myresa-hotel-gallery .myresa-hotel-page-image{cursor:zoom-in}
@media(max-width:800px){.myresa-hotel-map-dialog{width:100vw;height:100dvh;border-radius:0}.myresa-photo-viewer-actions{justify-content:space-around}}

/* Hotel-specific map: preserve a separate modal above the mobile results map. */
.myresa-hotel-map-dialog[open]{position:fixed!important;inset:0!important;margin:auto!important;z-index:2147483000!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important}
.myresa-hotel-map-dialog .myresa-hotel-map-head{flex:0 0 auto}
.myresa-hotel-map-dialog .myresa-hotel-map-surface{flex:1 1 auto;height:auto!important;min-height:0!important;display:block!important}
.myresa-hotel-map-dialog .myresa-hotel-map-surface>div{width:100%;height:100%}
@media(max-width:800px){.myresa-hotel-map-dialog[open]{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}}

/* MyResa Checkout Phase 2: quote-only layout; no payment actions enabled. */
.myresa-checkout{box-sizing:border-box;width:min(980px,calc(100% - 32px));max-width:980px;max-height:min(92dvh,1000px);padding:clamp(20px,3vw,38px);border-radius:22px;overflow-y:auto;box-shadow:0 24px 85px #092a233b}
.myresa-checkout h2{font-size:clamp(22px,2.5vw,30px);margin:0 100px 18px 0}
.myresa-checkout-close{position:sticky;top:0;float:right;z-index:3;background:#fff!important}
.myresa-checkout-summary{background:#f2f8f4;border:1px solid #dcebe1;border-radius:16px;padding:18px 20px;margin:8px 0 12px}
.myresa-checkout-stay{margin:0 0 6px;font-size:14px;color:#45665b}
.myresa-checkout-total{display:block;font-size:clamp(25px,3vw,34px);color:#163d31;margin-top:10px}
.myresa-quote-expiry{font-size:14px;font-weight:700;color:#217558;margin:10px 0}
.myresa-quote-expiry.is-expired{color:#a34c30}
.myresa-checkout-section{padding:20px 0;border-top:1px solid #e2ebe6}
.myresa-checkout-section h3{font-size:18px;margin:0 0 14px;color:#193d32}
.myresa-cancellation-terms{margin:8px 0 16px;padding-left:23px;line-height:1.6;font-size:14px}
.myresa-checkout-accept{display:flex!important;align-items:flex-start;gap:10px;line-height:1.45;font-size:14px;font-weight:550;margin:14px 0!important;cursor:pointer}
.myresa-checkout-accept input{margin:3px 0!important;width:18px;height:18px;flex:0 0 18px;accent-color:#227e5b}
.myresa-room-fieldset{padding:16px!important;margin:12px 0!important}
.myresa-room-fieldset legend{font-weight:700;padding:0 6px}
.myresa-guest-name-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.myresa-checkout-guest{padding:10px 0}
.myresa-checkout-guest strong{display:block;margin-bottom:8px}
.myresa-checkout-form input:not([type=checkbox]):not([type=radio]),.myresa-checkout-section>label>input:not([type=checkbox]){width:100%;box-sizing:border-box;min-height:44px;padding:10px 12px;border:1px solid #a9c0b5;border-radius:9px;font-size:16px}
.myresa-checkout-section>label:not(.myresa-checkout-accept){display:block;margin:10px 0 16px}
.myresa-checkout-primary{width:100%;min-height:48px;font-weight:700}
.myresa-checkout-footnote{font-size:12px;color:#60786c;margin:6px 0}
@media(max-width:650px){.myresa-checkout{width:100%;max-width:100%;max-height:100dvh;height:100dvh;margin:0;border-radius:0;padding:18px 18px 34px}.myresa-checkout h2{font-size:23px}.myresa-guest-name-grid{grid-template-columns:1fr;gap:0}.myresa-checkout-section{padding:16px 0}.myresa-checkout-summary{padding:15px}}

/* Checkout UX refinement: stable header, single explicit agreement, compact sections. */
.myresa-checkout{padding-top:0!important;scroll-padding-top:100px}
.myresa-checkout-header{position:sticky;top:0;z-index:12;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 calc(-1 * clamp(20px,3vw,38px)) 12px;padding:22px clamp(20px,3vw,38px) 14px;background:#fff;border-bottom:1px solid #e2ebe6}
.myresa-checkout-header h2{margin:0!important}
.myresa-checkout-header-copy{min-width:0}
.myresa-checkout-header-compact{display:none;font-size:13px;color:#4b7164;margin-top:4px}
.myresa-checkout-header.is-compact .myresa-checkout-header-compact{display:block}
.myresa-checkout-close{position:static!important;float:none!important;flex:0 0 auto;margin:0!important}
.myresa-checkout-section{padding:15px 0}
.myresa-checkout-guest{padding:6px 0}
.myresa-room-fieldset{padding:12px!important;margin:8px 0!important}
.myresa-checkout-accept{margin:10px 0!important}
.myresa-checkout-agreement{padding:13px 14px;border:1px solid #d7e6de;border-radius:12px;background:#f6faf7}
.myresa-checkout-agreement a{color:#176c55;text-decoration:underline;text-underline-offset:3px;font-weight:700}
.myresa-checkout-nonref{padding:12px 14px;border:1px solid #e7c9a9;border-radius:10px;background:#fff8ef;color:#804621;font-size:14px;line-height:1.5}
.myresa-checkout-policy{scroll-margin-top:110px}
.myresa-quote-expiry{margin:8px 0 0}
.myresa-checkout-summary{margin-top:0}
@media(max-width:650px){.myresa-checkout-header{margin-left:-18px;margin-right:-18px;padding:16px 18px 12px}.myresa-checkout-header h2{font-size:21px}.myresa-checkout-section{padding:13px 0}}

/* Room and rate information parity with UTP. */
.myresa-room-header{padding:20px;border-bottom:1px solid #e6eee9}.myresa-room-header h3{margin:0 0 5px;font-size:19px;color:#173d33}.myresa-room-header small,.myresa-room-conditions small,.myresa-room-price small{color:#526b62;font-size:12px}.myresa-room-rate-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:16px;padding:16px 8px;border-bottom:1px solid #e9efeb}.myresa-room-rate-row:last-child{border-bottom:0}.myresa-room-conditions,.myresa-room-price{display:flex;flex-direction:column;gap:5px;min-width:0}.myresa-room-policy,.myresa-room-special{font-size:13px;color:#17654f}.myresa-room-price{text-align:right}.myresa-room-price strong{color:#087f66;white-space:nowrap}.myresa-room-price del{font-size:12px;color:#526b62}.myresa-room-choose{background:#086d59;color:white;border:0;border-radius:10px;padding:12px 16px;font:inherit;font-weight:600;cursor:pointer}.myresa-room-choose:disabled{opacity:.5;cursor:not-allowed}.myresa-room-images{display:flex;gap:8px;overflow-x:auto;padding:12px}.myresa-room-images img{width:140px;height:90px;object-fit:cover;border-radius:8px;flex:none}@media(max-width:700px){.myresa-room-rate-row{grid-template-columns:minmax(0,1fr) auto;gap:10px}.myresa-room-choose{grid-column:1/-1;width:100%;min-height:44px}.myresa-room-header{padding:15px}.myresa-room-header h3{font-size:16px}}
