
  /* ==========================================================================
     DESIGN TOKENS — "modern coastal warmth with Iberian craftsmanship"
     ========================================================================== */
  :root{
    --bg:            #F6F0E6;
    --surface:       #FFFDF9;
    --surface-alt:   #FBF3E7;
    --ink:           #2A2521;
    --ink-soft:      #6E6155;
    --line:          #E4D9C8;
    --terracotta:    #C1673B;
    --terracotta-dk: #A24F2C;
    --azulejo:       #2C5064;
    --azulejo-dk:    #1E3A49;
    --brass:         #B08D57;
    --sale-red:      #C4362B; 
    
    --facebook:      #1877F2;
    --facebook-dk:   #0F5FCB;
    --instagram:     #C1366E;
    --instagram-dk:  #9E2B58;
    --font-serif: 'Iowan Old Style','Palatino Linotype','Georgia', ui-serif, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', ui-sans-serif, sans-serif;
    --radius: 3px;
    --shadow-card: 0 1px 2px rgba(42,37,33,0.06), 0 8px 24px rgba(42,37,33,0.06);
  }
  *{ box-sizing:border-box; }
  html,body{ margin:0; padding:0; }
  body{ background:var(--bg); color:var(--ink); font-family:var(--font-sans); line-height:1.5; -webkit-font-smoothing:antialiased; }
  img{ display:block; max-width:100%; }
  picture{ display:contents; }   /* the WebP wrapper: lays out as if the <img> stood alone */
  a{ color:inherit; text-decoration:none; cursor:pointer; }
  button{ font-family:inherit; }
  .wrap{ max-width:1180px; margin:0 auto; padding:0 40px; }
  [hidden]{ display:none !important; }

  /* ===== HEADER / NAV ===== */
  header.site{ background:var(--surface); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:10; }
  
  .nav-row{ display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; align-items:center; column-gap:24px; row-gap:10px; padding:16px 40px; max-width:1180px; margin:0 auto; }
  .wordmark{ grid-row:1 / 3; grid-column:1; font-family:var(--font-serif); font-size:22px; letter-spacing:0.02em; font-weight:600; white-space:nowrap; display:flex; align-items:center; }
  .wordmark span{ color:var(--terracotta); }
  .wordmark .logo-img{ height:55px; width:auto; display:block; } 
  nav.primary{ display:flex; gap:18px; grid-column:2; grid-row:1; justify-self:end; }
  nav.primary a{ font-size:14px; color:var(--ink-soft); font-weight:500; padding:4px 0; border-bottom:2px solid transparent; }
  nav.primary a.current{ color:var(--ink); border-color:var(--terracotta); }
  nav.primary a:hover{ color:var(--terracotta); }
  .controls{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; grid-column:2; grid-row:2; justify-self:end; justify-content:flex-end; }

  .search-box{ position:relative; }
  .search-box input{
    font-family:var(--font-sans); font-size:13px; border:1px solid var(--line); background:var(--surface-alt);
    border-radius:999px; padding:8px 14px 8px 32px; width:190px; color:var(--ink);
  }
  .search-box input:focus{ outline:2px solid var(--azulejo); outline-offset:1px; }
  .search-box .icon{ position:absolute; left:11px; top:50%; transform:translateY(-50%); font-size:12px; color:var(--ink-soft); pointer-events:none; }
  /* The header's own copy of the search box (templates/_searchbox.php, rendered
     with .search-top as a direct child of .nav-row). Hidden here, because on a
     full-width window the copy inside the .controls row is the visible one;
     switched on — and the .controls copy switched off — once the drawer takes
     over below, so search stays in the sticky header at every width instead of
     being shut inside the menu. (NEW) */
  .search-top{ display:none; }

  .toggle-pill{ display:flex; border:1px solid var(--line); border-radius:999px; overflow:hidden; background:var(--surface-alt); }
  .toggle-pill a{ font-size:12px; font-weight:600; letter-spacing:0.04em; padding:7px 14px; color:var(--ink-soft); }
  .toggle-pill a.active{ background:var(--ink); color:#fff; }
  .cta{ background:var(--terracotta); color:#fff; font-size:13px; font-weight:600; padding:10px 18px; border-radius:var(--radius); border:0; cursor:pointer; letter-spacing:0.02em; }
  .cta:hover{ background:var(--terracotta-dk); }
  .cta.large{ padding:14px 28px; font-size:14px; width:100%; }
  .cta.ghost{ background:transparent; color:var(--azulejo); border:1px solid var(--azulejo); }
  
  .cta-disabled{ background:var(--surface-alt); color:var(--ink-soft); border:1px solid var(--line); cursor:not-allowed; pointer-events:none; text-align:center; }
  .cta-disabled:hover{ background:var(--surface-alt); }

  /* ===== HERO (home view) ===== */
  .hero{ padding: 64px 0 88px; }
  .hero-grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
  .eyebrow{ font-size:12px; letter-spacing:0.12em; font-weight:700; color:var(--brass); text-transform:uppercase; margin:0 0 18px; }
  h1.headline{ font-family:var(--font-serif); font-weight:600; font-size:clamp(34px,4vw,48px); line-height:1.12; margin:0 0 22px; }
  p.subhead{ font-size:17px; color:var(--ink-soft); max-width:46ch; margin:0 0 32px; }
  .hero-actions{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
  .link-secondary{ font-size:14px; font-weight:600; color:var(--azulejo); border-bottom:1px solid var(--azulejo); padding-bottom:2px; }
  .link-secondary:hover{ color:var(--azulejo-dk); border-color:var(--azulejo-dk); }
  .hero-media{ position:relative; }
  
  .hero-photo{ display:block; }
  .hero-media.flip-collapsing .hero-photo{ transform:scaleX(0); transition:transform .35s cubic-bezier(.55,.06,.68,.19); }
  .hero-media.flip-expanding .hero-photo{ transform:scaleX(1); transition:transform .35s cubic-bezier(.32,.94,.6,1); }
  .hero-media img{ width:100%; height:420px; aspect-ratio:3/2; object-fit:cover; border-radius:var(--radius); box-shadow:var(--shadow-card); cursor:pointer; display:block; }
  .hero-media.flip-collapsing .price-chip,
  .hero-media.flip-expanding .price-chip{ opacity:0; }
  .price-chip{ position:absolute; left:24px; bottom:-26px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-card); padding:16px 20px; min-width:240px; transition:opacity .45s ease; }
  .price-chip .tag{ font-size:10px; letter-spacing:0.1em; text-transform:uppercase; color:var(--brass); font-weight:700; }
  .price-chip .name{ font-family:var(--font-serif); font-size:16px; margin:6px 0 4px; }
  .price-chip .price-row{ display:flex; align-items:baseline; gap:8px; }
  .price-chip .price{ font-size:20px; font-weight:700; color:var(--terracotta); }
  .price-chip .mode{ font-size:11px; color:var(--ink-soft); text-transform:uppercase; letter-spacing:0.06em; }

  .trust{ background:var(--azulejo); color:#fff; padding:40px 0; }
  .trust-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
  .trust-item .num{ font-family:var(--font-serif); font-size:26px; margin-bottom:6px; }
  .trust-item .desc{ font-size:13px; color:#CBD9DF; line-height:1.5; }

  .section-pad{ padding:84px 0; }
  .section-head{ display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:36px; flex-wrap:wrap; gap:16px; }
  h2.section-title{ font-family:var(--font-serif); font-size:30px; margin:0; font-weight:600; }
  p.section-sub{ color:var(--ink-soft); font-size:14px; margin:6px 0 0; }
  .coll-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
  .coll-card{ background:var(--surface); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-card); transition:transform .18s ease; }
  .coll-card:hover{ transform:translateY(-4px); }
  .coll-card img{ width:100%; height:200px; object-fit:cover; }
  .coll-card .body{ padding:20px 22px 24px; }
  .coll-card .tag{ font-size:10px; text-transform:uppercase; letter-spacing:0.1em; color:var(--brass); font-weight:700; }
  .coll-card h3{ font-family:var(--font-serif); font-size:19px; margin:8px 0 8px; }
  .coll-card p{ font-size:13px; color:var(--ink-soft); margin:0 0 14px; }
  .coll-card .view{ font-size:12px; font-weight:700; color:var(--terracotta); }

  /* ===== COLLECTIONS view ===== */
  .page-head{ padding:48px 0 8px; }
  h1.title{ font-family:var(--font-serif); font-size:36px; margin:0 0 12px; font-weight:600; }
  p.sub{ color:var(--ink-soft); font-size:15px; max-width:64ch; margin:0 0 28px; }
  .page-head p.sub{ min-height:3em; } /* two lines' worth, so the filters below never shift when the text changes */
  .page-head p.sub strong{ color:var(--ink); font-weight:600; }
  .toolbar{ display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; padding-bottom:28px; border-bottom:1px solid var(--line); margin-bottom:36px; }
  
  .toolbar .search-box input{ width:220px; }

  .grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; padding-bottom:88px; }
  .card{ position:relative; background:var(--surface); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-card); transition:transform .15s ease; cursor:pointer; }
  .card:hover{ transform:translateY(-3px); }
  .card img{ width:100%; height:210px; object-fit:cover; }
  
  .sold-wash{ opacity:.5; filter:grayscale(45%); }
  
  .sold-badge{ position:absolute; top:12px; left:12px; z-index:2; background:var(--ink); color:#fff; font-size:10px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; padding:5px 10px; border-radius:999px; }
  .reserved-badge{ position:absolute; top:12px; left:12px; z-index:2; background:var(--azulejo); color:#fff; font-size:10px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; padding:5px 10px; border-radius:999px; }
  
  .reserved-badge{ position:absolute; top:12px; left:12px; z-index:2; background:var(--brass, #B08D57); color:#fff; font-size:10px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; padding:5px 10px; border-radius:999px; }
  .sale-badge{ position:absolute; top:12px; right:12px; z-index:2; background:var(--sale-red); color:#fff; font-size:10px; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; padding:5px 10px; border-radius:999px; }
  
  .price-poa{ font-size:13px; font-weight:600; color:var(--azulejo); letter-spacing:0.02em; }
  .price-was{ text-decoration:line-through; color:var(--ink-soft); font-weight:500; font-size:0.72em; margin-right:6px; }
  .price-now{ color:var(--sale-red); }
  .card .body{ padding:18px 20px 22px; }
  .card .coll-tag{ font-size:10px; text-transform:uppercase; letter-spacing:0.08em; font-weight:700; color:var(--brass); }
  .card h3{ font-family:var(--font-serif); font-size:17px; margin:8px 0 6px; }
  .card .ref{ font-size:11px; color:var(--ink-soft); margin-bottom:10px; }
  .card .price-row{ display:flex; align-items:baseline; justify-content:space-between; margin-top:6px; }
  .card .price{ font-size:18px; font-weight:700; color:var(--terracotta); }
  .card .mode{ font-size:10px; text-transform:uppercase; color:var(--ink-soft); }
  .card .enquire{ display:inline-block; margin-top:14px; font-size:12px; font-weight:700; color:var(--azulejo); border-bottom:1px solid var(--azulejo); }
  .card-desc, .t-desc{ display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:13px; line-height:1.45; color:var(--ink-soft); margin:6px 0 0; }
  .empty-note{ display:none; padding:48px 0; text-align:center; color:var(--ink-soft); font-size:14px; }

  /* ===== PRODUCT view ===== */
  .backbar{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:18px 0 0; }
  .backbar a{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; padding:7px 12px; border-radius:999px; border:1px solid var(--line); background:var(--surface); color:var(--ink); }
  .backbar a:hover{ border-color:var(--azulejo); color:var(--azulejo); }
  .backbar a.all{ color:var(--azulejo); }
  .backbar + .crumb{ padding-top:14px; }
  .backbar + .page-head{ padding-top:22px; }
  .crumb{ font-size:12px; color:var(--ink-soft); padding:22px 0 0; }
  .crumb a:hover{ color:var(--terracotta); }
  .crumb .sep{ margin:0 6px; opacity:.5; }

  /* Previous/Next: browse a filtered listing piece by piece without going
     back to it each time (see _itemnav.php / adjacent_products()). Hidden
     entirely when the visitor didn't arrive from a listing. */
  .item-nav{ display:flex; justify-content:space-between; align-items:center; gap:14px; padding-top:16px; margin-top:14px; border-top:1px solid var(--line); }
  .item-nav .inav-link{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--azulejo); white-space:nowrap; }
  .item-nav .inav-link:hover{ color:var(--terracotta); }
  .item-nav .inav-link.is-disabled{ visibility:hidden; }
  .item-nav .arrow{ font-size:16px; line-height:1; }
  .item-nav .inav-pos{ font-size:12px; color:var(--ink-soft); text-align:center; flex:1; }
  .product{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; padding:28px 0 72px; }
  .media{ position:relative; }
  .media img{ width:100%; height:520px; object-fit:cover; border-radius:var(--radius); box-shadow:var(--shadow-card); }
  .media .caption{ font-size:11px; color:var(--ink-soft); margin-top:10px; text-align:center; }
  .info .coll-tag{ font-size:11px; text-transform:uppercase; letter-spacing:0.1em; font-weight:700; color:var(--brass); }
  .info h1{ font-family:var(--font-serif); font-size:32px; margin:10px 0 6px; font-weight:600; line-height:1.15; }
  .info .ref{ font-size:13px; color:var(--ink-soft); margin-bottom:22px; }
  .price-block{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:22px 24px; margin-bottom:28px; }
  .price-block .price-row{ display:flex; align-items:baseline; gap:12px; margin-bottom:4px; }
  .price-block .price{ font-family:var(--font-serif); font-size:30px; font-weight:700; color:var(--terracotta); }
  .price-block .mode{ font-size:11px; text-transform:uppercase; letter-spacing:0.06em; color:var(--ink-soft); }
  .price-block .note{ font-size:12px; color:var(--ink-soft); margin-top:8px; }
  .pd-section{ margin-bottom:26px; }
  .pd-section h2{ font-family:var(--font-serif); font-size:16px; margin:0 0 10px; font-weight:600; }
  .listing-quote{ border-left:3px solid var(--azulejo); padding:10px 16px; background:var(--surface-alt); font-size:13px; font-style:italic; border-radius:0 var(--radius) var(--radius) 0; }
  .spec-table{ width:100%; border-collapse:collapse; font-size:13px; }
  .spec-table td{ padding:9px 0; border-bottom:1px solid var(--line); vertical-align:top; }
  .spec-table td:first-child{ color:var(--ink-soft); width:38%; }
  .related{ padding:12px 0 88px; border-top:1px solid var(--line); margin-top:12px; }
  .related h2{ font-family:var(--font-serif); font-size:22px; margin:40px 0 24px; font-weight:600; }
  .rel-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
  .rel-card{ display:flex; gap:16px; background:var(--surface); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-card); cursor:pointer; }
  .rel-media{ position:relative; flex-shrink:0; }
  .rel-card img{ width:130px; height:110px; object-fit:cover; flex-shrink:0; }
  .rel-card .body{ padding:14px 16px 14px 0; }
  .rel-card h3{ font-family:var(--font-serif); font-size:14px; margin:0 0 6px; }
  .rel-card .price{ font-size:13px; font-weight:700; color:var(--terracotta); }

  /* ===== LOGISTICS view ===== */
  .lg-wrap{ max-width:1000px; margin:0 auto; padding:0 40px; }
  .steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; padding-bottom:64px; }
  .step{ background:var(--surface); border-radius:var(--radius); box-shadow:var(--shadow-card); padding:28px 24px; }
  .step .n{ font-family:var(--font-serif); font-size:26px; color:var(--terracotta); margin-bottom:10px; }
  .step h3{ font-size:15px; margin:0 0 8px; font-weight:700; }
  .step p{ font-size:13px; color:var(--ink-soft); margin:0; }
  .faq h2{ font-family:var(--font-serif); font-size:24px; margin:0 0 24px; font-weight:600; text-align:center; }
  .qa{ border-bottom:1px solid var(--line); padding:20px 0; }
  .qa h4{ font-size:14px; margin:0 0 8px; display:flex; justify-content:space-between; cursor:pointer; }
  .qa h4 .mark{ color:var(--brass); font-weight:700; }
  .qa p{ font-size:13px; color:var(--ink-soft); margin:0; max-width:70ch; }
  .contact-cta{ background:var(--azulejo); color:#fff; border-radius:var(--radius); padding:40px; text-align:center; margin-bottom:80px; }
  .contact-cta h2{ font-family:var(--font-serif); font-size:22px; margin:0 0 10px; }
  .contact-cta p{ font-size:13px; color:#CBD9DF; margin:0 0 20px; }
  .contact-cta .cta{ background:#fff; color:var(--azulejo-dk); }

  /* ===== CONTACT (placeholder page) ===== */
  .placeholder-badge{
    display:inline-block; font-size:10px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
    background:var(--surface-alt); color:var(--brass); border:1px solid var(--line); border-radius:999px; padding:5px 12px; margin-bottom:18px;
  }
  .simple-wrap{ max-width:760px; margin:0 auto; padding:56px 40px 96px; }
  .form-grid{ display:grid; gap:16px; margin-top:28px; }
  .form-grid label{ font-size:12px; font-weight:600; color:var(--ink-soft); text-transform:uppercase; letter-spacing:0.04em; display:block; margin-bottom:6px; }
  .form-grid input, .form-grid textarea, .form-grid select{
    width:100%; font-family:var(--font-sans); font-size:14px; padding:11px 14px; border:1px solid var(--line);
    border-radius:var(--radius); background:var(--surface); color:var(--ink);
  }
  .form-grid textarea{ resize:vertical; min-height:100px; }
  .form-note{ font-size:12px; color:var(--ink-soft); margin-top:14px; }
  .channel-list{ display:grid; gap:14px; margin:28px 0; }
  .channel{ display:flex; align-items:center; gap:14px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:16px 18px; }
  .channel .ico{ font-size:18px; }
  .channel .label{ font-size:13px; font-weight:600; }
  .channel .sub{ font-size:12px; color:var(--ink-soft); }

  /* ===== ADMIN link (header) ===== */
  .admin-link{ font-size:11px; color:var(--ink-soft); border:1px solid var(--line); padding:7px 12px; border-radius:999px; white-space:nowrap; }
  .admin-link:hover{ color:var(--azulejo); border-color:var(--azulejo); }

  
/* ===== FOOTER ===== */
  footer.site{ background:var(--surface-alt); border-top:1px solid var(--line); padding:48px 0 32px; }
  .foot-grid{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:24px; }
  .foot-brand{ font-family:var(--font-serif); font-size:18px; }
  .foot-meta{ font-size:12px; color:var(--ink-soft); margin-top:10px; line-height:1.7; }
  .foot-cols{ display:flex; gap:64px; flex-wrap:wrap; }
  .foot-col h4{ font-size:12px; text-transform:uppercase; letter-spacing:0.08em; color:var(--brass); margin:0 0 12px; }
  .foot-col a{ display:block; font-size:13px; color:var(--ink-soft); margin-bottom:8px; }
  .foot-col a:hover{ color:var(--terracotta); }
  .foot-col a.foot-social{ display:flex; align-items:center; gap:7px; }
  .foot-col a.foot-social svg{ flex:0 0 auto; }
  .foot-bottom{ margin-top:36px; padding-top:20px; border-top:1px solid var(--line); font-size:11px; color:var(--ink-soft); }

  
  /* ==========================================================================
     ADDITIONS FOR THE REAL SITE (Phase 1) — category navigation, pager,
     prose pages, notices, showroom strip, hero carousel, and the responsive
     rules the desktop-only prototype never needed.
     ========================================================================== */
  .skip{ position:absolute; left:-999px; top:8px; background:var(--ink); color:#fff; padding:8px 12px; z-index:100; }
  .skip:focus{ left:8px; }
  .sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .site-menu{ display:contents; }
  .menu-overlay, .menu-close{ display:none; }
  /* Any menu item with a sub-menu (.nav-group) shows a small down arrow; it flips when the sub-menu is open */
  .nav-group-head{ display:inline-flex; align-items:center; gap:4px; }
  .nav-group-head .chev{ width:14px; height:14px; flex:0 0 auto; opacity:.7; transition:transform .2s, opacity .15s; }
  .nav-group:hover .nav-group-head .chev, .nav-group:focus-within .nav-group-head .chev{ transform:rotate(180deg); opacity:1; }
  .nav-toggle{ display:none; align-items:center; justify-content:center; width:44px; height:44px; padding:0; background:none; border:1px solid var(--ink); border-radius:var(--radius); color:var(--ink); cursor:pointer; -webkit-tap-highlight-color:transparent; }
  .nav-toggle svg{ width:22px; height:22px; display:block; }
  .nav-toggle .icon-close{ display:none; }
  .nav-toggle[aria-expanded="true"] .icon-burger{ display:none; }
  .nav-toggle[aria-expanded="true"] .icon-close{ display:block; }
  .nav-toggle[aria-expanded="true"]{ border-color:var(--terracotta); color:var(--terracotta); }
  .nav-group{ position:relative; display:flex; align-items:center; }
  .nav-sub{ display:none; position:absolute; top:100%; left:50%; transform:translateX(-50%); min-width:200px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-card); padding:8px; z-index:20; }
  .nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub{ display:block; }
  .nav-sub a{ display:block; padding:9px 12px; border-radius:var(--radius); border-bottom:0 !important; font-size:13px; color:var(--ink) !important; white-space:nowrap; }
  .nav-sub a:hover{ background:var(--surface-alt); color:var(--terracotta) !important; }
  .nav-sub .nav-sub-all{ border-bottom:1px solid var(--line) !important; border-radius:var(--radius) var(--radius) 0 0; margin-bottom:4px; }
  .search-box{ margin:0; }
  /* Hero carousel: slides are stacked; the active one swings in from the
     right while the previous one swings out to the left, both crossfading.
     A gentle 3D tilt (perspective + rotateY) gives the "turning" feel. */
  .hero-media{ perspective:1200px; }
  .hero{ overflow-x:clip; } /* waiting slides sit 40px off to the side; never let them widen the page */
  .hero-media .hero-slide{ position:relative; }
  .hero-media .hero-slide:not(.is-active){ position:absolute; inset:0; }
  .hero-media .hero-slide{ opacity:0; transform:translateX(40px) rotateY(-14deg); transform-origin:50% 50%; transition:opacity .7s ease, transform .9s cubic-bezier(.22,.61,.36,1); pointer-events:none; }
  .hero-media .hero-slide.is-active{ opacity:1; transform:none; pointer-events:auto; z-index:2; }
  .hero-media .hero-slide.is-leaving{ opacity:0; transform:translateX(-40px) rotateY(14deg); z-index:1; }
  .hero-media .hero-slide .price-chip{ transition:opacity .45s ease .25s; }
  .hero-media .hero-slide:not(.is-active) .price-chip{ opacity:0; transition-delay:0s; }
  @media (prefers-reduced-motion: reduce){ .hero-media .hero-slide{ transition:opacity .4s ease; transform:none !important; } }
  .hero-media .hero-slide .price-chip{ bottom:-26px; }
  .hero-photo{ position:relative; display:block; }
  .section-pad.alt{ background:var(--surface-alt); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
  .section-pad .grid{ padding-bottom:0; }
  h2.section-title.small{ font-size:22px; margin:8px 0 18px; }
  /* Every photo the same height and the same gap apart. A photo zoomed out in the admin
     shows whole, at its own width, with no white round it (update 36). */
  .showroom-strip{ display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:8px; }
  .showroom-strip a{ display:block; scroll-snap-align:start; position:relative; flex:1 0 260px; min-width:0; }
  .showroom-strip a.strip-natural{ flex:0 0 auto; }
  .showroom-strip a.strip-natural picture{ display:block; }
  .showroom-strip a.strip-natural img{ width:auto; max-width:85vw; }
  .showroom-strip a.strip-natural .strip-cap{ flex-wrap:wrap; }
  .showroom-strip a.strip-natural .strip-cap span{ white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  .strip-cap{ position:absolute; left:10px; right:10px; bottom:10px; background:rgba(255,253,249,.92); border-radius:var(--radius); padding:8px 12px; font-size:12px; display:flex; justify-content:space-between; gap:10px; align-items:baseline; }
  .strip-cap span{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .strip-cap b{ color:var(--terracotta); }
  /* update 38: the caption lets the photo show through, frosted so the words stay readable */
  @supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
    .strip-cap{ background:rgba(255,253,249,.66); -webkit-backdrop-filter:blur(6px) saturate(1.2); backdrop-filter:blur(6px) saturate(1.2); }
    .strip-cap b{ font-weight:800; text-shadow:0 0 6px rgba(255,253,249,.9); }
    .strip-cap span{ text-shadow:0 0 5px rgba(255,253,249,.8); }
  }
  .showroom-strip a:hover img{ transform:translateY(-3px); }
  .showroom-strip img{ transition:transform .15s ease; height:220px; width:100%; object-fit:cover; border-radius:var(--radius); box-shadow:var(--shadow-card); scroll-snap-align:start; }
  .card img{ aspect-ratio:4/3; height:auto; }
  .cat-nav{ margin:0 0 28px; }
  /* Root switch: All / Furnishing / Furniture as one segmented pill */
  .cat-roots{ display:inline-flex; flex-wrap:wrap; gap:4px; padding:4px; margin-bottom:16px; border:1px solid var(--line); border-radius:999px; background:var(--surface); }
  .cat-roots a{ font-size:13px; font-weight:600; padding:8px 18px; border-radius:999px; color:var(--ink-soft); transition:background .15s, color .15s; }
  .cat-roots a:hover{ color:var(--ink); background:var(--surface-alt); }
  .cat-roots a.active{ background:var(--ink); color:#fff; }
  /* Sub-category filter: a quiet card of uniform pills with count badges */
  .cat-filter{ background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:14px 16px 16px; box-shadow:0 1px 2px rgba(42,37,33,.04); }
  .cat-filter-label{ margin:0 0 10px; font-size:11px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--brass); }
  .cat-subs{ display:flex; gap:8px; flex-wrap:wrap; }
  .cat-subs a{ display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:500; line-height:1.2; padding:7px 7px 7px 14px; border-radius:999px; background:var(--surface-alt); border:1px solid var(--line); color:var(--ink); transition:border-color .15s, color .15s, background .15s, box-shadow .15s; }
  .cat-subs a span{ display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:22px; padding:0 7px; border-radius:999px; font-size:11px; font-weight:600; font-variant-numeric:tabular-nums; background:var(--surface); color:var(--ink-soft); border:1px solid var(--line); }
  .cat-subs a:hover{ border-color:var(--azulejo); color:var(--azulejo); background:var(--surface); box-shadow:0 2px 8px rgba(44,80,100,.10); }
  .cat-subs a.active{ background:var(--azulejo); border-color:var(--azulejo); color:#fff; box-shadow:0 3px 10px rgba(44,80,100,.22); }
  .cat-subs a.active span{ background:rgba(255,255,255,.18); border-color:transparent; color:#fff; }
  .cat-subs a.is-reduced{ color:var(--sale-red); border-color:#EBC4BF; background:#FBF1EF; }
  .cat-subs a.is-reduced span{ color:var(--sale-red); border-color:#EBC4BF; }
  .cat-subs a.is-reduced:hover{ border-color:var(--sale-red); box-shadow:0 2px 8px rgba(196,54,43,.12); }
  .cat-subs a.is-reduced.active{ background:var(--sale-red); border-color:var(--sale-red); color:#fff; box-shadow:0 3px 10px rgba(196,54,43,.25); }
  .cat-subs a.is-reduced.active span{ color:#fff; border-color:transparent; }
  .cat-detail{ margin:12px 0 0; padding-top:10px; border-top:1px dashed var(--line); font-size:13px; color:var(--ink-soft); }
  .cat-detail strong{ color:var(--ink); font-weight:600; }
  #main .grid, #main .ptable-wrap, #main .empty-note{ transition:opacity .2s; }
  #main.is-loading .grid, #main.is-loading .ptable-wrap, #main.is-loading .empty-note{ opacity:.45; pointer-events:none; }
  .pager{ display:flex; justify-content:space-between; align-items:center; padding:0 0 64px; font-size:13px; }
  .pager a{ font-weight:600; color:var(--azulejo); border-bottom:1px solid var(--azulejo); }
  .pager .pages{ color:var(--ink-soft); }
  .grid + .pager{ margin-top:-56px; }
  .empty-note{ display:block; }
  .page-head.gone{ padding-bottom:40px; }
  .price-block .mode{ background:var(--sale-red); color:#fff; padding:3px 8px; border-radius:999px; font-size:10px; font-weight:700; }
  .cta.large.ghost{ margin-top:10px; display:block; text-align:center; }
  .cta.large{ display:block; text-align:center; }
  .media .zoom{ display:block; }
  .media .zoom img{ aspect-ratio:4/3; height:auto; }
  .prose{ font-size:15px; line-height:1.7; color:var(--ink); }
  .prose p{ margin:0 0 14px; }
  .prose.lead{ font-size:17px; }
  .prose h2,.prose h3{ font-family:var(--font-serif); font-weight:600; margin:24px 0 8px; font-size:18px; }
  .prose ol,.prose ul{ padding-left:22px; margin:0 0 14px; }
  .prose li{ margin-bottom:6px; }
  .prose a{ color:var(--azulejo); border-bottom:1px solid var(--azulejo); }
  .prose.legal{ font-size:14px; padding-bottom:80px; }
  .about-block{ margin:36px 0 0; padding-top:28px; border-top:1px solid var(--line); }
  .lg-wrap{ padding-bottom:80px; }
  .faq .prose{ max-width:70ch; margin:0 auto; }
  .hours-box{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:24px 28px; margin:32px 0 48px; text-align:center; }
  .hours-box h2{ font-family:var(--font-serif); font-size:18px; margin:0 0 8px; font-weight:600; }
  .hours-box .prose p{ margin:0; }
  .quotes{ display:grid; gap:18px; padding-bottom:40px; }
  .quote{ margin:0; background:var(--surface); border-left:3px solid var(--brass); border-radius:0 var(--radius) var(--radius) 0; box-shadow:var(--shadow-card); padding:20px 24px; }
  .quote .prose{ font-size:14px; font-style:italic; }
  .quote footer{ font-size:12px; color:var(--ink-soft); margin-top:8px; }
  .news-item{ padding:0 0 32px; margin-bottom:32px; border-bottom:1px solid var(--line); }
  .news-item .eyebrow{ margin-bottom:6px; }
  .channel{ color:inherit; }
  .channel:hover{ border-color:var(--terracotta); }
  .notice{ padding:14px 18px; border-radius:var(--radius); font-size:14px; margin-top:24px; }
  .notice.ok{ background:#E9F3EA; border:1px solid #BFDCC3; color:#25592E; }
  .notice.bad{ background:#FBEAE7; border:1px solid #EFC3BC; color:#8A2C22; }
  .form-grid .has-error input,.form-grid .has-error textarea{ border-color:var(--sale-red); }
  .form-grid .hp{ position:absolute; left:-9999px; }
  .form-grid{ position:relative; }

  .foot-find{ flex:1 1 320px; max-width:420px; }
  .foot-find h4{ font-size:12px; text-transform:uppercase; letter-spacing:0.08em; color:var(--brass); margin:18px 0 10px; }
  .map-embed{ border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--surface); box-shadow:var(--shadow-card); }
  .map-embed iframe{ width:100%; height:100%; border:0; display:block; }
  .map-links{ font-size:12px; color:var(--ink-soft); margin-top:8px; }
  .map-links a{ color:var(--azulejo); border-bottom:1px solid var(--azulejo); }
  .map-links .gps{ font-variant-numeric:tabular-nums; }
  .simple-wrap .map-embed{ margin-top:8px; }
  .simple-wrap .map-links{ margin-bottom:8px; }

  /* ----- responsive ----- */
  @media (max-width:1024px){
    .grid{ grid-template-columns:repeat(2,1fr); }
    .trust-grid{ gap:20px; }
  }
  /* Burger + drawer header. Kicks in at 1024px so a narrowed desktop window
     and a tablet get the same menu as a phone (the 4max drawer pattern). */
  @media (max-width:1024px){
    header.site{ position:sticky; }
    .nav-row{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; column-gap:12px; row-gap:8px; padding:10px 16px; min-height:60px; }
    .wordmark .logo-img{ height:45px; }
    .nav-toggle{ display:flex; order:3; flex:0 0 auto; }
    .wordmark{ order:1; flex:0 0 auto; }
    /* Search sits between the logo and the burger while there is room for it. */
    .search-top{ display:block; order:2; flex:1 1 150px; min-width:0; }
    .search-top input{ width:100%; padding-top:10px; padding-bottom:10px; font-size:14px; }
    /* Only one search box on screen: the drawer defers to the header's copy. */
    .controls .search-box{ display:none; }
    /* Dimmed page behind the drawer */
    .menu-overlay{ display:block; position:fixed; inset:0; background:rgba(42,37,33,.5); opacity:0; visibility:hidden; transition:opacity .28s, visibility 0s .28s; z-index:40; }
    .menu-overlay.is-open{ opacity:1; visibility:visible; transition:opacity .28s; }
    /* The drawer itself: slides in from the right, azulejo blue */
    .site-menu{ display:block; position:fixed; top:0; right:0; bottom:0; width:min(340px, 86vw); background:var(--azulejo); color:#fff; border-radius:16px 0 0 16px; box-shadow:-18px 0 44px rgba(42,37,33,.22); padding:66px 20px 24px; overflow-y:auto; -webkit-overflow-scrolling:touch; z-index:50; transform:translateX(100%); visibility:hidden; transition:transform .3s cubic-bezier(.4,0,.2,1), visibility 0s .3s; }
    .site-menu.is-open{ transform:none; visibility:visible; transition:transform .3s cubic-bezier(.4,0,.2,1); }
    .menu-close{ display:flex; align-items:center; justify-content:center; position:absolute; top:12px; right:14px; width:44px; height:44px; padding:0; background:none; border:1px solid rgba(255,255,255,.7); border-radius:var(--radius); color:#fff; cursor:pointer; -webkit-tap-highlight-color:transparent; }
    .menu-close svg{ width:22px; height:22px; display:block; }
    .menu-close:hover{ background:rgba(255,255,255,.1); }
    body.menu-open{ overflow:hidden; }
    nav.primary{ display:flex; flex-direction:column; gap:2px; justify-self:auto; width:100%; }
    nav.primary > a, nav.primary .nav-group-head{ display:block; font-size:17px; font-weight:700; padding:12px 2px; border-bottom:0; color:#fff; border-radius:10px; transition:background .15s, color .15s; }
    nav.primary > a:hover{ color:#fff; background:rgba(255,255,255,.08); padding-left:8px; padding-right:8px; }
    nav.primary a.current{ color:#EBB697; }
    .nav-group{ display:block; }
    .nav-group-head{ display:flex !important; align-items:center; justify-content:space-between; gap:12px; }
    .nav-group-head .chev{ display:block; width:22px; height:22px; flex:0 0 auto; transition:transform .2s; }
    .nav-group.is-open .nav-group-head{ background:var(--terracotta); color:#fff !important; padding-left:14px; padding-right:14px; border-radius:10px 10px 0 0; }
    .nav-group.is-open .nav-group-head .chev{ transform:rotate(180deg); }
    .nav-sub{ display:none; position:static; transform:none; min-width:0; border:0; box-shadow:none; padding:4px 0; margin:0 0 6px; background:var(--surface); border-radius:0 0 10px 10px; }
    .nav-group.is-open .nav-sub{ display:block; }
    .nav-sub a{ font-size:16px !important; font-weight:500; color:var(--ink) !important; padding:11px 14px; border-radius:6px; margin:0 4px; white-space:normal; border-bottom:0 !important; }
    .nav-sub .nav-sub-all{ margin-bottom:0; border-radius:6px; }
    .nav-sub a:hover{ background:var(--surface-alt); color:var(--terracotta) !important; }
    .controls{ display:grid; grid-template-columns:1fr auto; gap:12px; margin-top:22px; padding-top:18px; border-top:1px solid rgba(255,255,255,.18); justify-self:auto; width:100%; }
    .controls .search-box{ grid-column:1 / 3; } .controls .search-box input{ width:100%; }
    .controls .cta{ grid-column:1 / 3; grid-row:2; text-align:center; padding:13px 22px; font-size:15px; }
    .toggle-pill{ grid-column:1 / 3; grid-row:3; justify-self:end; background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.3); }
    .toggle-pill a{ color:#fff; }
    .toggle-pill a.active{ background:var(--surface); color:var(--ink); }
  }
  @media (max-width:900px){
    .hero{ padding:36px 0 56px; }
    .hero-grid{ grid-template-columns:1fr; gap:36px; }
    .hero-media .hero-slide .price-chip{ position:static; margin-top:12px; }
    .hero-media .hero-slide:not(.is-active){ position:absolute; inset:0; }
    .hero-media img{ height:auto; }
    .trust-grid{ grid-template-columns:1fr; }
    .product{ grid-template-columns:1fr; gap:28px; padding-top:16px; }
    .media img{ height:auto; }
    .rel-grid{ grid-template-columns:1fr; }
    .steps{ grid-template-columns:1fr; }
    .foot-cols{ gap:32px; }
    .wrap,.lg-wrap,.simple-wrap{ padding-left:20px; padding-right:20px; }
    h1.title{ font-size:30px; }
  }
  @media (max-width:600px){
    .grid{ grid-template-columns:1fr; gap:20px; }
    .card img{ aspect-ratio:4/3; }
    .section-pad{ padding:48px 0; }
    .wrap,.lg-wrap,.simple-wrap{ padding-left:16px; padding-right:16px; }
    .cta.large{ padding:14px 18px; }
    .item-nav .inav-label{ display:none; }   /* arrows + position only — room is tight */
    .item-nav .inav-pos{ font-size:11px; }
    /* Too narrow to share a line with the logo and the burger without becoming
       a stub — so the search box wraps onto its own full-width row underneath
       them. Still inside the sticky header, so it stays reachable down the page. */
    .nav-toggle{ order:2; }
    .search-top{ order:3; flex:1 0 100%; }
  }

  /* ==========================================================================
     LISTING VIEW SWITCH + TABLE VIEW
     A second way to read the same page of pieces: the photo grid (the default)
     or a compact table with thumbnails, for scanning many pieces at once. The
     switch is the same pill component as the EN/PT language switch; the rules
     below re-state it because the phone drawer restyles .toggle-pill in white.
     ========================================================================== */
  .list-toolbar{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin:0 0 18px; }
  .list-count{ margin:0; font-size:12px; color:var(--ink-soft); font-variant-numeric:tabular-nums; }
  .list-toolbar .toggle-pill{ background:var(--surface-alt); border:1px solid var(--line); grid-column:auto; grid-row:auto; justify-self:auto; }
  .list-toolbar .toggle-pill a{ display:inline-flex; align-items:center; gap:7px; color:var(--ink-soft); background:none; }
  .list-toolbar .toggle-pill a:hover{ color:var(--ink); }
  .list-toolbar .toggle-pill a.active{ background:var(--ink); color:#fff; }
  .list-controls{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
  .list-toolbar .toggle-pill svg{ width:13px; height:13px; flex:0 0 auto; }

  .vh{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

  .ptable-wrap{ padding-bottom:88px; }
  .ptable{ width:100%; border-collapse:collapse; background:var(--surface); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-card); }
  .ptable thead th{ text-align:left; font-size:10px; letter-spacing:.09em; text-transform:uppercase; font-weight:700; color:var(--brass); padding:13px 16px; border-bottom:1px solid var(--line); white-space:nowrap; }
  .ptable thead th.c-price{ text-align:right; }
  .ptable tbody tr{ border-bottom:1px solid var(--line); cursor:pointer; transition:background .12s ease; }
  .ptable tbody tr:last-child{ border-bottom:0; }
  .ptable tbody tr:hover{ background:var(--surface-alt); }
  .ptable td{ padding:11px 16px; vertical-align:middle; }
  .ptable tbody .c-photo{ width:88px; }
  .ptable .c-photo img{ display:block; width:72px; height:54px; object-fit:cover; border-radius:6px; background:var(--surface-alt); }
  .ptable .c-photo img[data-preview]{ cursor:zoom-in; }
  /* Hover-expand: a floating enlargement of the row thumbnail, shown near the
     cursor on pointer devices only (see site.js — the JS gates this whole
     feature behind a hover-capable, fine-pointer check, so touch never sees
     it and never gets it stuck open after a tap). Same 4:3 crop as the small
     thumbnail, just bigger and sourced from a higher-resolution image. */
  .thumb-preview{ position:fixed; z-index:70; top:0; left:0; width:320px; height:240px; padding:5px; background:var(--surface); border-radius:10px; box-shadow:0 16px 40px rgba(28,22,17,.24), 0 3px 10px rgba(28,22,17,.14); pointer-events:none; opacity:0; transform:scale(.97); transition:opacity .12s ease, transform .12s ease; }
  .thumb-preview.is-visible{ opacity:1; transform:scale(1); }
  .thumb-preview img{ display:block; width:100%; height:100%; object-fit:cover; border-radius:6px; background:var(--surface-alt); }
  .ptable .t-name{ font-family:var(--font-serif); font-size:15px; line-height:1.3; color:var(--ink); }
  .ptable tbody tr:hover .t-name{ color:var(--terracotta); }
  .ptable .t-badge{ display:inline-block; margin-left:8px; background:var(--sale-red); color:#fff; font-size:9px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; padding:3px 7px; border-radius:999px; vertical-align:1px; }
  .ptable .t-sub{ display:none; }
  .ptable tbody .c-coll{ font-size:12px; color:var(--ink-soft); }
  .ptable tbody .c-ref{ font-size:12px; color:var(--ink-soft); white-space:nowrap; font-variant-numeric:tabular-nums; }
  .ptable tbody .c-price{ font-size:16px; font-weight:700; color:var(--terracotta); text-align:right; white-space:nowrap; }
  .ptable .c-price .price-poa{ font-size:12px; }
  .ptable-wrap + .pager{ margin-top:-56px; }

  @media (max-width:700px){
    /* the table becomes a list of compact rows: thumbnail, piece, price */
    .ptable thead{ display:none; }
    .ptable, .ptable tbody, .ptable td{ display:block; }
    .ptable tr{ display:grid; grid-template-columns:64px minmax(0,1fr) auto; align-items:center; column-gap:14px; padding:10px 14px; }
    .ptable td{ padding:0; }
    .ptable .c-photo{ width:auto; }
    .ptable .c-photo img{ width:64px; height:64px; }
    .ptable .c-coll, .ptable .c-ref{ display:none; }
    .ptable .t-name{ font-size:14px; }
    .ptable .t-sub{ display:block; font-size:11px; color:var(--ink-soft); margin-top:3px; }
    .ptable .c-price{ font-size:15px; }
    .ptable-wrap{ padding-bottom:56px; }
  }

  @media (max-width:560px){
    /* count on its own line, both switches side by side under it — the icons
       go so the two pills fit one row even with the longer Portuguese labels */
    .list-toolbar{ gap:10px; }
    .list-count{ width:100%; }
    .list-controls{ width:100%; justify-content:flex-start; gap:8px; }
    .list-toolbar .toggle-pill svg{ display:none; }
    .list-toolbar .toggle-pill a{ padding:13px 14px; }   /* ~44px: a proper thumb target */
  }

  /* ==========================================================================
     MAP ON REQUEST
     The map is the only thing on this site that would contact anybody else, so
     it is never fetched unasked — the placeholder takes exactly the box the map
     would, and pressing it is the permission. No cookie message is needed
     because nothing else leaves the page or is stored without an action.
     ========================================================================== */
  /* No still captured for this size yet: a plain outline and a button. */
  .map-held:not(.map-still){ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:11px; text-align:center; padding:16px; background:var(--surface-alt); border-style:dashed; box-shadow:none; }
  .map-held:not(.map-still) p{ margin:0; font-size:12px; line-height:1.5; color:var(--ink-soft); max-width:36ch; }
  .map-held:not(.map-still) .map-show{ font:inherit; font-size:12.5px; font-weight:700; color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:999px; padding:9px 17px; min-height:40px; cursor:pointer; }
  .map-held:not(.map-still) .map-show:hover{ border-color:var(--azulejo); color:var(--azulejo); }

  /* The still: a picture of the same map, served from here. The whole thing is
     one button, so a click or the keyboard swaps in the live map. */
  .map-still .map-show{ display:block; position:relative; width:100%; height:100%; padding:0; border:0; background:none; cursor:pointer; font:inherit; }
  .map-still img{ display:block; width:100%; height:100%; object-fit:cover; }
  /* top left: clear of OpenStreetMap's own zoom controls (top right) and of
     its attribution line, which runs along the bottom of the picture */
  .map-still .map-cue{
    position:absolute; left:10px; top:10px;
    display:inline-flex; align-items:center; white-space:nowrap;
    font-size:12px; font-weight:700; color:var(--ink);
    background:rgba(255,253,249,.94); border:1px solid var(--line); border-radius:999px;
    padding:7px 15px; box-shadow:0 1px 6px rgba(42,37,33,.16);
    transition:background .15s, color .15s, border-color .15s;
  }
  .map-still .map-show:hover .map-cue{ background:var(--surface); border-color:var(--azulejo); color:var(--azulejo); }
  .map-still .map-show:focus-visible{ outline:2px solid var(--azulejo); outline-offset:2px; }

  /* ==========================================================================
     BACK TO TOP
     Appears once the visitor is a screenful or so down, bottom right, built
     like the site's other round controls. Hidden until site.js reveals it —
     without JavaScript there is nothing to show and hide, and the browser's
     own Home key does the job.
     ========================================================================== */
  .to-top{
    position:fixed; right:20px; bottom:20px; z-index:55;
    display:flex; align-items:center; justify-content:center;
    width:46px; height:46px; border-radius:50%;
    color:var(--ink); background:var(--surface);
    border:1px solid var(--line); box-shadow:0 2px 10px rgba(42,37,33,.14);
    opacity:0; visibility:hidden; transform:translateY(8px);
    transition:opacity .2s ease, transform .2s ease, visibility 0s .2s, border-color .15s, color .15s;
  }
  .to-top.is-visible{ opacity:1; visibility:visible; transform:none; transition:opacity .2s ease, transform .2s ease, border-color .15s, color .15s; }
  .to-top:hover{ color:var(--azulejo); border-color:var(--azulejo); }
  .to-top:focus-visible{ outline:2px solid var(--azulejo); outline-offset:3px; }
  .to-top svg{ width:19px; height:19px; display:block; }
  @media (max-width:640px){
    .to-top{ right:14px; bottom:calc(14px + env(safe-area-inset-bottom, 0px)); width:44px; height:44px; }
  }
  @media (prefers-reduced-motion: reduce){
    .to-top{ transition:opacity .01s, visibility 0s; transform:none; }
  }
  /* Photos framed in the admin (drag + zoom) are scaled inside their box. (Sep 2026) */
  .hero-photo, .rel-media, .media .zoom{ overflow:hidden; border-radius:var(--radius); }
  .media .zoom{ display:block; }
  .ptable .t-badge.t-reserved{ background:var(--brass, #B08D57); }
  .price-row .mode.mode-reserved{ color:var(--brass, #B08D57); font-weight:700; margin-left:10px; }
  .gallery-thumbs{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
  .gthumb{ width:80px; height:60px; padding:0; border:2px solid transparent; border-radius:6px; overflow:hidden; background:var(--surface-alt, #FBF3E7); cursor:pointer; opacity:.8; }
  .gthumb img{ width:100%; height:100%; object-fit:cover; display:block; }
  .gthumb.is-on, .gthumb:hover{ border-color:var(--terracotta, #C1673B); opacity:1; }
  .gthumb:focus-visible{ outline:2px solid var(--terracotta, #C1673B); outline-offset:2px; }
  .gthumb-video{ display:flex; align-items:center; justify-content:center; color:var(--ink, #2A2521); font-size:20px; }
  .pd-video{ display:block; width:100%; max-height:520px; background:#000; border-radius:var(--radius); }

  /* Sold: on show for 30 days after it's ticked in the admin, then it comes off. (Sep 2026) */
  .sold-badge{ position:absolute; top:12px; left:12px; z-index:3; background:var(--sale-red); color:#fff; font-size:11px; font-weight:800; letter-spacing:0.08em; text-transform:uppercase; padding:6px 12px; border-radius:999px; box-shadow:0 1px 4px rgba(0,0,0,.18); }
  .card:has(.sold-badge) img, .media:has(.sold-badge) .zoom img{ filter:saturate(.6); }
  .card:has(.sold-badge) .price{ color:var(--ink-soft); text-decoration:line-through; text-decoration-thickness:1px; }
  .ptable .t-badge.t-sold{ background:var(--sale-red); }
  .price-row .sold-pill{ display:inline-block; margin-left:10px; background:var(--sale-red); color:#fff; font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; padding:4px 10px; border-radius:999px; vertical-align:middle; }
  .price-block:has(.sold-pill) .price{ color:var(--ink-soft); text-decoration:line-through; text-decoration-thickness:1px; }
  .sold-note{ margin:10px 0 0; font-size:14px; color:var(--ink-soft); }
  /* Message bar switched on in Administration › Settings. */
  .site-banner{ background:var(--terracotta); color:#fff; text-align:center; font-size:14px; font-weight:600; line-height:1.4; padding:9px 16px; }

  .empty-note .search-tip{ display:inline-block; margin-top:6px; font-size:.9em; opacity:.8; }

  /* ===== NEWS TICKER (home page; Admin › Content Management › News ticker) ===== */
  .ticker{ background:var(--tk-bg,#C1673B); color:var(--tk-fg,#fff); font-family:var(--tk-font, var(--font-sans)); overflow:hidden; white-space:nowrap; font-size:15px; font-weight:600; line-height:1.3; padding:10px 0; }
  .ticker:focus-visible{ outline:2px solid var(--tk-fg,#fff); outline-offset:-4px; }
  .ticker .tk-track{ display:flex; width:max-content; animation:tk-scroll var(--tk-dur,40s) linear infinite; }
  .ticker:hover .tk-track, .ticker:focus .tk-track, .ticker:focus-within .tk-track{ animation-play-state:paused; }
  .ticker .tk-run{ display:flex; align-items:center; flex:0 0 auto; }
  .ticker .tk-run::after{ content:'•'; opacity:.75; margin:0 1.1em; }
  .ticker .tk-sep{ opacity:.75; margin:0 1.1em; }
  .ticker.ticker-bottom{ margin-top:8px; }
  @keyframes tk-scroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
  @media (prefers-reduced-motion: reduce){
    .ticker{ white-space:normal; padding:10px 16px; text-align:center; }
    .ticker .tk-track{ animation:none; width:auto; display:block; }
    .ticker .tk-run{ display:block; padding:0; }
    .ticker .tk-run::after{ content:none; }
    .ticker .tk-run[aria-hidden]{ display:none; }
  }
  div.sub{ color:var(--ink-soft); font-size:15px; max-width:64ch; margin:0 0 28px; }
  .page-head div.sub{ min-height:3em; }
  div.sub p{ margin:0; }

/* update 41: a picture on a news story */
.news-item .news-pic{ margin:10px 0 14px; }
.news-item .news-pic img{ display:block; width:100%; max-width:720px; height:auto; border-radius:8px; }

/* update 51: a zoomed-out photo shows as framed, on a blurred copy of itself (never white) */
.fr-frame{ position:relative; overflow:hidden; vertical-align:top; max-width:100%; }
.fr-frame > .fr-pic{ position:absolute; inset:0; display:block; }
.fr-on{ isolation:isolate; }
/* update 52: zoomed out, the space round the photo is the page colour (no blur) */
.fr-on{ background:var(--bg) !important; }
.fr-on > .fr-blur{ display:none; }
.thumb-preview-in{ display:block; position:relative; width:100%; height:100%; overflow:hidden; border-radius:6px; background:var(--surface-alt); }
.thumb-preview-in > img{ display:block; width:100%; height:100%; object-fit:cover; }
/* update 53: the piece you've just come back from, briefly highlighted */
.card.came-back{ animation:came-back 2.6s ease-out; }
tr.came-back > td{ animation:came-back-row 2.6s ease-out; }
@keyframes came-back{ 0%,35%{ box-shadow:0 0 0 3px var(--terracotta), var(--shadow-card); } 100%{ box-shadow:var(--shadow-card); } }
@keyframes came-back-row{ 0%,35%{ background-color:#F3DCCB; } 100%{ background-color:transparent; } }
@media (prefers-reduced-motion:reduce){ .card.came-back, tr.came-back > td{ animation:none; } }
/* update 55: home page sections as photos or a compact list */
.home-head-r{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; justify-content:flex-end; }
.homelist .ptable-wrap{ padding-bottom:0; }
.homelist.lv-grid .ptable-wrap, .homelist.lv-table .grid{ display:none; }
@media (max-width:700px){ .homelist.lv-auto .grid{ display:none; } }
@media (min-width:701px){ .homelist.lv-auto .ptable-wrap{ display:none; } }
@media (max-width:700px){
  .section-head:has(.home-head-r){ flex-wrap:wrap; row-gap:10px; }
  .home-head-r{ width:100%; justify-content:space-between; }
}
/* tap a list photo to enlarge it (touch screens) */
@media (hover:none){
  .ptable .c-photo{ position:relative; }
  .ptable .c-photo::after{ content:""; position:absolute; right:3px; bottom:3px; width:18px; height:18px; border-radius:50%; background:rgba(255,253,249,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2521' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center/12px no-repeat; box-shadow:0 1px 3px rgba(0,0,0,.25); pointer-events:none; }
}
.zoom-open, .zoom-open body{ overflow:hidden; }
.zoom-box{ position:fixed; inset:0; z-index:100; background:rgba(42,37,33,.72); display:flex; align-items:center; justify-content:center; padding:16px; }
.zoom-card{ position:relative; width:min(560px,100%); background:var(--surface); border-radius:10px; overflow:hidden; box-shadow:0 18px 50px rgba(0,0,0,.35); }
.zoom-pic{ display:block; position:relative; width:100%; aspect-ratio:4/3; overflow:hidden; background:var(--bg); }
.zoom-pic > img{ display:block; width:100%; height:100%; object-fit:cover; }
.zoom-foot{ padding:14px 16px 16px; display:grid; grid-template-columns:1fr auto; gap:4px 12px; align-items:baseline; }
.zoom-name{ font-family:var(--font-serif); font-size:17px; line-height:1.3; color:var(--ink); }
.zoom-price{ font-weight:700; color:var(--terracotta); white-space:nowrap; }
.zoom-go{ grid-column:1 / -1; margin-top:10px; text-align:center; }
.zoom-x{ position:absolute; top:8px; right:8px; z-index:2; width:40px; height:40px; border:0; border-radius:50%; background:rgba(255,253,249,.94); color:var(--ink); font-size:26px; line-height:1; cursor:pointer; box-shadow:0 1px 4px rgba(0,0,0,.25); }
/* update 55: the home switch looks like the listings' Grid/Table switch (the phone drawer restyles .toggle-pill) */
.home-head-r .toggle-pill{ background:var(--surface-alt); border:1px solid var(--line); grid-column:auto; grid-row:auto; justify-self:auto; }
.home-head-r .toggle-pill a{ display:inline-flex; align-items:center; gap:7px; color:var(--ink-soft); background:none; }
.home-head-r .toggle-pill a:hover{ color:var(--ink); }
.home-head-r .toggle-pill a.active{ background:var(--ink); color:#fff; }
.home-head-r .toggle-pill svg{ width:13px; height:13px; flex:0 0 auto; }
@media (max-width:560px){ .home-head-r .toggle-pill a{ padding:11px 14px; } }
/* the enlarge badge sits on the photo's corner */
@media (max-width:640px){ .ptable td.c-photo{ width:64px; } }
@media (hover:none){ .ptable td.c-photo::after{ right:auto; bottom:auto; left:46px; top:46px; } }
