/* =========================================================
   AAAF Moldova Park — Stay pages (/stay and /stay/{slug})
   Only what style.css and pages.css do not already cover.
   ========================================================= */

/* The header is fixed, so in-page anchors need a landing offset
   (footer and home page link to stay#packages). */
#search,#rooms,#packages{scroll-margin-top:110px}

/* ---------- Availability search bar ---------- */
.stay-search{position:relative;z-index:5;margin-top:-60px}
.stay-search-card{padding:26px 28px}
.stay-search-title{margin-bottom:18px;font-size:20px;font-weight:800;letter-spacing:-.025em}
.stay-search-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:14px;align-items:end}
.stay-search-grid .btn{height:52px}
.stay-search-note{display:flex;align-items:center;gap:9px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line);font-size:13.5px;color:var(--muted)}
.stay-search-note .i{width:17px;height:17px;color:var(--green)}

/* ---------- Accommodation rows ---------- */
.stay-rows{display:flex;flex-direction:column;gap:22px}
.stay-row{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);overflow:hidden;border-radius:24px;background:#fff;border:1px solid var(--line);transition:box-shadow .3s,transform .3s}
.stay-row:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.stay-row-media{position:relative;min-height:340px;overflow:hidden}
.stay-row-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.9) contrast(1.04);transition:transform .8s ease}
.stay-row:hover .stay-row-media img{transform:scale(1.04)}
.stay-row-badge{position:absolute;top:16px;left:16px;display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:rgba(10,12,11,.55);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;font-size:12px;font-weight:700;letter-spacing:.02em}
.stay-row-badge .i{width:15px;height:15px;color:var(--sand)}
.stay-row-body{display:flex;flex-direction:column;padding:36px 38px}
.stay-row-kicker{font-size:11.5px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:var(--green)}
.stay-row-body h3{margin-top:10px;font-size:clamp(26px,2.4vw,32px);font-weight:800;line-height:1.1;letter-spacing:-.035em}
.stay-row-body h3 a:hover{color:var(--green)}
.stay-row-fig{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;margin-top:16px}
.stay-row-fig strong{font-size:42px;font-weight:800;line-height:1;letter-spacing:-.05em}
.stay-row-fig small{font-size:22px;letter-spacing:-.03em}
.stay-row-fig em{font-style:normal;font-size:14px;font-weight:600;color:var(--muted)}
.stay-row-lead{margin-top:14px;max-width:54ch;font-size:15.5px;line-height:1.6;color:var(--muted)}
.stay-row-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.stay-row-list li{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:999px;background:var(--cream);font-size:13px;font-weight:600}
.stay-row-list .i{width:15px;height:15px;color:var(--green);stroke-width:2.4}
/* Enquiry line above, buttons below — the same shape in every row, whatever the
   length of the note. Side by side it flipped between rows and languages. */
.stay-row-foot{display:flex;flex-direction:column;align-items:flex-start;gap:18px;margin-top:auto;padding-top:28px}
.stay-row-price{font-size:13px;font-weight:600;line-height:1.2;color:var(--muted)}
.stay-row-price strong{display:block;margin-top:4px;font-size:28px;font-weight:800;letter-spacing:-.035em;color:var(--ink)}
.stay-row-price span{font-size:14px;font-weight:600;color:var(--muted)}
/* Qiymət yerinə sorğu / Enquiry instead of a rate */
.stay-row-request{max-width:46ch}
.stay-row-request strong{font-size:24px}
.stay-row-request span{display:block;margin-top:8px;font-size:13.5px;font-weight:600;line-height:1.5}
.stay-row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px;margin:0}
.stay-row-actions .link-arrow{min-height:44px}

/* Image on the right for every second row */
.stay-row--flip .stay-row-media{grid-area:1/2/2/3}
.stay-row--flip .stay-row-body{grid-area:1/1/2/2}

