/* FILE: /rentals/assets/rentals.css */
/* Theme v3 — UK property portal style (Rightmove/Zoopla-inspired, not a clone) */

:root{
  --bg:#f3f4f6;
  --card:#ffffff;
  --ink:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;

  --primary:#1d4ed8;
  --primary-700:#1e40af;
  --focus:rgba(29,78,216,.22);

  --rent:#0f766e;
  --rent-700:#115e59;
  --sale:#b45309;
  --sale-700:#92400e;
  
  --swap:#1d4ed8;
  --swap-700:#1e40af;
--sale-accent:#f59e0b;

  --shadow:0 10px 28px rgba(17,24,39,.08);
  --shadow-hover:0 14px 34px rgba(17,24,39,.14);
  --radius:14px;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}

@media (min-width: 1025px){
  html{ scrollbar-gutter: stable; }
}


button, input, select, textarea {
  font-family: inherit;
}

body{
  background:var(--bg);
  color:var(--ink);
  font:15px/1.45 Georgia, "Times New Roman", Times, serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:inherit}
img{max-width:100%;display:block}

.container{max-width:1180px;margin:10px auto;padding:0 16px}
/* Visually hidden (for accessibility/SEO) */
.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}


/* Top return pill */
.ukhh-return-wrap{display:flex;justify-content:center;margin:10px 0 8px}
.ukhh-return{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 22px;border-radius:999px;
  background:#fff;
  border:1px solid rgba(17,24,39,.10);
  color:#0b1220;
  font-weight:900;
  font-size:15px;
  text-decoration:none;
  box-shadow:0 10px 22px rgba(15,23,42,.10);
  letter-spacing:.2px;
}
.ukhh-return:hover{filter:brightness(1.02)}

