/* Public property pages: NN layouts with property-specific content. */
.codearo-property-search { grid-template-columns: minmax(180px,1.7fr) minmax(145px,1fr) minmax(145px,1fr) auto; }
.codearo-property-search .codearo-sb-field { min-width: 0; }
.codearo-results-summary>svg { width:20px; height:20px; flex:0 0 20px; }
.codearo-sheet-x svg { width:18px; height:18px; }
.codearo-pills svg { width:13px; height:13px; }
.codearo-pager svg { width:18px; height:18px; }
.codearo-property-search input,.codearo-property-search select,.codearo-filter-input { width:100%; min-width:0; height:42px; padding:8px 10px; border:1px solid var(--codearo-line); border-radius:8px; background:#fff; color:var(--codearo-text); font:inherit; font-size:14px; }
.codearo-property-search input:focus,.codearo-property-search select:focus,.codearo-filter-input:focus,.codearo-property-enquiry input:focus,.codearo-property-enquiry textarea:focus { outline:2px solid rgba(25,53,164,.2); border-color:#1935A4; }
.codearo-filter-input { height:40px; background:#F7F9FD; }
.codearo-flt-body > .codearo-filter-input { margin:2px 0 5px; }
.codearo-price-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.codearo-price-row label { display:grid; gap:5px; color:var(--codearo-muted); font-size:12px; }
.codearo-flt-desktop-submit { display:flex; align-items:center; gap:12px; padding:12px 18px 16px; }
.codearo-flt-desktop-submit .codearo-btn { flex:1; }
.codearo-flt-desktop-submit a { color:var(--codearo-primary); font-size:13px; text-decoration:none; }
.codearo-property-card .codearo-rcard-media>a { display:block; width:100%; height:100%; }
.codearo-property-card .codearo-rcard-media { overflow:hidden; }
.codearo-property-card .codearo-rcard-tag { z-index:1; }
.codearo-property-price { position:absolute; right:10px; bottom:10px; max-width:calc(100% - 20px); padding:7px 10px; border-radius:7px; background:rgba(255,255,255,.95); color:var(--codearo-text); font-size:15px; font-weight:700; box-shadow:0 2px 12px rgba(0,0,0,.13); }
.codearo-property-featured { position:absolute; left:10px; bottom:10px; padding:4px 9px; border-radius:4px; background:#1935A4; color:#fff; font-size:11px; text-transform:uppercase; letter-spacing:.05em; }
.codearo-property-type { margin-bottom:5px; color:var(--codearo-muted); font-size:11px; font-weight:700; letter-spacing:.11em; text-transform:uppercase; }
.codearo-property-card .codearo-rcard-body h3 a { color:inherit; text-decoration:none; }
.codearo-property-card .codearo-rcard-body h3 a:hover { color:var(--codearo-primary); }
.codearo-property-specs { display:flex; flex-wrap:wrap; gap:8px 14px; margin-top:12px; color:var(--codearo-muted); font-size:12.5px; }
.codearo-property-specs span { display:inline-flex; align-items:center; gap:5px; }
.codearo-property-specs i { color:var(--codearo-primary); }
.codearo-rcard-foot { border-top:1px solid var(--codearo-line); padding:11px 16px; }
.codearo-property-ref { color:var(--codearo-muted); font-size:11px; letter-spacing:.06em; }
.codearo-property-view { position:relative; z-index:2; color:var(--codearo-primary); font-size:13px; font-weight:600; text-decoration:none; }
.codearo-property-view svg { width:15px; height:15px; vertical-align:-3px; }
.codearo-property-view:hover { text-decoration:underline; }

.codearo-property-show { width:min(var(--codearo-container),calc(100% - 32px)); margin:0 auto; padding:95px 0 64px; color:var(--codearo-text); }
.codearo-property-crumbs { margin:20px 0 24px; }
.codearo-property-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:22px; }
.codearo-property-heading .codearo-stay-tag { display:inline-block; }
.codearo-property-heading .codearo-stay-title { font-size:36px; }
.codearo-property-heading .codearo-stay-location { color:var(--codearo-muted); }
.codearo-property-heading-price { padding-bottom:4px; color:var(--codearo-text); font-size:27px; font-weight:650; white-space:nowrap; }
.codearo-property-mosaic.is-single { grid-template-columns:1fr; }
.codearo-property-mosaic { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); gap:14px; height:440px; overflow:hidden; border-radius:16px; }
.codearo-property-mosaic button { position:relative; min-width:0; min-height:0; padding:0; overflow:hidden; border:0; background:#F7F9FD; cursor:zoom-in; }
.codearo-property-mosaic button img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .45s ease; }
.codearo-property-mosaic button:hover img { transform:scale(1.025); }
.codearo-property-thumbs { display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; gap:14px; min-width:0; }
.codearo-property-viewall { position:absolute; right:12px; bottom:12px; padding:9px 13px; border:1px solid rgba(255,255,255,.7); border-radius:8px; background:rgba(6,42,96,.72); color:white; font-size:13px; }
.codearo-property-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(310px,370px); gap:25px; align-items:start; margin-top:24px; }
.codearo-property-content { min-width:0; }
.codearo-property-content .codearo-stay-card { margin-top:18px; padding:25px 28px; border:1px solid var(--codearo-line); box-shadow:0 4px 18px rgba(21,35,59,.045); }
.codearo-property-content .codearo-stay-card:first-child { margin-top:0; }
.codearo-property-summary { position:relative; }
.codearo-property-reference { position:absolute; right:28px; top:25px; margin:0; color:var(--codearo-muted); font-size:12px; }
.codearo-property-reference strong { color:var(--codearo-text); }
.codearo-property-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px 16px; margin-top:24px; padding-top:20px; border-top:1px solid var(--codearo-line); }
.codearo-property-facts div { display:grid; gap:5px; }
.codearo-property-facts span { color:var(--codearo-muted); font-size:12px; }
.codearo-property-facts strong { color:var(--codearo-text); font-size:15px; font-weight:600; }
.codearo-property-content .codearo-stay-h2.is-large { margin:0 0 14px; font-size:23px; }
.codearo-property-content .codearo-stay-prose { line-height:1.7; }
.codearo-property-content .codearo-stay-prose p:last-child { margin-bottom:0; }
.codearo-property-amenities { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px 12px; }
.codearo-property-amenities li { gap:10px; font-size:14px; }
.codearo-amenity-icon svg { width:16px; height:16px; }
.codearo-inline-icon { width:17px; height:17px; flex:0 0 17px; margin-right:5px; vertical-align:-3px; }
.codearo-amenity-icon { width:30px; height:30px; flex:0 0 30px; display:grid; place-items:center; border-radius:50%; background:#EAF1FC; color:var(--codearo-primary); }
.codearo-property-address { display:flex; gap:9px; align-items:flex-start; margin:0; color:var(--codearo-text); font-size:16px; line-height:1.6; }
.codearo-property-location-note { color:var(--codearo-muted); font-size:13px; line-height:1.55; }
.codearo-property-video { position:relative; aspect-ratio:16/9; overflow:hidden; border-radius:12px; background:#F7F9FD; }
.codearo-property-video iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.codearo-property-aside { position:sticky; top:24px; }
.codearo-property-contact.codearo-stay-card { margin:0; padding:24px; border:1px solid var(--codearo-line); box-shadow:0 8px 28px rgba(21,35,59,.09); }
.codearo-property-asking { margin:0 0 4px; color:var(--codearo-muted); font-size:13px; }
.codearo-property-aside-price { margin:0; color:var(--codearo-text); font-size:27px; line-height:1.2; }
.codearo-property-emi { margin:7px 0 0; color:var(--codearo-muted); font-size:12px; }
.codearo-property-agent-title,.codearo-property-form-title { margin:24px 0 13px; color:var(--codearo-text); font-size:16px; font-weight:650; }
.codearo-property-agent { display:flex; align-items:center; gap:12px; }
.codearo-agent-initials { width:48px; height:48px; display:grid; flex:0 0 48px; place-items:center; border-radius:50%; background:#EAF1FC; color:var(--codearo-primary); font-size:15px; font-weight:700; }
.codearo-property-agent div { min-width:0; display:grid; gap:4px; }
.codearo-property-agent strong { color:var(--codearo-text); font-size:14px; }
.codearo-property-agent small { color:var(--codearo-muted); font-size:11px; line-height:1.4; }
.codearo-property-contact-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:16px; }
.codearo-property-contact-actions .codearo-stay-btn { min-height:45px; padding:8px; border-radius:10px; font-size:14px; }
.codearo-property-form-title { margin-top:25px; padding-top:20px; border-top:1px solid var(--codearo-line); }
.codearo-property-enquiry { display:grid; gap:12px; }
.codearo-property-enquiry>label:not(.codearo-property-consent):not(.codearo-property-honeypot) { display:grid; gap:6px; color:var(--codearo-text); font-size:12px; font-weight:600; }
.codearo-property-enquiry input:not([type=checkbox]),.codearo-property-enquiry textarea { width:100%; padding:10px 11px; border:1px solid var(--codearo-line); border-radius:8px; background:#fff; color:var(--codearo-text); font:inherit; font-size:14px; }
.codearo-property-enquiry textarea { resize:vertical; }
.codearo-property-enquiry .codearo-stay-btn { min-height:48px; width:100%; border-radius:10px; font-size:15px; }
.codearo-property-consent { display:flex; align-items:flex-start; gap:9px; color:var(--codearo-muted); font-size:12px; line-height:1.45; }
.codearo-property-consent input { margin:2px 0 0; accent-color:var(--codearo-primary); }
.codearo-property-honeypot { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.codearo-property-alert { margin:0 0 13px; padding:10px 12px; border-radius:8px; font-size:13px; }
.codearo-property-alert ul { margin:6px 0 0; padding-left:18px; }
.codearo-property-alert.is-success { background:#EAF1FC; color:#1935A4; }
.codearo-property-alert.is-error { background:#fff0ed; color:#9a3228; }
.codearo-property-similar { margin-top:56px; }
.codearo-property-similar h2 { margin:0 0 20px; color:var(--codearo-text); font-size:29px; font-weight:550; }
.codearo-property-eyebrow { margin:0 0 6px; color:var(--codearo-primary); font-size:11px; font-weight:700; letter-spacing:.15em; text-transform:uppercase; }

@media(max-width:991px) {
 .codearo-flt-desktop-submit { display:none; }
 .codearo-property-layout { grid-template-columns:minmax(0,1fr); }
 .codearo-property-aside { position:static; grid-row:1; }
 .codearo-property-aside .codearo-property-contact { display:block; }
 .codearo-property-contact-actions { max-width:360px; }
 .codearo-property-enquiry { grid-template-columns:1fr 1fr; }
 .codearo-property-enquiry .codearo-property-form-title,.codearo-property-enquiry>label:nth-of-type(4),.codearo-property-enquiry .codearo-property-consent,.codearo-property-enquiry button { grid-column:1/-1; }
}
@media(max-width:767px) {
 .codearo-property-search { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
 .codearo-property-search .codearo-sb-field:first-child,.codearo-property-search .codearo-sb-submit { grid-column:1/-1; }
 .codearo-property-show { padding-top:125px; }
 .codearo-property-crumbs { margin:12px 0 17px; font-size:13px; }
 .codearo-property-heading { align-items:flex-start; flex-direction:column; gap:8px; margin-bottom:16px; }
 .codearo-property-heading .codearo-stay-title { font-size:26px; }
 .codearo-property-heading .codearo-stay-location { margin-top:7px; font-size:14px; }
 .codearo-property-heading-price { font-size:22px; }
 .codearo-property-mosaic { height:auto; display:block; border-radius:12px; }
 .codearo-property-main-photo { display:block; width:100%; height:260px; }
 .codearo-property-thumbs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-template-rows:72px; gap:6px; margin-top:6px; }
 .codearo-property-thumbs button { border-radius:6px; }
 .codearo-property-thumbs button img { border-radius:6px; }
 .codearo-property-viewall { inset:0; display:grid; place-items:center; right:auto; bottom:auto; padding:5px; border:0; border-radius:6px; font-size:11px; }
 .codearo-property-layout { gap:15px; margin-top:15px; }
 .codearo-property-contact.codearo-stay-card { padding:18px; }
 .codearo-property-content .codearo-stay-card { margin-top:13px; padding:20px 18px; }
 .codearo-property-content .codearo-stay-card:first-child { margin-top:0; }
 .codearo-property-reference { position:static; margin:0 0 14px; }
 .codearo-property-content .codearo-stay-h2.is-large { font-size:20px; }
 .codearo-property-facts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px 12px; margin-top:15px; padding-top:15px; }
 .codearo-property-amenities { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 8px; }
 .codearo-property-amenities li { font-size:13px; }
 .codearo-property-enquiry { grid-template-columns:1fr; }
 .codearo-property-enquiry .codearo-property-form-title,.codearo-property-enquiry>label:nth-of-type(4),.codearo-property-enquiry .codearo-property-consent,.codearo-property-enquiry button { grid-column:auto; }
 .codearo-property-similar { margin-top:38px; }
 .codearo-property-similar h2 { font-size:25px; }
}

/* Card footer: remove the reference and make the action a button. */
.codearo-rcard-foot { display:flex; justify-content:flex-end; align-items:center; }
.codearo-property-view-btn { padding:7px 16px; font-size:13px; line-height:1.2; gap:6px; box-shadow:0 3px 10px rgba(25,53,164,.18); }
.codearo-property-view-btn svg { width:14px; height:14px; }
/* skin.css disables pointer events on card-foot buttons; this one is the card's real link */
.codearo-property-card .codearo-rcard-foot .codearo-property-view-btn { pointer-events:auto; }
.codearo-stay-location,.codearo-property-address { display:flex; align-items:flex-start; }
.codearo-stay-location .codearo-inline-icon,.codearo-property-address .codearo-inline-icon { margin-top:2px; }

/* Property cards need their own surface; on white and #F7F9FD sections they blended in */
.codearo-property-card.codearo-rcard { border:1px solid #D9E3F3; border-radius:14px; background:#F2F6FD; overflow:hidden; box-shadow:0 2px 10px rgba(6,42,96,.08); }
.codearo-property-card.codearo-rcard:hover { box-shadow:0 6px 18px rgba(6,42,96,.14); }
.codearo-property-card .codearo-rcard-foot { padding:12px 16px 16px; }
/* White card only where the section itself is grey */
.is-muted .codearo-property-card.codearo-rcard { background:#fff; border-color:var(--codearo-line); }
@media (max-width:767px) {
  .codearo-property-card.codearo-rcard { border:1px solid #D9E3F3; border-radius:14px; overflow:hidden; }
  .is-muted .codearo-property-card.codearo-rcard { border-color:var(--codearo-line); }
  .codearo-property-card .codearo-rcard-media { border-radius:0; }
  .codearo-property-card .codearo-rcard-body { padding:12px 14px 0; }
  .codearo-property-card .codearo-rcard-foot { padding:10px 14px 14px; }
}

/* ===================== Single property page ===================== */
.codearo-property-tags { display:flex; flex-wrap:wrap; gap:8px; }
.codearo-stay-tag.is-featured { background:#FFF4D6; color:#8A5A00; }
.codearo-property-heading-price { display:grid; justify-items:end; gap:2px; }
.codearo-property-heading-price strong { color:var(--codearo-primary); font-family:var(--font-heading); font-size:34px; font-weight:700; line-height:1.1; }
.codearo-property-heading-price small { color:var(--codearo-muted); font-size:14px; font-weight:500; }

/* Gallery: strip wrapper is a pass-through on desktop, a swipe carousel on phones */
.codearo-property-mosaic { position:relative; display:block; }
.codearo-property-strip { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); gap:14px; height:100%; }
.codearo-property-mosaic.is-single .codearo-property-strip { grid-template-columns:1fr; }
.codearo-property-thumbs.has-1 { grid-template-columns:1fr; grid-template-rows:1fr; }
.codearo-property-thumbs.has-2 { grid-template-columns:1fr; }
.codearo-property-thumbs.has-3 > button:first-child { grid-row:span 2; }
.codearo-property-viewall { display:inline-flex; align-items:center; gap:7px; font-weight:600; white-space:nowrap; }
.codearo-property-count { display:none; }

/* Overview tiles */
.codearo-property-facts { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:18px; padding-top:0; border-top:0; }
.codearo-property-facts > div { display:flex; align-items:center; gap:11px; padding:12px; border-radius:12px; background:var(--codearo-primary-soft); }
.codearo-property-fact-icon { flex:0 0 36px; width:36px; height:36px; display:grid; place-items:center; border-radius:10px; background:#fff; color:var(--codearo-primary); font-size:15px; }
.codearo-property-fact-text { display:grid; gap:2px; min-width:0; }
.codearo-property-facts .codearo-property-fact-text span { font-size:12px; }
.codearo-property-facts strong { font-size:15px; overflow-wrap:anywhere; }

/* Features & amenities */
.codearo-property-highlights { display:flex; flex-wrap:wrap; gap:10px; margin:16px 0 0; padding:0; list-style:none; }
.codearo-property-highlights li { display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border:1px solid var(--codearo-line); border-radius:var(--codearo-radius-pill); background:#fff; color:var(--codearo-text); font-size:14px; font-weight:600; }
.codearo-property-highlights i { color:var(--codearo-primary); }
.codearo-property-subhead { margin:24px 0 14px; padding-top:18px; border-top:1px solid var(--codearo-line); color:var(--codearo-text); font-size:17px; font-weight:650; }
.codearo-property-amenities { margin:0; padding:0; list-style:none; }
.codearo-property-amenities li { display:flex; align-items:center; color:var(--codearo-text); }
.codearo-amenity-icon i { font-size:13px; }

/* Location */
.codearo-property-map { position:relative; margin-top:14px; aspect-ratio:16/7; overflow:hidden; border-radius:12px; background:#F7F9FD; border:1px solid var(--codearo-line); }
.codearo-property-map iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.codearo-property-maplink { display:inline-flex; align-items:center; gap:7px; margin-top:12px; color:var(--codearo-primary); font-size:14px; font-weight:600; text-decoration:none; }
.codearo-property-maplink:hover { text-decoration:underline; }
.codearo-property-maplink i { font-size:11px; }

/* Enquiry card */
.codearo-property-sheet-head,
.codearo-property-agency-inline,
.codearo-property-bar,
.codearo-property-sheet-backdrop { display:none; }
.codearo-property-privacy { display:flex; gap:8px; margin:14px 0 0; }
.codearo-property-privacy i { margin-top:3px; font-size:11px; }
.codearo-property-agent-title { margin-top:20px; }

@media (max-width:991px) {
  .codearo-property-show { padding-bottom:110px; }
  .codearo-property-facts { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .codearo-property-content .codearo-stay-card.codearo-property-agency-inline { display:block; }
  .codearo-property-agency-inline .codearo-property-location-note { margin:12px 0 0; }

  /* Enquiry form becomes a bottom sheet */
  .codearo-property-aside { position:fixed; left:0; right:0; bottom:0; top:auto; z-index:1100; grid-row:auto; max-height:92vh; max-height:92dvh; overflow-y:auto; overscroll-behavior:contain; transform:translateY(105%); visibility:hidden; transition:transform .3s ease, visibility 0s linear .3s; }
  .codearo-property-aside.is-open { transform:none; visibility:visible; transition:transform .3s ease; }
  .codearo-property-aside .codearo-property-contact.codearo-stay-card { margin:0; padding:8px 20px calc(20px + env(safe-area-inset-bottom)); border:0; border-radius:20px 20px 0 0; box-shadow:0 -10px 40px rgba(0,0,0,.2); }
  .codearo-property-sheet-head { position:sticky; top:0; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 -20px 12px; padding:14px 20px 12px; background:#fff; border-bottom:1px solid var(--codearo-line); }
  .codearo-property-sheet-head::before { content:''; position:absolute; top:6px; left:50%; width:40px; height:4px; margin-left:-20px; border-radius:4px; background:#D5DCE8; }
  .codearo-property-sheet-head strong { color:var(--codearo-text); font-size:17px; }
  .codearo-property-sheet-close { width:38px; height:38px; display:grid; place-items:center; border:0; border-radius:50%; background:var(--codearo-primary-soft); color:var(--codearo-primary); cursor:pointer; }
  .codearo-property-sheet-close svg { width:20px; height:20px; }
  .codearo-property-aside .codearo-property-aside-agency { display:none; }
  .codearo-property-aside .codearo-property-aside-price { font-size:24px; }
  .codearo-property-sheet-backdrop:not([hidden]) { display:block; position:fixed; inset:0; z-index:1090; background:rgba(10,20,40,.5); }
  html.codearo-sheet-lock, html.codearo-sheet-lock body { overflow:hidden; }

  /* Sticky price + enquire bar */
  .codearo-property-bar { position:fixed; left:0; right:0; bottom:0; z-index:980; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 16px calc(12px + env(safe-area-inset-bottom)); background:rgba(255,255,255,.97); border-top:1px solid var(--codearo-line); box-shadow:0 -6px 24px rgba(21,35,59,.1); backdrop-filter:blur(8px); }
  .codearo-property-bar__price { display:grid; min-width:0; }
  .codearo-property-bar__price small { color:var(--codearo-muted); font-size:12px; }
  .codearo-property-bar__price strong { color:var(--codearo-primary); font-family:var(--font-heading); font-size:22px; font-weight:700; line-height:1.15; white-space:nowrap; }
  .codearo-property-bar__cta { flex:0 0 auto; padding:11px 22px; font-size:16px; font-weight:600; }
  body:has(.codearo-property-bar) .codearo-wa-float { bottom:88px; }
}

@media (max-width:767px) {
  .codearo-property-heading { gap:10px; }
  .codearo-property-heading-price { justify-items:start; }
  .codearo-property-heading-price strong { font-size:28px; }

  /* Full-bleed swipe gallery */
  .codearo-property-mosaic { margin:0 -16px; border-radius:0; }
  .codearo-property-strip { display:flex; gap:0; height:280px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
  .codearo-property-strip::-webkit-scrollbar { display:none; }
  .codearo-property-thumbs { display:contents; }
  .codearo-property-strip > button,
  .codearo-property-thumbs > button,
  .codearo-property-main-photo { flex:0 0 100%; width:100%; height:100%; margin:0; border-radius:0; scroll-snap-align:start; }
  .codearo-property-thumbs button img { border-radius:0; }
  .codearo-property-viewall { display:none; }
  .codearo-property-count { position:absolute; right:14px; bottom:14px; display:inline-flex; align-items:center; gap:6px; padding:6px 11px; border-radius:20px; background:rgba(10,20,40,.65); color:#fff; font-size:13px; font-weight:600; pointer-events:none; }

  .codearo-property-facts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .codearo-property-facts > div { padding:10px; gap:9px; }
  .codearo-property-fact-icon { flex-basis:32px; width:32px; height:32px; font-size:13px; }
  .codearo-property-facts strong { font-size:14px; }
  .codearo-property-highlights li { font-size:13px; padding:7px 12px; }
  .codearo-property-map { aspect-ratio:4/3; }
}

/* ===================== Photo lightbox ===================== */
.codearo-gallery-lightbox { position:fixed; inset:0; z-index:1200; display:grid; grid-template-rows:auto minmax(0,1fr) auto; background:#0B1220; color:#fff; }
.codearo-gallery-lightbox[hidden] { display:none; }
.codearo-gallery-top { display:flex; align-items:center; gap:16px; padding:14px 20px; }
.codearo-gallery-count { flex:0 0 auto; padding:5px 12px; border-radius:20px; background:rgba(255,255,255,.1); font-size:14px; font-weight:600; font-variant-numeric:tabular-nums; }
.codearo-gallery-title { flex:1 1 auto; min-width:0; overflow:hidden; color:rgba(255,255,255,.8); font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
.codearo-gallery-lightbox button { display:grid; place-items:center; padding:0; border:0; color:#fff; cursor:pointer; }
.codearo-gallery-close { flex:0 0 auto; width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,.1); transition:background-color .2s ease; }
.codearo-gallery-close:hover { background:rgba(255,255,255,.2); }
.codearo-gallery-close svg { width:22px; height:22px; }

.codearo-gallery-stage { position:relative; min-height:0; display:flex; align-items:center; justify-content:center; padding:0 88px; }
.codearo-gallery-stage figure { width:100%; height:100%; min-height:0; display:flex; align-items:center; justify-content:center; margin:0; }
.codearo-gallery-stage img { display:block; max-width:100%; max-height:100%; border-radius:12px; object-fit:contain; opacity:0; transition:opacity .25s ease; box-shadow:0 20px 60px rgba(0,0,0,.45); }
.codearo-gallery-stage img.is-in { opacity:1; }
.codearo-gallery-prev,
.codearo-gallery-next { position:absolute; top:50%; z-index:1; width:52px; height:52px; margin-top:-26px; border-radius:50%; background:rgba(255,255,255,.12); backdrop-filter:blur(6px); transition:background-color .2s ease, transform .2s ease; }
.codearo-gallery-prev { left:20px; }
.codearo-gallery-next { right:20px; }
.codearo-gallery-prev:hover,
.codearo-gallery-next:hover { background:rgba(255,255,255,.24); transform:scale(1.05); }
.codearo-gallery-prev svg,
.codearo-gallery-next svg { width:24px; height:24px; }
.codearo-gallery-lightbox button:focus-visible { outline:2px solid #fff; outline-offset:3px; }

.codearo-gallery-thumbs { display:flex; justify-content:center; gap:10px; padding:16px 20px 20px; overflow-x:auto; scrollbar-width:none; }
.codearo-gallery-thumbs::-webkit-scrollbar { display:none; }
.codearo-gallery-thumbs button { flex:0 0 auto; width:88px; height:60px; overflow:hidden; border-radius:8px; background:#1B2435; opacity:.5; outline:2px solid transparent; outline-offset:2px; transition:opacity .2s ease, outline-color .2s ease; }
.codearo-gallery-thumbs button:hover { opacity:.85; }
.codearo-gallery-thumbs button.is-active { opacity:1; outline-color:#fff; }
.codearo-gallery-thumbs img { width:100%; height:100%; object-fit:cover; }
.codearo-gallery-lightbox.is-single .codearo-gallery-prev,
.codearo-gallery-lightbox.is-single .codearo-gallery-next,
.codearo-gallery-lightbox.is-single .codearo-gallery-thumbs { display:none; }

@media (max-width:767px) {
  .codearo-gallery-top { padding:10px 12px; gap:10px; }
  .codearo-gallery-title { font-size:14px; }
  .codearo-gallery-stage { padding:0; }
  .codearo-gallery-stage img { border-radius:0; box-shadow:none; }
  .codearo-gallery-prev,
  .codearo-gallery-next { top:auto; bottom:12px; margin-top:0; width:44px; height:44px; background:rgba(11,18,32,.6); }
  .codearo-gallery-prev { left:12px; }
  .codearo-gallery-next { right:12px; }
  .codearo-gallery-thumbs { justify-content:flex-start; gap:8px; padding:12px 12px calc(14px + env(safe-area-inset-bottom)); }
  .codearo-gallery-thumbs button { width:64px; height:46px; }
}
@media (prefers-reduced-motion:reduce) {
  .codearo-gallery-stage img, .codearo-gallery-prev, .codearo-gallery-next { transition:none; }
}