/* The Presidential Suite gets the sand treatment */
.stay-row--featured{background:linear-gradient(160deg,#E5D6B8 0%,#C9B38B 100%);border:0;color:var(--green-deep)}
.stay-row--featured .stay-row-kicker{color:var(--green)}
.stay-row--featured .stay-row-lead,.stay-row--featured .stay-row-price{color:rgba(19,39,27,.7)}
.stay-row--featured .stay-row-price strong{color:var(--green-deep)}
.stay-row--featured .stay-row-list li{background:rgba(255,255,255,.55)}
.stay-row--featured .stay-row-body h3 a:hover{color:var(--green-deep);opacity:.75}

/* ---------- Package price ---------- */
/* margin-top:auto on the price (not the button) so "On request" and the button
   line up across all four cards, however many chips sit above them. */
.pkg .pkg-price{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:auto 0 22px}
.pkg .pkg-price strong{font-size:26px;font-weight:800;letter-spacing:-.035em;color:var(--ink)}
.pkg .pkg-price span{font-size:13px;font-weight:600;color:var(--muted)}
.pkg .pkg-price--request strong{font-size:22px;color:var(--green)}
.pkg .pkg-cta{margin-top:0;align-self:flex-start}

/* ---------- Included with every stay ---------- */
.stay-included .split-media{aspect-ratio:5/5.4}
.stay-included .tick-list{max-width:52ch}

/* ---------- FAQ ---------- */
.stay-faq{max-width:900px}

/* ---------- Detail: gallery head ---------- */
.stay-detail-top{padding:118px 0 0}
.stay-detail .detail{padding:40px 0 0}
.stay-detail-head{margin-bottom:44px}
.stay-detail-kicker{color:var(--green)}
.stay-detail-head h1{margin-top:12px;font-size:clamp(34px,4.4vw,56px);font-weight:800;line-height:1.02;letter-spacing:-.045em}
.stay-detail-meta{display:flex;flex-wrap:wrap;gap:10px 28px;margin-top:20px;font-size:14.5px;color:var(--muted)}
.stay-detail-meta>span{display:inline-flex;align-items:center;gap:9px}
.stay-detail-meta .i{width:17px;height:17px;color:var(--green)}
.stay-detail-meta strong{margin-right:2px;font-weight:800;color:var(--ink)}
.stay-detail-lead{margin-top:20px;max-width:60ch}
.stay-detail-text{max-width:68ch;font-size:16px;line-height:1.65;color:var(--ink-2)}
.stay-detail-text+.stay-detail-text{margin-top:14px}

/* The shared amenity chips sit on a cream page here, so they need their own card */
.stay-detail .amenities li{background:#fff;border:1px solid var(--line)}

/* ---------- Detail: house rules ---------- */
.policy-list>div{display:grid;grid-template-columns:220px minmax(0,1fr);gap:10px 20px;padding:15px 0;border-bottom:1px solid var(--line)}
.policy-list>div:first-child{padding-top:0}
.policy-list>div:last-child{border-bottom:0;padding-bottom:0}
.policy-list dt{font-size:15px;font-weight:700}
.policy-list dd{font-size:15px;color:var(--ink-2)}

/* ---------- Detail: booking box ---------- */
/* minmax(0) everywhere: two date inputs side by side must never widen the column (390px overflow) */
.stay-detail .detail{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
.aside-form{display:flex;flex-direction:column;gap:12px;margin-top:18px}
.aside-form input,.aside-form select{min-width:0}
.aside-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.detail-price--request{flex-wrap:wrap}
.detail-price--request strong{font-size:28px;color:var(--green)}
.detail-price--request span{width:100%;margin-top:2px}
.stay-enquiry .aside-submit{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%}
.aside-meta{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.aside-meta .i{width:16px;height:16px;color:var(--green)}

/* ---------- Detail: add-ons ---------- */
.addons{padding:var(--section) 0 64px}
.addon-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.addon{display:flex;align-items:center;gap:16px;padding:20px 22px;border-radius:20px;background:#fff;border:1px solid var(--line);transition:box-shadow .3s,transform .3s}
.addon:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.addon-icon{display:grid;place-items:center;flex:none;width:50px;height:50px;border-radius:15px;background:var(--green);color:var(--sand)}
.addon-icon .i{width:22px;height:22px}
.addon>div{min-width:0}
.addon h3{font-size:17px;font-weight:800;letter-spacing:-.02em}
.addon p{margin-top:3px;font-size:14px;font-weight:600;color:var(--muted)}
.addon .btn{flex:none;margin-left:auto}
.addon .btn .i{width:15px;height:15px}
.addon .btn-ghost:hover,.stay-missing .btn-ghost:hover{background:var(--ink);color:#fff}

/* ---------- Detail: other stays + missing stay ---------- */
.stay-others .stay-card{min-height:400px}
.stay-missing{padding:170px 0 var(--section)}

@media (min-width:861px){
  .stay-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (max-width:1100px){
  .stay-search-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stay-search-grid .btn{grid-column:1/-1;width:100%}
  .stay-row{grid-template-columns:minmax(0,1fr)}
  .stay-detail .detail{grid-template-columns:minmax(0,1fr)}
  /* pages.css gives the first tile 300px inside a 220px row — give the row the same height */
  .stay-detail-top .gallery{grid-template-rows:300px 220px}
  .stay-row-media,.stay-row--flip .stay-row-media{grid-area:auto;min-height:280px}
  .stay-row--flip .stay-row-body{grid-area:auto}
  .stay-detail-top{padding:104px 0 0}
  .addon-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:860px){
  .stay-search{margin-top:-44px}
  .stay-search-card{padding:20px}
  .stay-search-title{font-size:18px;margin-bottom:14px}
  .stay-search-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .stay-row{border-radius:20px}
  .stay-row-media{min-height:220px}
  .stay-row-body{padding:26px 22px}
  .stay-row-fig strong{font-size:34px}
  .stay-row-foot{padding-top:22px}
  .stay-row-foot .btn{width:100%}
  .stay-row-price strong{font-size:24px}
  .stay-row-request{max-width:none}
  .stay-row-request strong{font-size:22px}
  .stay-row-actions{width:100%;gap:14px}
  .pkg .pkg-cta{align-self:stretch;justify-content:center;height:44px}
  .detail-price--request strong{font-size:24px}
  .stay-detail-top{padding:92px 0 0}
  .stay-detail .detail{padding:28px 0 0}
  .stay-detail-head{margin-bottom:34px}
  .stay-detail-meta{gap:8px 20px;font-size:14px}
  .policy-list>div{grid-template-columns:1fr;gap:4px}
  .addon-grid{grid-template-columns:1fr}
  .addon{padding:18px}
  .addon .btn{height:44px}
  .stay-detail-top .gallery{grid-template-rows:230px 160px;gap:10px}
  .stay-detail-top .gallery figure:first-child{height:230px}
  .addons{padding:72px 0 44px}
  .stay-missing{padding:130px 0 80px}
}

/* Narrow phones: two native date inputs side by side clip the value — stack them */
@media (max-width:480px){
  .aside-dates{grid-template-columns:minmax(0,1fr)}
}

/* Narrow phones: the add-on button squeezes the title into two lines — give it its own row */
@media (max-width:520px){
  #search,#rooms,#packages{scroll-margin-top:92px}
  .addon{flex-wrap:wrap}
  .addon>div{flex:1 1 0}
  .addon .btn{flex:1 0 100%;margin-left:0;justify-content:center}
}