/* UKHandyHelpers.com logotype (inspired by the main UKHH header style) */
.ukhh-logo{gap:0}
.ukhh-logo .logo-uk{font-weight:1000; color:#0b1220}
.ukhh-logo .logo-handy{font-weight:1000; color:#2563eb}
.ukhh-logo .logo-helpers{font-weight:1000; color:#0b1220}
.ukhh-logo .logo-dotcom{font-weight:950; color:#0b1220; opacity:.85}

/* Subtle divider (replaces loud red bar) */
.ukhh-separator{
  width:100%;
  max-width:1160px;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(17,24,39,.18), transparent);
  margin:0 auto 14px auto;
}

/* Navbar */
.navbar{
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid rgba(229,231,235,.9);
  position:sticky;top:0;z-index:50;
  transition:transform .18s ease;
}
@media (min-width: 1025px){
  .navbar.is-hidden{transform:translateY(-110%)}
}
.navbar .inner{
  max-width:1180px;margin:0 auto;padding:12px 16px;
  display:flex;justify-content:space-between;align-items:center;
  gap:12px;flex-wrap:wrap;
}
.brand a{display:inline-block;text-decoration:none}
.brand a{color:var(--ink) !important;font-weight:900;letter-spacing:.2px}
.brand .and-sale{color:var(--muted);font-weight:800}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;border-radius:12px;border:1px solid transparent;
  background:var(--primary);color:#fff;text-decoration:none;
  font-weight:800;font-size:14px;line-height:1;
  box-shadow:0 10px 22px rgba(29,78,216,.18);
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease, background .12s ease, border-color .12s ease;
  white-space:nowrap;
}
.btn:hover{background:var(--primary-700);box-shadow:0 12px 26px rgba(29,78,216,.22);transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn:focus{outline:none;box-shadow:0 0 0 4px var(--focus), 0 12px 26px rgba(29,78,216,.22)}
.btn.btn-ghost{
  background:#fff;color:var(--ink);border-color:var(--border);
  box-shadow:none;
}
.btn.btn-ghost:hover{background:#f9fafb;border-color:#d1d5db;transform:none}
.btn.rental-btn{background:var(--rent);box-shadow:0 10px 22px rgba(15,118,110,.18)}
.btn.rental-btn:hover{background:var(--rent-700);box-shadow:0 12px 26px rgba(15,118,110,.22)}
.btn.sale-btn{background:var(--sale-accent);color:#111827;box-shadow:0 10px 22px rgba(245,158,11,.18)}
.btn.swap-btn{background:var(--swap);box-shadow:0 10px 22px rgba(29,78,216,.18)}
.btn.swap-btn:hover{background:var(--swap-700);box-shadow:0 12px 26px rgba(29,78,216,.22)}

.btn.sale-btn:hover{background:#fbbf24;box-shadow:0 12px 26px rgba(245,158,11,.22)}
.btn.sale-btn:focus{box-shadow:0 0 0 4px rgba(245,158,11,.26), 0 12px 26px rgba(245,158,11,.22)}

.nav-actions{display:flex;gap:10px;flex-wrap:wrap}

/* Headings */
h1{font-size:28px;letter-spacing:-.3px}
.h1-sale{color:var(--muted);font-weight:900}

/* Small note under tabs */
.login-note{color:var(--muted);font-size:13px;margin:6px 0 16px;}

/* Mode tabs (Rent/Sale/All) */
.mode-tabs{
  display:flex;
  width:100%;
  max-width:560px;
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 8px 18px rgba(17,24,39,.06);
  margin:10px 0 14px;
}
.mode-tab{
  flex:1;
  display:flex;align-items:center;justify-content:center;
  padding:12px 10px;
  font-weight:900;font-size:15px;text-decoration:none !important;
  color:var(--ink);
  background:#fff;
  border-right:1px solid var(--border);
  transition:background .12s ease, color .12s ease;
}
.mode-tab:last-child{border-right:0}
.mode-tab:hover{background:#f9fafb}
.mode-tab.active{color:#fff}
.mode-tab.rent.active{background:var(--rent)}
.mode-tab.sale.active{background:var(--sale)}
.mode-tab.swap.active{background:var(--swap)}
.mode-tab.all.active{background:#0b1220}

/* Toolbar (filters) */
.toolbar{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  box-shadow:0 10px 22px rgba(17,24,39,.06);
  margin:0 0 18px;
}
.input, select{
  width:100%;
  padding:10px 12px;
  border:1px solid #d1d5db;
  border-radius:12px;
  background:#fff;
  color:var(--ink);
  outline:none;
}
.input:focus, select:focus{box-shadow:0 0 0 4px var(--focus);border-color:rgba(29,78,216,.55)}
/* Make native selects look cleaner */
select{appearance:none;background-image:
  linear-gradient(45deg, transparent 50%, #6b7280 50%),
  linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position:calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px);
  background-size:5px 5px, 5px 5px;
  background-repeat:no-repeat;
  padding-right:34px;
}

/* Toolbar layout */
.toolbar{display:block}
.toolbar .t-row{display:grid;gap:10px;margin-bottom:10px}
.toolbar .t-row1{grid-template-columns:1fr 180px}
.toolbar .t-row2{grid-template-columns:1fr 1fr}
.toolbar .t-row3{display:grid;grid-template-columns:auto 1fr 1fr;gap:10px;align-items:center;margin-bottom:0}

@media (max-width:560px){
  .toolbar .t-row1{grid-template-columns:1fr}
  .toolbar .t-row3{grid-template-columns:1fr}
}
@media (min-width:900px){
  .toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
  .toolbar .t-row{display:contents;margin:0}
  .t-q{flex:1 1 360px;min-width:260px}
  .t-type{flex:0 0 190px}
  .t-beds{flex:0 0 190px}
  .t-sort{flex:0 0 220px}
  .t-search,.t-reset{flex:0 0 auto}
}

/* View toggle */
.view-toggle{display:flex;gap:8px;align-items:center;justify-content:flex-end}
.vt-btn{
  width:42px;height:42px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid #d1d5db;border-radius:12px;background:#fff;
  cursor:pointer;line-height:1;
  transition:background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.vt-btn:hover{background:#f9fafb;border-color:#cbd5e1}
.vt-btn.active{box-shadow:0 0 0 4px var(--focus);border-color:rgba(29,78,216,.55)}
@media (max-width:700px){ .vt-hide-sm{display:none !important;} }

/* Grid */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.grid.view-list{grid-template-columns:1fr}
.grid.view-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid.view-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid.view-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:560px){
  .grid.view-3,.grid.view-4{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Cards */
.card{
  position:relative;
  display:block;
  text-decoration:none;
  color:inherit;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.card:hover{transform:translateY(-2px);box-shadow:var(--shadow-hover);border-color:#d1d5db}
.card .thumb{height:170px;background:#e5e7eb;overflow:hidden}
.card .thumb img{width:100%;height:100%;object-fit:cover;display:block}
.card .body{padding:12px 12px 14px}
.card .title{font-weight:800;font-size:15px;margin-bottom:6px;letter-spacing:0;
  font-size:15px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-bottom:6px;
  line-height:1.18;
}
.card.is-rent .price{color:var(--rent)}
.card.is-sale .price{color:var(--sale)}

.badge{
  display:inline-flex;align-items:center;gap:6px;
  font-size:12px;
  font-weight:750;
  color:#374151;
  background:#f3f4f6;
  border:1px solid #e5e7eb;
  padding:2px 10px;
  border-radius:999px;
}
.badge.badge-sale{
  background:#fffbeb;
  border-color:#fcd34d;
  color:#92400e;
}

/* Swap / Rent badges (used in view + lists) */
.badge.badge-swap{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:var(--swap-700);
}
.badge.badge-rent{
  background:#ecfdf5;
  border-color:#a7f3d0;
  color:var(--rent-700);
}

/* Listing kind headline pill (view.php) */
.kind-pill{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
  letter-spacing:.6px;
  text-transform:uppercase;
  border:1px solid transparent;
}
.kind-pill.kind-swap{ background:rgba(29,78,216,.10); border-color:rgba(29,78,216,.25); color:var(--swap-700); }
.kind-pill.kind-rent{ background:rgba(15,118,110,.10); border-color:rgba(15,118,110,.25); color:var(--rent-700); }
.kind-pill.kind-sale{ background:rgba(245,158,11,.18); border-color:rgba(245,158,11,.35); color:#92400e; }

/* Meta pills */
.meta-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.meta{color:var(--muted);font-size:13px}
.meta-pill{
  display:inline-flex;align-items:center;
  padding:4px 10px;border-radius:999px;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  font-weight:800;
  color:#111827;
}
.meta-pill.meta-added{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1e40af;
}

@media (max-width:600px){
  .meta-row{flex-direction:column;align-items:flex-start;gap:6px}
}

/* Back to top */
.back-to-top{
  position:fixed;right:16px;bottom:24px;z-index:12060;
  width:44px;height:44px;border-radius:999px;
  background:var(--primary);color:#fff;text-decoration:none;
  display:none;align-items:center;justify-content:center;
  box-shadow:0 14px 30px rgba(29,78,216,.22);
  font-weight:900;font-size:20px;
}
.back-to-top.show{display:flex}
.back-to-top:hover{background:var(--primary-700)}

/* Listing page: gallery + sections */
.gallery{position:relative;border-radius:16px;overflow:hidden;background:#e5e7eb;border:1px solid var(--border);box-shadow:var(--shadow)}
.gallery .slides{display:flex;transition:transform .35s ease;touch-action:pan-y;gap:0}
.gallery .slide{flex:0 0 100%;}
.gallery .media{width:100%;height:auto;display:block;}
.gallery video.media{max-height:70vh;object-fit:contain;background:#000;}

/*
  Each slide remains full-width, but we add a small gap between slides.
  gallery.js computes translateX in pixels to account for this gap.
*/
.gallery img{width:100%;height:auto;object-fit:contain;flex:0 0 100%}
.gallery .nav{
  position:absolute;top:50%;transform:translateY(-50%);
  background:rgba(255,255,255,.92);
  border:1px solid rgba(229,231,235,.9);
  border-radius:999px;padding:10px 14px;cursor:pointer;
  box-shadow:0 10px 18px rgba(17,24,39,.10);
}
.gallery .prev{left:10px}.gallery .next{right:10px}
.gallery .dots{position:absolute;left:0;right:0;bottom:10px;display:flex;gap:6px;justify-content:center}
.gallery .dots button{width:8px;height:8px;border-radius:999px;border:0;background:#fff;opacity:.55}
.gallery .dots button.active{opacity:1}

.lightbox{position:fixed;inset:0;background:rgba(17,24,39,.88);display:none;align-items:center;justify-content:center;z-index:10050; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.lightbox.open{display:flex}
.lightbox .content{
  position:relative;
  max-width:96vw;
  max-height:92vh;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lightbox img{
  display:block;
  width:auto;
  height:auto;
  max-width:96vw;
  max-height:92vh;
  object-fit:contain;
}
.lightbox .nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:48px;height:48px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(229,231,235,.9);
  border-radius:999px;
  cursor:pointer;
  box-shadow:0 10px 18px rgba(17,24,39,.14);
  user-select:none;
  -webkit-tap-highlight-color:transparent;
}
.lightbox .prev{left:10px}.lightbox .next{right:10px}
.lightbox .close{position:absolute;top:12px;right:12px;background:#fff;border:1px solid rgba(229,231,235,.9);border-radius:999px;padding:8px 12px;cursor:pointer}


/* === Lightbox mobile safety tweaks (2026-01-28) ===
   Fix: arrows/close were positioned outside viewport on small screens
   and lightbox could sit behind fixed headers/buttons.
*/
@media (max-width: 700px){
  .lightbox{ z-index: 10050; }
  .lightbox .content{ max-width:100vw; max-height:100vh; }
  .lightbox img{ max-width:100vw; max-height:88vh; }
  .lightbox .nav{ top:50%; }
  .lightbox .prev{ left:12px; }
  .lightbox .next{ right:12px; }
  .lightbox .close{ top:12px; right:12px; }
}

.section{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:16px;
}
.contact-list{display:grid;grid-template-columns:1fr;gap:10px}
.contact-list a{
  display:block;padding:10px 12px;border:1px solid #d1d5db;border-radius:12px;
  text-decoration:none;color:var(--ink);background:#fff;
}
.contact-list a:hover{border-color:#cbd5e1;background:#f9fafb}

/* Contact lock / blur for guests */
.blurred{filter:blur(6px);pointer-events:none;user-select:none}
.contact-locked{position:relative;display:grid;gap:10px}
.contact-locked .lock-overlay{
  display:flex;gap:10px;align-items:center;flex-wrap:wrap;
  padding:10px 12px;border-radius:12px;
  background:#f9fafb;border:1px solid #e5e7eb;color:var(--ink);
}
.lock-overlay .mini-btn{
  display:inline-block;
  padding:7px 10px;
  border-radius:10px;
  background:var(--primary);
  color:#fff;
  font-weight:900;
  text-decoration:none;
  line-height:1;
}
.lock-overlay .mini-btn:hover{filter:brightness(.98)}
.lock-overlay .mini-btn.alt{background:var(--rent);}

/* Mini action buttons (edit/delete) */
.actions-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.btn-mini{
  display:inline-block;
  padding:7px 10px;
  font-size:12px;
  font-weight:900;
  border-radius:10px;
  background:#f3f4f6;
  border:1px solid #e5e7eb;
  color:#111827;
  text-decoration:none;
  line-height:1;
}
.btn-mini:hover{background:#e5e7eb}
.btn-mini.success{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.btn-mini.danger{background:#fee2e2;border-color:#fecaca;color:#991b1b}

/* Edge cases */
.card.no-photos .thumb{display:none}

/* --- Internal promo / advertise tiles (Rentals) --- */
.card.ad-tile{
  /* Promo tile should use the whole card area so the banner can be large and centered */
  display:flex;
  align-items:stretch;
  justify-content:center;
  padding:0;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  min-height: 320px; /* aligns with typical listing card height */
  position:relative;
}

/* Brand/banner tile: keep a portrait-friendly proportion so the banner can be big */
.card.ad-tile.ad-tile-brand{
  aspect-ratio: 9 / 16;
  max-height: 560px; /* prevents an excessively tall tile in 1-column list view */
}

/* AdSense tile: keep the sponsored tile the same height as standard listing cards */
.card.ad-tile.ad-tile-adsense{
  /* override promo defaults */
  padding:12px;
  min-height:0;
  height:320px;
  max-height:320px;
  display:flex;
  align-items:stretch;
  justify-content:center;
  background:#fff;
}
.card.ad-tile.ad-tile-adsense ins.adsbygoogle{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-height:100% !important;
}

/* Invite tile ("Your advert could be here") */
.ad-invite{
  height:100%;
  width:100%;
  flex:1;
  padding:16px;
  border-radius:16px;
  background: linear-gradient(180deg, rgba(34,197,94,.10), rgba(59,130,246,.08));
  border:1px solid rgba(0,0,0,.10);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.ad-pill{
  align-self:flex-start;
  font-weight:900;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(0,0,0,.70);
  color:#fff;
  line-height:1;
}
.ad-title{
  font-weight:1000;
  font-size:18px;
  letter-spacing:-.2px;
}
.ad-sub{
  color: var(--muted);
  font-weight:800;
  font-size:13px;
}
.ad-wa{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:6px;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  background:#fff;
  font-weight:900;
}
.ad-wa-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:999px;
  background: rgba(34,197,94,.12);
  color: rgba(16,185,129,1);
}
.ad-wa-text{font-size:13px}
.ad-ghost-input{
  height:46px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.55);
}

/* Brand promo tile (your image) */
.ad-brand{
  position:relative;
  flex:1;
  width:100%;
  /* Center the banner inside the available tile area */
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
}
.ad-brand img{
  /* Key: keep full banner visible (no cropping), but make it as large as possible */
  height:100%;
  width:100%;
  max-height:100%;
  max-width:100%;
  display:block;
  object-fit:contain;
  object-position:center;
}
.ad-brand-overlay{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:12px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.62));
  color:#fff;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
}
.ad-brand-kicker{
  font-weight:1000;
  font-size:12px;
  letter-spacing:.4px;
  text-transform:uppercase;
  opacity:.95;
}
.ad-brand-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:1000;
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
}

/* Hover affordance */


/* Local in-feed tile: "Your ad could be here" (square image + 2 languages + email) */
.card.local-ad-tile{
  text-decoration:none;
  color:inherit;
}
.card.local-ad-tile .thumb{
  background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(16,185,129,.08));
  display:flex;
  align-items:center;
  justify-content:center;
}
.card.local-ad-tile .thumb img{
  width:92%;
  height:92%;
  object-fit:contain;
  border-radius:14px;
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
}
.card.local-ad-tile .body{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:8px;
}
.card.local-ad-tile .title{
  font-weight:850;
  letter-spacing:.2px;
  margin:0;
}
.card.local-ad-tile .local-ad-sub{
  font-weight:800;
  opacity:.92;
  font-size:13px;
}
.card.local-ad-tile .local-ad-mail{
  margin-top:2px;
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(0,0,0,.05);
  border:1px solid rgba(0,0,0,.08);
  font-weight:900;
  font-size:12px;
}

/* Make the square feel bigger on phones */
@media (max-width: 560px){
  .grid.view-list .card.local-ad-tile .thumb{
    aspect-ratio: 1 / 1 !important;
    width:132px;
    background:#eef2ff;
  }
  .grid.view-list .card.local-ad-tile .thumb img{
    width:96%;
    height:96%;
  }
}
.card.ad-tile:hover{transform:translateY(-1px)}

@media (max-width: 420px){
  .card.ad-tile{ min-height: 300px; }
  .ad-title{ font-size:17px; }
}
/* ---------------------------------------------- */

/* ===== Layout: main + sidebar (Looking for panel) ===== */
.layout{display:grid;grid-template-columns:1fr;gap:16px;align-items:start}
.sidebar{width:100%}
@media (min-width: 1024px){
  .layout{grid-template-columns:1fr 360px;gap:18px}
  .sidebar{position:sticky;top:88px}
}

/* ===== Public chat: lock height (no page growth) ===== */
@media (min-width: 1024px){
  .sidebar .req-chat .publicChatWidget{
    height: clamp(620px, calc(100vh - 180px), 960px) !important;
    max-height: 960px !important;
  }
}


/* ===== Desktop chat dock (uses empty right-side page space) ===== */
.mode-chat-dock{display:none}
@media (min-width: 1320px){
  html.mode-chat-docked body.mode-swap .mode-chat-dock,
  html.mode-chat-docked body.mode-rent .mode-chat-dock,
  html.mode-chat-docked body.mode-sale .mode-chat-dock{
    display:block;
    position:fixed;
    /* Allow the dock to span the full viewport height so the input + toggle never get clipped */
    top:12px;
    bottom:12px;
    right:28px; /* default side, can be overridden by JS (left/right) */
    width:360px;
    max-width:calc(100vw - 56px);
    z-index:1200;
    display:flex;
    flex-direction:column;
  }

  /* When docked, the whole panel should flex so the widget stays fully visible */
  html.mode-chat-docked .mode-chat-dock #requests-swap-chat,
  html.mode-chat-docked .mode-chat-dock #requests-rent-chat,
  html.mode-chat-docked .mode-chat-dock #requests-sale-chat{
    flex:1;
    min-height:0;
    display:flex;
    flex-direction:column;
  }

  html.mode-chat-docked .mode-chat-dock .req-chat{
    margin:0;
    height:100%;
    max-height:none;
    overflow:hidden;
    display:flex;
    flex-direction:column;
  }
  /* When docked: keep widget height fixed and hide the safety note below it
     to prevent the dock from extending under the viewport. */
  html.mode-chat-docked .mode-chat-dock .publicChatWidget{
    height:100% !important;
    max-height:none !important;
    min-height:0 !important;
  }
  html.mode-chat-docked .mode-chat-dock .req-chat > .req-note{ display:none !important; }
  html.mode-chat-docked .mode-chat-dock .req-chat .pcw-messages{
    max-height:none;
  }

  /* Dock toggle bar (under the widget) */
  html.mode-chat-docked .mode-chat-dock .pcw-dock-togglebar{
    flex:0 0 auto;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    padding:8px 6px 0;
  }
  html.mode-chat-docked .mode-chat-dock .pcw-dock-togglebtn{
    width:42px;height:42px;
    border-radius:999px;
    border:1px solid rgba(29,78,216,.25);
    background:linear-gradient(180deg, rgba(29,78,216,.95), rgba(29,78,216,.82));
    color:#fff;
    font-weight:1000;
    font-size:20px;
    cursor:pointer;
    box-shadow:0 14px 26px rgba(29,78,216,.22);
  }
  html.mode-chat-docked .mode-chat-dock .pcw-dock-togglebtn:hover{ filter:brightness(1.03); }
  html.mode-chat-docked .mode-chat-dock .pcw-dock-togglebtn:active{ transform:translateY(1px); }

  /* Lift the main page slightly when the dock is active (so header matches the new top-aligned chat) */
  html.mode-chat-docked body .container{ margin-top:0; }
  html.mode-chat-docked body .ukhh-return-wrap{ margin:6px 0 6px; }
  html.mode-chat-docked body .ukhh-separator{ margin-bottom:10px; }

  /* Hide the normal sidebar in docked modes so listings keep full width */
  html.mode-chat-docked body.mode-swap .layout,
  html.mode-chat-docked body.mode-rent .layout,
  html.mode-chat-docked body.mode-sale .layout{grid-template-columns:1fr !important}
  html.mode-chat-docked body.mode-swap .sidebar,
  html.mode-chat-docked body.mode-rent .sidebar,
  html.mode-chat-docked body.mode-sale .sidebar{display:none !important}
}
/* ===== "Looking for" panels ===== */
.req-flash{border:1px solid var(--border);border-radius:14px;padding:10px 12px;background:#fff;box-shadow:0 8px 18px rgba(17,24,39,.06);margin:0 0 12px;font-weight:800;font-size:13px}
.req-flash.ok{border-color:#a7f3d0;background:#ecfdf5;color:#065f46}
.req-flash.err{border-color:#fecaca;background:#fef2f2;color:#991b1b}

.req-panel{background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 10px 22px rgba(17,24,39,.06);padding:12px;margin:0 0 14px}
.req-head{display:grid;gap:4px;margin:2px 0 10px}
.req-title{font-weight:900;letter-spacing:-.15px}
.req-sub{color:var(--muted);font-size:13px;font-weight:700}

.req-panel.req-rent .req-title{color:var(--rent)}
.req-panel.req-sale .req-title{color:var(--sale)}

.req-note{color:var(--muted);font-size:13px;margin:0 0 10px}

.req-form{display:grid;gap:10px;margin:0 0 12px}
.req-form textarea.input{resize:vertical;min-height:84px}
.req-submit{width:100%}

.req-list{border-top:1px solid var(--border);padding-top:10px;margin-top:10px}
.req-list-title{font-weight:900;font-size:13px;color:var(--muted);margin:0 0 8px}
.req-item{border:1px solid var(--border);border-radius:14px;padding:10px 10px;background:#fff;margin:0 0 10px}
.req-item-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.req-area{font-weight:900}
.req-date{color:var(--muted);font-size:12px;font-weight:800;white-space:nowrap}
.req-meta{color:var(--muted);font-size:13px;margin-top:2px;font-weight:700}
.req-msg{margin-top:6px;font-size:13px;color:var(--ink)}
.req-contact{margin-top:8px;display:grid;gap:4px}
.req-wa{display:inline-flex;align-items:center;gap:6px;text-decoration:none;font-weight:900}
.req-wa:hover{text-decoration:underline}
.req-phone{font-weight:900}
.req-login{color:var(--muted);font-size:13px;font-weight:800}


/* Looking-for request actions */
.req-actions{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;flex-wrap:wrap;
  margin-top:10px;padding-top:8px;
  border-top:1px solid rgba(15,23,42,.10);
}
.req-exp{font-size:12px;color:rgba(15,23,42,.70)}
.req-actform{margin:0}
.req-btn{
  border:0;border-radius:10px;
  padding:8px 12px;
  font-weight:900;font-size:12px;
  cursor:pointer;
}
.req-report{background:rgba(2,132,199,.12);color:#075985}
.req-del{background:rgba(220,38,38,.12);color:#991b1b}
.req-btn:hover{filter:brightness(0.98)}


/* ===== Looking-for carousel + contact reveal ===== */
.req-carousel{position:relative}
.req-items{padding-right:42px}
.req-nav{
  position:absolute; right:8px;
  width:32px; height:32px;
  border:1px solid var(--border);
  background:#fff;
  border-radius:10px;
  font-weight:900;
  line-height:30px;
  text-align:center;
  cursor:pointer;
  box-shadow:0 6px 14px rgba(17,24,39,.08);
}
.req-nav:hover{filter:brightness(0.99)}
.req-prev{top:6px}
.req-next{top:44px}

.req-contact-masked .req-line{font-weight:900}
.req-mask{letter-spacing:.3px}
.req-reveal{
  margin-top:6px;
  border:1px solid var(--border);
  background:rgba(2,132,199,.10);
  color:#075985;
  font-weight:900;
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
  width:fit-content;
}
.req-reveal:hover{filter:brightness(0.99)}
.req-contact-full{margin-top:6px;display:grid;gap:4px}
.req-wa-full{display:inline-flex;align-items:center;gap:6px;text-decoration:none;font-weight:900}
.req-wa-full:hover{text-decoration:underline}
.req-phone-full{font-weight:900}

.req-hide{background:rgba(245,158,11,.16);color:#92400e}

/* Make nav easier on very small screens */
@media (max-width:520px){
  .req-items{padding-right:0}
  .req-nav{position:static; display:inline-flex; align-items:center; justify-content:center; margin:0 6px 8px 0}
  .req-carousel{display:block}
}
/* === Navbar layout refinements (Swap/Rentals UI) — 2025-12-27 === */
/* Desktop: keep navbar the same width as the content/cards (not full browser width). */
@media (min-width: 901px){
  .navbar{
    max-width:1180px;
    margin:0 auto;
    border-radius:16px;
    overflow:hidden;
  }
}

/* Mobile: keep the top bar readable and make the last action button fit in one line. */
@media (max-width: 900px){
  html, body{overflow-x:hidden;}
  .navbar{
    max-width:none;
    width:100%;
    margin:0;
    border-radius:0;
    background:linear-gradient(180deg, rgba(219,234,254,.98) 0%, rgba(239,246,255,.92) 100%);
    border-bottom:1px solid rgba(191,219,254,.95);
  }
  .navbar .inner{ padding:10px 12px; }
  .navbar .brand a{ color:#0f172a; }

  .nav-actions{
    flex:1 1 auto;
    flex-wrap:nowrap;
    gap:6px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    max-width:100%;
    min-width:0;
  }
  .nav-actions::-webkit-scrollbar{ display:none; }
  .nav-actions .btn{
    flex:0 0 auto;
    padding:8px 9px;
    font-size:13px;
    border-radius:999px;
    white-space:nowrap;
  }
}

@media (max-width: 520px){
  .nav-actions{ gap:5px; }
  .nav-actions .btn{ padding:7px 8px; font-size:12px; }
}

@media (max-width: 360px){
  .nav-actions .btn{ padding:6px 7px; font-size:11px; }
}

/* === Header UI polish (2025-12-27) === */
/* Desktop: keep the top header bar the same width as the listings container */
@media (min-width: 901px){
  .navbar{
    max-width:1180px;
    margin:10px auto 14px auto;
    border:1px solid rgba(229,231,235,.9);
    border-radius:18px;
    box-shadow:0 10px 26px rgba(15,23,42,.06);
  }
  .navbar .inner{
    max-width:none;
    margin:0;
  }
}

/* Mobile: subtle blue header background (similar feel to the green hero on the homepage) */
@media (max-width: 900px){
  .navbar{
    background:linear-gradient(135deg, rgba(59,130,246,.16), rgba(99,102,241,.10));
    border-bottom:1px solid rgba(147,197,253,.60);
  }
  .brand a{ color:#0b1b35 !important; }
}

/* === URBIAX brand header === */
.brand .brand-link{
  display:inline-flex;
  flex-direction:column;
  gap:3px;
  text-decoration:none;
  font-weight:800;
  letter-spacing:0.2px;
  line-height:1.08;
  color:var(--ink);
  /* Keep brand casing as provided in HTML (e.g. "Urbiax.com") */
  text-transform:none;
}
.brand .brand-link .brand-main{
  display:inline-flex;
  align-items:baseline;
  gap:0;
  font-weight:1000;
  font-size: 30px;
  letter-spacing:.3px;
  /* premium gradient text */
  background:linear-gradient(90deg, #0b1220 0%, #1d4ed8 55%, #0b1220 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.brand .brand-link .dotcom{ font-weight:900; opacity:0.92; }
.brand .brand-link .brand-sub{
  font-weight:700;
  font-size:13px;
  opacity:0.72;
}

/* brand size tweak */
@media (min-width: 1200px){
  .brand .brand-link .brand-main{ font-size:34px; }
  .brand .brand-link .brand-sub{ font-size:13px; }
}
.page-title{
  margin:16px 0;
  font-size:32px;
  letter-spacing:-0.4px;
}
.page-title .pt-light{ font-weight:600; opacity:0.85; }

/* Remove old UKHH return styles (kept for backward compatibility) */
.ukhh-return-wrap, .ukhh-separator{ display:none !important; }

/* === Footer === */
.ux-footer{
  margin-top:34px;
  border-top:1px solid rgba(0,0,0,0.06);
  background: #f7f8fb;
}
.ux-footer__inner{
  max-width: 1180px;
  margin:0 auto;
  padding:22px 16px;
  display:grid;
  gap:16px;
  grid-template-columns: 1.2fr 0.9fr 0.7fr;
}
@media (max-width: 900px){
  .ux-footer__inner{ grid-template-columns: 1fr; }
}
.ux-footer__brand{ display:flex; flex-direction:column; gap:4px; }
.ux-footer__logo{ font-weight:900; font-size:18px; color:var(--ink); text-transform:none; }
.ux-footer__dotcom{ opacity:0.75; }
.ux-footer__tag{ font-weight:600; font-size:12px; opacity:0.75; }
.ux-footer__links{ display:flex; flex-wrap:wrap; gap:10px 14px; margin-bottom:8px; }
.ux-footer__links a{ text-decoration:none; font-weight:700; font-size:13px; color:var(--ink); opacity:0.80; }
.ux-footer__links a:hover{ opacity:1; text-decoration:underline; }
.ux-footer__small{ font-size:12px; line-height:1.45; opacity:0.80; }
.ux-footer__sep{ margin:0 6px; opacity:0.5; }
.ux-footer__badges{ display:flex; gap:10px; margin-top:12px; }
.ux-footer__badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(0,0,0,0.06);
  text-decoration:none;
  font-weight:800;
  font-size:12px;
  color:var(--ink);
  opacity:0.9;
}
.ux-footer__badge:hover{ opacity:1; }

/* Legal pages */
.legal-page{
  max-width: 900px;
  margin: 0 auto;
  padding: 22px 16px 0;
}
.legal-page h1{ margin: 14px 0 10px; }
.legal-page h2{ margin: 18px 0 10px; }
.legal-page p, .legal-page li{ opacity:0.9; line-height:1.55; }
.legal-back{
  display:inline-block;
  text-decoration:none;
  font-weight:800;
  color:var(--ink);
  opacity:0.75;
}
.legal-back:hover{ opacity:1; text-decoration:underline; }

/* --- MOBILE/TABLET ONLY tweaks (UI only; no logic) --- */

/* Always show .com in the brand (desktop + mobile) */
.brand-main .dotcom{
  display:inline;
  margin-left:2px;
  font-weight:1000;
  font-size:0.72em;
  background:linear-gradient(90deg, #0b1220 0%, #1d4ed8 55%, #0b1220 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
  opacity:0.95;
}

/* Mobile + tablet */
@media (max-width: 1024px){

  /* Hide request jump helper buttons on mobile/tablet */
  .req-jump{ display:none !important; }

  /* List view cards: compact (basic info: type/price/location/date) */
  .grid.view-list .card{
    display:grid;
    /* Keep the photo smaller on mobile and give text its own clean column */
    grid-template-columns:132px 1fr;
    gap:10px;
    align-items:stretch;
  }
  .grid.view-list .card .thumb{
    height:auto;
    min-height:92px;
    aspect-ratio: 1 / 1;
  }
  .grid.view-list .card .thumb{grid-column:1;min-width:0;display:flex;align-items:center;justify-content:center;}
  .grid.view-list .card .body{grid-column:2;min-width:0;}
  .grid.view-list .card .body{
    padding:10px 12px 10px;
    background:var(--card);
  }
  .grid.view-list .card .title{
    display:none;
  }
  .grid.view-list .card .price{
    font-size:14px;
    line-height:1.2;
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    align-items:center;
  }
  .grid.view-list .card .badge{
    font-size:10px;
    padding:2px 8px;
  }
  .grid.view-list .card .meta-row{
    margin-top:6px;
    gap:6px;
  }
  .grid.view-list .card .meta-pill{
    font-size:10px;
    padding:2px 8px;
  }

  /* If no photo, keep normal block layout */
  .grid.view-list .card.no-photos{display:grid;}

  /* Keep promo/ad tiles as full-size banners even in list view */
  .grid.view-list .card.ad-tile{
    display:flex;
    grid-template-columns:none;
    gap:0;
  }
}

/* Phones: tighten the list layout so text never sits on top of the photo */
@media (max-width: 560px){
  .grid.view-list .card{
    grid-template-columns:132px 1fr;
    gap:14px;
    align-items:stretch;
  }
  .grid.view-list .card .thumb{
    grid-column:1;
    width:132px;
    height:auto;
    aspect-ratio: 4 / 3;
    min-height:96px;
    border-radius:14px;
    overflow:hidden;
    background:#e5e7eb;
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
  }
  .grid.view-list .card .thumb img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block}
  .grid.view-list .card .body{
    grid-column:2;
    min-width:0;
  }

  /* Promo/ad tiles: do not force 2-column list layout */
  .grid.view-list .card.ad-tile{
    display:flex;
    grid-template-columns:none;
    gap:0;
  }
}


  .listing-tag{font-size:11px;padding:4px 8px;border-radius:10px;margin-bottom:6px;}
  .listing-title{
    font-size:14px;
    line-height:1.25;
    margin-bottom:6px;
    word-break:break-word;
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
  }
}

/* Phones: keep Search + Type on one row (2 columns) */
@media (max-width: 560px){
  .toolbar .t-row1{ grid-template-columns: 1fr 1fr; }
  .toolbar .t-row1 > *{ min-width:0; }
}

/* Very small phones */
@media (max-width: 420px){
  .grid.view-list .card{
    grid-template-columns:108px 1fr;
  }
}

/* Show .com in logo and ensure it is always visible */
.urbiax-logo .com {
    display: inline-block !important;
}


/* Placeholder for cards with no photo */
.thumb-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#e5e7eb;color:#64748b;font-weight:700;border-radius:12px;}
.thumb-placeholder span{font-size:12px;letter-spacing:.02em;}

.kind-row{margin-bottom:6px;display:flex;gap:8px;flex-wrap:wrap;align-items:center;}



/* Mobile-friendly listing type tags (Rent/Sale/Swap) */
.listing-tag{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  padding:4px 8px;
  border-radius:8px;
  margin-bottom:6px;
  letter-spacing:.2px;
}
.tag-rent{background:#e6f6ea;color:#1f7a3a;}
.tag-sale{background:#e6f0ff;color:#1f4fd8;}
.tag-swap{background:#fff4e6;color:#b45309;}

.listing-title{
  font-size:15px;
  font-weight:700;
  line-height:1.2;
  margin-bottom:6px;
}

/* In list (mobile) layout keep titles compact and prevent spilling over the photo */
.grid.view-list .listing-title{
  font-size:14px;
  line-height:1.15;
  margin-bottom:6px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  word-break:break-word;
}

.grid.view-list .listing-tag{
  font-size:11px;
  padding:3px 7px;
  margin-bottom:6px;
}



/* Gallery: eliminate large grey blocks, keep media fully visible */
.gallery{background:transparent !important;height:auto !important;min-height:0 !important;}
.gallery .slides{align-items:flex-start;}
.gallery .slide{display:flex;align-items:flex-start;}
.gallery .media{max-height:none;}
.gallery img.media{object-fit:contain;}


/* AdSense in-feed tile */
.ad-tile-adsense{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  min-height:320px;
}
.ad-tile-adsense ins.adsbygoogle{
  width:100%;
  min-height:280px;
}


/* === Mobile header auto-hide (SMOOTH v2, 2026-01-27) ===
   Enabled by /rentals/assets/navhide_mobile.js
   - Keeps body padding stable (no scroll jump)
   - Moves content with transform when header is hidden (no empty gap)
*/
@media (max-width: 1024px){
  html.navhide-mobile body{
    /* stable space for fixed navbar */
    padding-top: var(--navh, 72px) !important;
  }

  html.navhide-mobile .navbar{
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    transform: translate3d(0,0,0);
    transition: transform .26s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
  }

  /* Smoothly lift the main content instead of changing layout padding */
  html.navhide-mobile .container{
    will-change: transform;
    transition: transform .26s cubic-bezier(.22, 1, .36, 1);
  }

  html.navhide-mobile.nav-hidden .navbar{
    transform: translate3d(0, calc(var(--navh, 72px) * -1), 0) !important;
  }

  html.navhide-mobile.nav-hidden .container{
    transform: translate3d(0, calc(var(--navh, 72px) * -1), 0);
  }

  /* Keep padding stable even when hidden (prevents jump / gap glitches) */
  html.navhide-mobile.nav-hidden body{
    padding-top: var(--navh, 72px) !important;
  }

  @media (prefers-reduced-motion: reduce){
    html.navhide-mobile .navbar,
    html.navhide-mobile .container{
      transition: none !important;
    }
  }
}


/* -------------------- Back to top button -------------------- */
.rb-backtop{
  position: fixed;
  right: 16px;
  bottom: 92px; /* keep above mobile chat FAB */
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(29,78,216,.26);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
}
.rb-backtop:hover{ filter: brightness(0.98); }
.rb-backtop:active{ transform: translateY(1px); }
.rb-backtop.is-show{ display: flex; }

@media (min-width: 1025px){
  .rb-backtop{ bottom: 24px; }
}

/* =========================================================
   COLOR POLISH PACK (subtle, not overdone) — v1
   Goal: add gentle accent/contrast so UI is less "flat"
   ========================================================= */

/* Softer background with a hint of brand colour */
body{
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(29,78,216,.10), rgba(243,244,246,0) 60%),
    radial-gradient(720px 320px at 10% 10%, rgba(15,118,110,.10), rgba(243,244,246,0) 55%),
    radial-gradient(720px 320px at 90% 18%, rgba(245,158,11,.10), rgba(243,244,246,0) 55%),
    var(--bg);
}

/* Tabs: slightly richer, more premium */
.mode-tabs{
  border-color: rgba(17,24,39,.10);
  box-shadow: 0 10px 24px rgba(17,24,39,.08);
}
.mode-tab{
  position:relative;
}
.mode-tab.active{
  box-shadow: inset 0 -2px 0 rgba(255,255,255,.22);
}
.mode-tab.active::after{
  content:"";
  position:absolute;
  left:14px; right:14px; bottom:8px;
  height:4px;
  border-radius:999px;
  background: rgba(255,255,255,.55);
}

/* Filter accordion: add a bit of colour + better affordance */
.filters-accordion{
  border-color: rgba(17,24,39,.10) !important;
  box-shadow: 0 12px 28px rgba(17,24,39,.08) !important;
}
.filters-acc-head{
  background:
    radial-gradient(800px 120px at 20% 0%, rgba(15,118,110,.10), rgba(255,255,255,0) 60%),
    radial-gradient(800px 120px at 90% 0%, rgba(245,158,11,.10), rgba(255,255,255,0) 60%),
    #fff !important;
  border-bottom-color: rgba(17,24,39,.10) !important;
}
.filters-acc-title{
  font-weight: 950 !important;
}
.filters-acc-chevron{
  transition: transform .18s ease;
}
.filters-acc-head[aria-expanded="false"] .filters-acc-chevron{ transform: rotate(-90deg); }

/* Inputs: slightly nicer fill + clearer focus */
.input{
  background: #f9fafb;
  border-color: rgba(17,24,39,.12);
}
.input:focus{
  background:#fff;
  border-color: rgba(29,78,216,.45);
  box-shadow: 0 0 0 4px rgba(29,78,216,.16);
}

/* Search/Reset buttons: subtle gradient */
.toolbar .btn.primary,
.toolbar .btn.search-btn,
button.btn.primary,
a.btn.primary{
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-700) 100%);
}
.btn.rental-btn{
  background: linear-gradient(180deg, var(--rent) 0%, var(--rent-700) 100%);
}
.btn.sale-btn{
  background: linear-gradient(180deg, #fbbf24 0%, var(--sale-accent) 100%);
}
.btn.swap-btn{
  background: linear-gradient(180deg, var(--swap) 0%, var(--swap-700) 100%);
}

/* Cards: add a tiny top accent strip based on type */
.card{ isolation:isolate; }
.card::before{
  content:"";
  position:absolute;
  left:0; top:0; right:0;
  height:4px;
  opacity:.0;
  transform: translateY(-2px);
  transition: opacity .18s ease, transform .18s ease;
}
.card:hover::before{ opacity:1; transform: translateY(0); }

.card.is-rent::before{
  background: linear-gradient(90deg, rgba(15,118,110,.0), rgba(15,118,110,.85), rgba(15,118,110,.0));
}
.card.is-sale::before{
  background: linear-gradient(90deg, rgba(245,158,11,.0), rgba(245,158,11,.92), rgba(245,158,11,.0));
}
.card.is-swap::before{
  background: linear-gradient(90deg, rgba(29,78,216,.0), rgba(29,78,216,.85), rgba(29,78,216,.0));
}

/* Listing tags: align colours with rent/sale/swap + add subtle border */
.tag-rent{
  background: rgba(15,118,110,.12) !important;
  color: var(--rent-700) !important;
  border: 1px solid rgba(15,118,110,.22);
}
.tag-sale{
  background: rgba(245,158,11,.14) !important;
  color: var(--sale-700) !important;
  border: 1px solid rgba(245,158,11,.22);
}
.tag-swap{
  background: rgba(29,78,216,.12) !important;
  color: var(--swap-700) !important;
  border: 1px solid rgba(29,78,216,.22);
}

/* Tip box: a touch of colour */
.rentals-tipbox{
  background:
    radial-gradient(800px 120px at 10% 0%, rgba(15,118,110,.10), rgba(255,255,255,0) 65%),
    radial-gradient(800px 120px at 90% 0%, rgba(29,78,216,.10), rgba(255,255,255,0) 65%),
    rgba(255,255,255,.95) !important;
  border-color: rgba(17,24,39,.10) !important;
  box-shadow: 0 10px 26px rgba(17,24,39,.08) !important;
}

/* ===== Mobile: slightly larger promo tiles & ad squares (requested) ===== */
@media (max-width: 560px){
  /* 1) UKHandyHelpers promo tile (ad-invite) — a bit larger text and breathing room */
  .card.ad-tile .ad-invite{ padding:18px; }
  .card.ad-tile .ad-title{ font-size:20px; }
  .card.ad-tile .ad-sub{ font-size:14px; }
  .card.ad-tile .ad-note{ font-size:12px; }

  /* 2) Local ad square tile — make the square ~1 size bigger and centered */
  .grid.view-list .card.local-ad-tile{
    grid-template-columns:168px 1fr !important;
  }
  .grid.view-list .card.local-ad-tile .thumb{
    width:168px !important;
    aspect-ratio:1 / 1 !important;
    min-height:168px;
  }
  .grid.view-list .card.local-ad-tile .thumb img{
    width:98% !important;
    height:98% !important;
  }

  /* In list view the generic rule hides .title; keep it visible for the ad */
  .grid.view-list .card.local-ad-tile .body .title{ display:block !important; font-size:14px; }
  .grid.view-list .card.local-ad-tile .local-ad-sub{ font-size:13px; }
  .grid.view-list .card.local-ad-tile .local-ad-mail{ font-size:12px; }
}

@media (max-width: 420px){
  .grid.view-list .card.local-ad-tile{ grid-template-columns:146px 1fr !important; }
  .grid.view-list .card.local-ad-tile .thumb{ width:146px !important; min-height:146px; }
}

/* === Mobile ad tiles sizing (2026-01-28) === */

@media (max-width: 560px){

  /* Rents_view list mode: Local square ad should be centered (no empty right column) */
  .grid.view-list .card.local-ad-tile{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    padding:14px 12px !important;
    gap:10px !important;
  }
  .grid.view-list .card.local-ad-tile .thumb{
    width: clamp(210px, 72vw, 290px) !important;
    aspect-ratio: 1 / 1 !important;
    height:auto !important;
    border-radius:18px !important;
    overflow:hidden !important;
    margin:0 auto !important;
    background:#eef2ff !important;
  }
  .grid.view-list .card.local-ad-tile .thumb img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    border-radius:18px !important;
  }
  .grid.view-list .card.local-ad-tile .body{
    display:none !important;
  }

  /* Homepage promo tiles (index.php): enlarge both tiles slightly on phones */
  .card.promo-tile{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:10px 0;
  }
  .card.promo-tile .promo-brand{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .card.promo-tile .promo-brand img{
    width:94%;
    max-width:460px;
    height:auto;
  }

  .card.promo-tile.promo-tile-local{
    padding:12px 0;
  }
  .card.promo-tile.promo-tile-local .promo-brand-local{
    width: clamp(230px, 78vw, 340px);
    aspect-ratio: 1 / 1;
    border-radius:18px;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#eef2ff;
  }
  .card.promo-tile.promo-tile-local .promo-brand-local img{
    width:100%;
    height:100%;
    object-fit:contain;
  }
}

/* ===== Mobile: make UKHandyHelpers promo tile match local-ad square size (requested) ===== */
@media (max-width: 560px){
  /* Promo tiles (e.g., UKHandyHelpers banner) in list view: remove empty right column and center the creative */
  .grid.view-list .card.promo-tile{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    padding:12px !important;
  }
  .grid.view-list .card.promo-tile .thumb,
  .grid.view-list .card.promo-tile .ad-thumb,
  .grid.view-list .card.promo-tile .promo-thumb,
  .grid.view-list .card.promo-tile .ad-brand{
    width: clamp(230px, 78vw, 340px) !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 18px !important;
    overflow:hidden !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background: rgba(0,0,0,.04);
  }
  .grid.view-list .card.promo-tile img{
    width: 98% !important;
    height: 98% !important;
    object-fit: contain !important;
  }
  .grid.view-list .card.promo-tile .body{
    width:100% !important;
    padding:12px 6px 6px !important;
    text-align:center !important;
  }
}


/* === Reviews / ratings (2026-03-08 v3) === */
.listing-reviews-mini{display:flex;align-items:center;gap:7px;margin:8px 0 4px;font-size:13px;font-weight:800;color:#475569}
.listing-reviews-mini .stars{color:#f4b400;letter-spacing:1.5px;font-size:16px;text-shadow:0 1px 0 rgba(255,255,255,.65),0 0 10px rgba(245,158,11,.18)}
.listing-reviews-mini .num{color:#0f172a}
.listing-reviews-mini .count{opacity:.82}
.listing-reviews-mini.is-empty{font-weight:700;color:#94a3b8}

.reviews-section{display:grid;gap:16px}
.reviews-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;flex-wrap:wrap}
.reviews-policy{margin-top:7px;color:var(--muted);font-size:13px;line-height:1.5}
.reviews-summary{padding:15px 16px;border:1px solid rgba(245,158,11,.18);border-radius:16px;background:linear-gradient(180deg,#fffdf6 0%,#ffffff 100%);box-shadow:0 10px 24px rgba(15,23,42,.05);min-width:240px}
.reviews-summary.is-empty{opacity:.96}
.reviews-summary-stars{font-size:28px;letter-spacing:3px;color:#f4b400;font-weight:900;text-shadow:0 1px 0 rgba(255,255,255,.85),0 0 14px rgba(245,158,11,.20)}
.reviews-summary-stars.is-ghost,.listing-reviews-mini .stars.is-ghost,.reviews-guest-stars{color:#f8d56b;letter-spacing:3px;opacity:.98}
.reviews-guest-stars{font-size:34px;line-height:1;text-shadow:0 1px 0 rgba(255,255,255,.75),0 0 12px rgba(245,158,11,.16)}
.reviews-summary-score{margin-top:6px;font-size:14px;color:#334155}
.reviews-flash{padding:12px 14px;border-radius:12px;font-weight:700}
.reviews-flash-ok{background:#dcfce7;color:#166534;border:1px solid #86efac}
.reviews-flash-warn{background:#fef3c7;color:#92400e;border:1px solid #fcd34d}
.reviews-flash-err{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5}
.reviews-compose{padding:16px;border:1px solid rgba(245,158,11,.14);border-radius:18px;background:linear-gradient(180deg,#fffef9 0%,#ffffff 100%);box-shadow:0 12px 26px rgba(15,23,42,.05)}
.reviews-lock{color:#475569;line-height:1.55}
.reviews-form{display:grid;gap:14px}
.reviews-form-head{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.reviews-form-title{font-weight:900;color:#0f172a;font-size:18px}
.reviews-textarea{resize:vertical;min-height:112px;border-radius:14px}
.reviews-form-foot{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.reviews-help{font-size:13px;color:#64748b;line-height:1.45}
.star-picker{display:inline-flex;flex-direction:row-reverse;justify-content:flex-end;gap:4px;padding:4px 0}
.star-picker input{position:absolute;left:-9999px}
.star-picker label{font-size:38px;line-height:1;cursor:pointer;color:#d7dee8;transition:transform .14s ease,color .14s ease,text-shadow .14s ease;filter:drop-shadow(0 1px 0 rgba(255,255,255,.85))}
.star-picker label:hover,.star-picker label:hover ~ label,.star-picker input:checked ~ label{color:#f4b400;text-shadow:0 0 12px rgba(245,158,11,.24)}
.star-picker label:hover{transform:scale(1.08)}
.reviews-list{display:grid;gap:12px}
.review-item{border:1px solid rgba(245,158,11,.12);border-radius:18px;padding:15px 16px;background:linear-gradient(180deg,#ffffff 0%,#fffdfa 100%);box-shadow:0 10px 22px rgba(15,23,42,.04)}
.review-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.review-stars{font-size:22px;letter-spacing:2px;color:#f4b400;font-weight:900;text-shadow:0 1px 0 rgba(255,255,255,.85),0 0 12px rgba(245,158,11,.18)}
.review-meta-line{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:5px;color:#64748b;font-size:13px}
.review-author{font-weight:800;color:#0f172a}
.review-dot{opacity:.5}
.review-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:rgba(34,197,94,.1);color:#166534;font-size:12px;font-weight:800}
.review-text{margin-top:10px;white-space:pre-line;color:#1e293b;line-height:1.65}
.reviews-empty{padding:14px 16px;border:1px dashed rgba(245,158,11,.28);border-radius:16px;color:#64748b;background:linear-gradient(180deg,#fffef9 0%,#ffffff 100%)}

@media (max-width: 700px){
  .reviews-summary{min-width:0;width:100%}
  .reviews-form-foot{align-items:flex-start}
  .review-top{flex-direction:column}
}

/* Reviews v6 - cleaner Airbnb/Booking inspired UI */
.reviews-airbnb{display:grid;gap:18px}
.reviews-airbnb .reviews-head{display:block}
.reviews-airbnb .reviews-head h3{font-size:22px;font-weight:900;color:#1f2937}
.reviews-airbnb .reviews-summary{padding:0;border:0;background:transparent;box-shadow:none;min-width:0}
.reviews-airbnb .reviews-summary-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:2px}
.reviews-airbnb .reviews-summary-value{font-size:18px;font-weight:900;color:#111827;line-height:1}
.reviews-airbnb .reviews-summary-value.muted{color:#6b7280}
.reviews-airbnb .reviews-summary-stars{font-size:32px;letter-spacing:2px;color:#f6b81a;font-weight:900;text-shadow:0 1px 0 rgba(255,255,255,.8)}
.reviews-airbnb .reviews-summary-stars.is-ghost{color:#f7c948;opacity:1}
.reviews-airbnb .reviews-summary-count{font-size:15px;color:#4b5563}
.reviews-airbnb .reviews-compose{padding:0;border:0;background:transparent;box-shadow:none}
.reviews-auth-card{display:grid;gap:16px;padding:0 0 18px 0;border-bottom:1px solid #e5e7eb}
.reviews-auth-copy{font-size:17px;line-height:1.45;color:#374151}
.reviews-login-btn{display:inline-flex;align-items:center;justify-content:center;width:fit-content;min-width:138px;padding:14px 22px;border-radius:12px;background:#2563eb;color:#fff !important;font-weight:800;text-decoration:none;box-shadow:0 8px 18px rgba(37,99,235,.22)}
.reviews-login-btn:hover{filter:brightness(.98)}
.reviews-lock{padding:14px 16px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;color:#475569;line-height:1.55}
.reviews-airbnb .reviews-form{gap:12px;padding-top:2px}
.reviews-airbnb .reviews-form-head{padding-top:4px}
.reviews-airbnb .reviews-form-title{font-size:17px;font-weight:900;color:#1f2937}
.reviews-field-label{font-size:15px;font-weight:800;color:#1f2937;margin-top:2px}
.reviews-airbnb .star-picker{gap:6px;padding:0}
.reviews-airbnb .star-picker label{font-size:46px;color:#d1d5db;text-shadow:none;filter:none}
.reviews-airbnb .star-picker label:hover,.reviews-airbnb .star-picker label:hover ~ label,.reviews-airbnb .star-picker input:checked ~ label{color:#f6b81a;text-shadow:0 0 10px rgba(246,184,26,.18)}
.reviews-airbnb .reviews-textarea{min-height:156px;border-radius:14px;border:1px solid #d1d5db;background:#fff;font-size:15px;padding:16px}
.reviews-airbnb .reviews-textarea::placeholder{color:#6b7280;opacity:1}
.reviews-airbnb .reviews-form-foot{justify-content:flex-start}
.reviews-submit-btn{display:inline-flex;align-items:center;justify-content:center;min-width:230px;padding:15px 26px;border:0;border-radius:12px;background:#2563eb;color:#fff;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 8px 18px rgba(37,99,235,.22)}
.reviews-submit-btn:hover{filter:brightness(.98)}
.reviews-airbnb .reviews-empty{padding:14px 0 0 0;border:0;border-top:1px solid #e5e7eb;border-radius:0;background:transparent;color:#6b7280}
.reviews-airbnb .reviews-list{gap:0}
.reviews-airbnb .review-item{padding:22px 0;border:0;border-top:1px solid #e5e7eb;border-radius:0;background:transparent;box-shadow:none}
.reviews-airbnb .review-top{align-items:center;justify-content:space-between;gap:16px}
.review-user-block{display:flex;align-items:center;gap:14px;min-width:0}
.review-avatar{width:56px;height:56px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#f3f4f6 0%,#e5e7eb 100%);color:#111827;font-size:22px;font-weight:900;flex:0 0 auto}
.reviews-airbnb .review-meta-line{margin-top:0;gap:10px}
.reviews-airbnb .review-meta-line-top{font-size:15px;color:#111827}
.reviews-airbnb .review-author{font-size:15px;font-weight:900;color:#111827}
.reviews-airbnb .review-date{margin-top:4px;font-size:14px;color:#6b7280}
.reviews-airbnb .review-badge{padding:5px 10px;border-radius:999px;background:#e8f0fe;color:#174ea6;font-size:12px;font-weight:800}
.reviews-airbnb .review-stars{margin-top:14px;font-size:28px;letter-spacing:2px;color:#f6b81a;text-shadow:none}
.reviews-airbnb .review-text{margin-top:12px;max-width:880px;font-size:16px;line-height:1.65;color:#1f2937}
.reviews-delete-link{padding:0;border:0;background:none;color:#6b7280;font-size:15px;font-weight:700;cursor:pointer}
.reviews-delete-link:hover{color:#111827;text-decoration:underline}
@media (max-width:700px){
  .reviews-airbnb .reviews-summary-line{align-items:flex-start}
  .reviews-airbnb .reviews-summary-stars{font-size:28px}
  .reviews-airbnb .review-top{align-items:flex-start}
  .review-avatar{width:48px;height:48px;font-size:19px}
  .reviews-airbnb .star-picker label{font-size:42px}
  .reviews-submit-btn{width:100%;min-width:0}
}


/* Listing view: single private-message CTA instead of listing chat */
.listing-contact-cta{
  display:grid;
  gap:12px;
  padding:16px;
  border:1px solid rgba(15,118,110,.18);
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%, #f8fbfb 100%);
  box-shadow:0 14px 30px rgba(15,23,42,.10);
}
.listing-contact-cta__label{
  font-size:13px;
  font-weight:900;
  letter-spacing:.2px;
  color:var(--ink);
}
.listing-contact-cta__btn{
  width:100%;
  min-height:52px;
  border-radius:16px;
  font-size:17px;
  font-weight:900;
  text-decoration:none;
  box-shadow:0 12px 26px rgba(15,118,110,.22);
}
.listing-contact-cta__owner-note{
  padding:12px 14px;
  border-radius:14px;
  background:#f9fafb;
  border:1px solid #e5e7eb;
  color:var(--muted);
  font-weight:700;
}
@media (max-width: 1024px){
  .listing-contact-cta{
    margin-top:4px;
    padding:14px;
  }
  .listing-contact-cta__btn{
    min-height:50px;
    font-size:16px;
  }
}

/* ===== Final back-to-top placement polish (2026-03-26) ===== */
@media (max-width: 1024px){
  .back-to-top{
    right: 16px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(29,78,216,.28);
  }
}
@media (max-width: 560px){
  .back-to-top{
    right: 16px;
    bottom: 18px;
    width: 54px;
    height: 54px;
    font-size: 24px;
  }
}


/* ===== Mobile header WhatsApp QR only (2026-03-29) ===== */
.wa-mobile-join{display:none;}

@media (max-width: 1023px){
  .navbar .inner{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "brand brand"
      "actions wa";
    align-items:start;
    gap:10px 10px;
  }

  .brand{grid-area:brand; min-width:0;}
  .nav-actions{grid-area:actions; min-width:0;}

  .wa-mobile-join{
    grid-area:wa;
    display:flex;
    align-self:start;
    justify-self:end;
  }

  .wa-mobile-join a{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:5px;
    text-decoration:none;
  }

  .wa-mobile-join img{
    width:58px;
    height:58px;
    object-fit:cover;
    border-radius:10px;
    border:1px solid rgba(15,23,42,.10);
    background:#fff;
    box-shadow:0 6px 14px rgba(15,23,42,.08);
  }

  .wa-mobile-join span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:20px;
    padding:4px 8px;
    border-radius:999px;
    background:linear-gradient(135deg,#25D366,#128C7E);
    color:#fff;
    font:900 10px/1 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    letter-spacing:.01em;
    white-space:nowrap;
    box-shadow:0 6px 14px rgba(18,140,126,.18);
  }
}

@media (max-width: 560px){
  .navbar .inner{
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px 8px;
  }

  .nav-actions{gap:8px;}
  .wa-mobile-join img{width:52px;height:52px;border-radius:9px;}
  .wa-mobile-join span{font-size:9px;padding:3px 7px;min-height:18px;}
}

@media (min-width: 1024px){
  .wa-mobile-join{display:none !important;}
}


/* ===== Hide header QR on tablet; footer only there (2026-03-29) ===== */
@media (min-width: 768px) and (max-width: 1023px){
  .wa-header-qr,
  .wa-qr-mini,
  .desktop-wa-join,
  .wa-toolbar-join{
    display:none !important;
  }
}


/* ===== 2026-04-02: keep in-feed ad/promotional tiles within normal card size ===== */
.card.ad-tile,
.card.local-ad-tile,
.card.promo-tile{
  overflow:hidden;
}
.card.ad-tile.ad-tile-adsense,
.card.ad-tile.ad-tile-brand{
  max-width:100%;
}
.card.ad-tile.ad-tile-adsense ins.adsbygoogle{
  overflow:hidden !important;
}
@media (max-width: 760px){
  .card.ad-tile.ad-tile-adsense{
    height:320px !important;
    max-height:320px !important;
    min-height:320px !important;
  }
  .card.ad-tile.ad-tile-brand{
    max-height:380px !important;
    min-height:320px !important;
  }
  .grid.view-list .card.local-ad-tile .thumb,
  .card.promo-tile.promo-tile-local .promo-brand-local,
  .grid.view-list .card.promo-tile .thumb,
  .grid.view-list .card.promo-tile .ad-thumb,
  .grid.view-list .card.promo-tile .promo-thumb,
  .grid.view-list .card.promo-tile .ad-brand{
    width: clamp(180px, 64vw, 250px) !important;
  }
  .card.promo-tile .promo-brand img,
  .grid.view-list .card.promo-tile img{
    max-width: 250px !important;
    max-height: 250px !important;
  }
}


/* ===== 2026-04-03: AdSense mobile-safe scroll + desktop fallback ===== */
.card.ad-tile.ad-tile-adsense{
  position:relative;
  background:#fff;
  contain:layout paint;
}
.card.ad-tile.ad-tile-adsense .ad-fallback{
  position:absolute;
  inset:12px;
  z-index:1;
  display:flex;
  align-items:stretch;
  justify-content:stretch;
  overflow:hidden;
  border-radius:16px;
}
.card.ad-tile.ad-tile-adsense .ad-fallback .promo-brand{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border-radius:16px;
  overflow:hidden;
}
.card.ad-tile.ad-tile-adsense .ad-fallback .promo-brand img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.card.ad-tile.ad-tile-adsense ins.adsbygoogle{
  position:relative;
  z-index:2;
  background:transparent !important;
}
.card.ad-tile.ad-tile-adsense iframe{
  max-width:100% !important;
  max-height:100% !important;
}
.card.ad-tile.ad-tile-adsense.is-loaded .ad-fallback{
  opacity:0;
  pointer-events:none;
}
.card.ad-tile.ad-tile-adsense.is-unfilled ins.adsbygoogle{
  opacity:0 !important;
  pointer-events:none !important;
}
@media (max-width: 760px){
  .card.ad-tile.ad-tile-adsense,
  .card.ad-tile.ad-tile-adsense ins.adsbygoogle{
    touch-action:pan-y !important;
  }
  .card.ad-tile.ad-tile-adsense iframe{
    pointer-events:none !important;
  }
}
