/* =========================================================
   PROPERTY DETAIL PAGE — uses :root vars from style.css
   (--p,--pd,--ps,--bg,--text,--muted,--border,--green,--shadow)
   ========================================================= */
:root {
  --p: #7456e8;
  --pd: #5b40c9;
  --ps: #f1edff;
  --bg: #f8f8fb;
  --text: #22232a;
  --muted: #747580;
  --border: #e8e7ee;
  --green: #2d9867;
  --shadow: 0 18px 55px rgba(36, 31, 65, 0.09);
}

.pd-shell{padding:18px 0 60px}

/* Breadcrumb */
.pd-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:11.5px;color:var(--muted);margin-bottom:16px}
.pd-breadcrumb a{color:var(--muted);text-decoration:none}
.pd-breadcrumb a:hover{color:var(--p)}
.pd-breadcrumb i{font-size:9px;color:#c3c2cc;margin:0 1px}
.pd-breadcrumb span.current{color:var(--text);font-weight:700}

/* Layout */
.pd-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;align-items:start}

/* ---------------- Gallery ---------------- */
.pd-gallery{display:grid;grid-template-columns:1.55fr 1fr;gap:10px;margin-bottom:22px}
.pd-gallery-main{position:relative;border-radius:18px;overflow:hidden;aspect-ratio:4/3.05;background:#eee}
.pd-gallery-main img{width:100%;height:100%;object-fit:cover;display:block}
.pd-verified-badge{position:absolute;top:14px;left:14px;background:#1f9e5c;color:#fff;font-size:10.5px;font-weight:800;padding:7px 11px;border-radius:9px;display:flex;align-items:center;gap:6px;box-shadow:0 6px 16px rgba(20,90,50,.25)}
.pd-main-actions{position:absolute;top:14px;right:14px;display:flex;gap:8px}
.pd-round-btn{width:38px;height:38px;border-radius:50%;border:0;background:rgba(255,255,255,.95);color:#3d3e48;display:grid;place-items:center;font-size:15px;box-shadow:0 6px 16px rgba(20,20,30,.14)}
.pd-round-btn.saved{color:#dc5279}
.pd-nav-arrow{position:absolute;top:50%;translate:0 -50%;width:38px;height:38px;border-radius:50%;border:0;background:rgba(255,255,255,.92);color:#3d3e48;display:grid;place-items:center;font-size:16px;box-shadow:0 6px 16px rgba(20,20,30,.14)}
.pd-nav-arrow.prev{left:14px}
.pd-nav-arrow.next{right:14px}
.pd-tag-caption{position:absolute;left:14px;bottom:14px;background:rgba(20,20,28,.65);color:#fff;font-size:11px;font-weight:700;padding:6px 11px;border-radius:8px}

.pd-gallery-side{display:grid;grid-template-rows:repeat(2,1fr);gap:10px}
.pd-side-top{display:grid;grid-template-columns:1fr;gap:10px}
.pd-side-bottom{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pd-thumb{position:relative;border-radius:14px;overflow:hidden;background:#eee;display:block}
.pd-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.pd-side-top .pd-thumb{aspect-ratio:16/9.3}
.pd-side-bottom .pd-thumb{aspect-ratio:4/3.3}
.pd-thumb-cap{position:absolute;left:9px;bottom:8px;background:rgba(20,20,28,.6);color:#fff;font-size:9.5px;font-weight:700;padding:4px 8px;border-radius:6px}
.pd-thumb-more{position:absolute;inset:0;background:rgba(20,15,35,.62);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;font-weight:800;text-align:center}
.pd-thumb-more i{font-size:16px}

/* ---------------- Title / price block ---------------- */
.pd-card{background:#fff;border:1px solid var(--border);border-radius:18px;padding:22px;margin-bottom:18px}
.pd-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.pd-status-pill{display:inline-block;background:var(--ps);color:var(--p);font-size:9.5px;font-weight:800;letter-spacing:.4px;padding:5px 10px;border-radius:7px;margin-bottom:10px}
.pd-added-date{font-size:10.5px;color:var(--muted)}
.pd-title-row h1{font-size:22px;font-weight:800;margin:0 0 6px;line-height:1.25}
.pd-location-line{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px;margin-bottom:10px}
.pd-location-line i{color:var(--p)}
.pd-desc-inline{font-size:12px;color:#5c5d67;margin:0}
.pd-price-block{text-align:right;min-width:180px}
.pd-price{font-size:26px;font-weight:800;color:var(--p);margin-bottom:4px}
.pd-price-sqft{font-size:11.5px;color:var(--muted)}
.pd-emi{font-size:10.5px;color:var(--muted);margin-top:6px;display:flex;align-items:center;justify-content:flex-end;gap:5px}
.pd-emi i{color:#a9abb4;cursor:help}

/* Facts strip */
.pd-facts-strip{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-top:20px;padding-top:20px;border-top:1px solid var(--border)}
.pd-fact{display:flex;align-items:center;gap:9px}
.pd-fact-ic{width:38px;height:38px;border-radius:11px;background:var(--ps);color:var(--p);display:grid;place-items:center;font-size:16px;flex:0 0 38px}
.pd-fact strong{display:block;font-size:14px;font-weight:800;line-height:1.2}
.pd-fact span{font-size:10px;color:var(--muted)}

/* Section titles */
.pd-card h2{font-size:16px;font-weight:800;margin:0 0 12px}
.pd-card p.pd-body-text{font-size:12px;line-height:1.75;color:#5c5d67;margin:0}
.pd-readmore{display:inline-flex;align-items:center;gap:4px;color:var(--p);font-weight:700;font-size:11.5px;border:0;background:transparent;padding:10px 0 0}

/* Highlights */
.pd-highlight-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.pd-highlight{display:flex;align-items:center;gap:11px;background:#f9f8fc;border:1px solid var(--border);border-radius:13px;padding:12px}
.pd-highlight-ic{width:36px;height:36px;border-radius:10px;background:#fff;color:var(--p);display:grid;place-items:center;font-size:15px;flex:0 0 36px;border:1px solid #ece9f6}
.pd-highlight span{font-size:11.5px;font-weight:700;color:#42434d}

/* Amenities */
.pd-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.pd-section-head h2{margin:0}
.pd-viewall{font-size:11.5px;font-weight:700;color:var(--p);text-decoration:none;display:inline-flex;align-items:center;gap:4px}
.pd-amenity-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px 12px}
.pd-amenity{display:flex;align-items:center;gap:10px}
.pd-amenity-ic{width:34px;height:34px;border-radius:10px;background:var(--ps);color:var(--p);display:grid;place-items:center;font-size:14px;flex:0 0 34px}
.pd-amenity span{font-size:11.5px;color:#42434d;font-weight:600}

/* Property details definition grid */
.pd-def-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 28px}
.pd-def-row{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #f0eff5;font-size:12px}
.pd-def-row:last-child{border-bottom:0}
.pd-def-row span{color:var(--muted)}
.pd-def-row strong{color:var(--text);font-weight:700;text-align:right}

/* Location */
.pd-map-wrap{display:grid;grid-template-columns:1.5fr 1fr;gap:14px}
.pd-map-img{border-radius:14px;overflow:hidden;border:1px solid var(--border);aspect-ratio:16/10;background:#e9ecf3}
.pd-map-img img{width:100%;height:100%;object-fit:cover}
.pd-nearby-list{border:1px solid var(--border);border-radius:14px;padding:14px}
.pd-nearby-list h4{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.4px;color:#8c8d95;margin:0 0 10px}
.pd-nearby-item{display:flex;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid #f2f1f6;font-size:11.5px}
.pd-nearby-item:last-child{border-bottom:0}
.pd-nearby-item i.bi-geo-alt-fill{color:var(--p)}
.pd-nearby-item i.bi-record-circle-fill{color:#dc5279;font-size:8px}
.pd-nearby-item .pd-nb-name{flex:1;color:#42434d;font-weight:600}
.pd-nearby-item .pd-nb-dist{color:var(--muted);font-size:10.5px}
.pd-nearby-item .pd-nb-time{color:var(--muted);font-size:10px;display:flex;align-items:center;gap:3px;white-space:nowrap}

/* ---------------- Sidebar ---------------- */
.pd-sidebar{position:sticky;top:94px;display:flex;flex-direction:column;gap:16px}
.pd-enquiry h3{font-size:16px;font-weight:800;margin:0 0 3px}
.pd-enquiry>p{font-size:11px;color:var(--muted);margin:0 0 16px}
.pd-form-group{margin-bottom:12px}
.pd-form-group label{display:block;font-size:10px;font-weight:700;color:#5c5d67;margin-bottom:6px}
.pd-form-group input,.pd-form-group textarea{width:100%;border:1px solid var(--border);border-radius:10px;padding:10px 11px;font-size:12px;outline:0;background:#fafafd}
.pd-form-group textarea{resize:none;height:70px}
.pd-phone-group{display:flex;gap:8px}
.pd-phone-code{width:56px;border:1px solid var(--border);border-radius:10px;padding:10px 8px;font-size:12px;text-align:center;background:#fafafd;color:#5c5d67;flex:0 0 56px}
.pd-form-group input:focus,.pd-form-group textarea:focus,.pd-phone-code:focus{border-color:#c8bdf5}
.pd-send-btn{width:100%;background:var(--p);color:#fff;border:0;border-radius:11px;padding:13px;font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:7px;margin-top:4px}
.pd-send-btn:hover{background:var(--pd)}
.pd-alt-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:11px}
.pd-btn-whatsapp{background:#25d366;color:#fff;border:0;border-radius:10px;padding:10px;font-size:11.5px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:6px}
.pd-btn-call{background:#fff;color:var(--p);border:1px solid #dcd5f7;border-radius:10px;padding:10px;font-size:11.5px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:6px}
.pd-safe-note{display:flex;align-items:center;justify-content:center;gap:6px;font-size:9.5px;color:var(--muted);margin-top:12px}

.pd-owner-card h3{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.4px;color:#8c8d95;margin:0 0 14px}
.pd-owner-row{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.pd-owner-row img{width:52px;height:52px;border-radius:50%;object-fit:cover}
.pd-owner-row strong{font-size:13px;display:block}
.pd-owner-row span{font-size:10.5px;color:var(--muted)}
.pd-verified-chip{display:inline-flex;align-items:center;gap:5px;background:#eaf7f0;color:#1f9e5c;font-size:9.5px;font-weight:800;padding:4px 9px;border-radius:99px;margin-top:6px}
.pd-response-note{font-size:10px;color:var(--muted);margin-bottom:14px}
.pd-owner-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.pd-owner-actions .pd-btn-call{border:1px solid var(--border);color:#42434d}
.pd-owner-actions .pd-btn-whatsapp{background:#25d366}

.pd-why-card h3{font-size:13.5px;font-weight:800;margin:0 0 14px;display:flex;align-items:center;gap:8px}
.pd-why-card h3 i{width:26px;height:26px;border-radius:8px;background:var(--ps);color:var(--p);display:grid;place-items:center;font-size:12px}
.pd-why-list{display:flex;flex-direction:column;gap:11px}
.pd-why-list div{display:flex;align-items:center;gap:9px;font-size:11.5px;color:#42434d;font-weight:600}
.pd-why-list i{color:#1f9e5c;font-size:13px}

.pd-promo-banner{position:relative;border-radius:18px;overflow:hidden;aspect-ratio:4/4.3;background:#111}
.pd-promo-banner img{width:100%;height:100%;object-fit:cover;opacity:.82}
.pd-promo-text{position:absolute;left:20px;top:24px;right:20px;color:#fff}
.pd-promo-text span{display:block;font-size:16px;font-weight:700;line-height:1.35}
.pd-promo-text strong{display:block;font-family:'Caveat',cursive;font-size:34px;font-weight:700;margin-top:6px}

/* Similar properties */
.pd-similar-head{display:flex;justify-content:space-between;align-items:center;margin:34px 0 16px}
.pd-similar-head h2{font-size:20px;font-weight:800;margin:0}
.pd-similar-head a{font-size:12px;font-weight:700;color:var(--p);text-decoration:none}
.pd-similar-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.pd-sim-card{background:#fff;border:1px solid var(--border);border-radius:16px;overflow:hidden;text-decoration:none;color:inherit;display:block;transition:.2s}
.pd-sim-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.pd-sim-img{position:relative;aspect-ratio:4/3;background:#eee}
.pd-sim-img img{width:100%;height:100%;object-fit:cover}
.pd-sim-tag{position:absolute;top:10px;left:10px;background:var(--ps);color:var(--p);font-size:8.5px;font-weight:800;padding:4px 8px;border-radius:6px}
.pd-sim-heart{position:absolute;top:9px;right:9px;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.93);border:0;color:#666772;display:grid;place-items:center;font-size:12px}
.pd-sim-body{padding:12px 13px 14px}
.pd-sim-body .pd-sim-price{font-size:15px;font-weight:800;color:var(--text);margin:0 0 4px}
.pd-sim-body h5{font-size:12px;font-weight:700;margin:0 0 6px}
.pd-sim-body .pd-sim-loc{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:4px;margin:0 0 4px}
.pd-sim-body .pd-sim-area{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:4px;margin:0}

/* ---------------- Pure CSS toggles (checkbox hack — zero JS) ---------------- */
.pd-css-toggle{position:absolute;opacity:0;width:0;height:0;pointer-events:none}

/* Heart / save toggle */
.pd-heart-label{position:relative;cursor:pointer}
.pd-heart-filled{display:none;color:#dc5279}
#pdSaveToggle:checked ~ .pd-heart-label .pd-heart-outline{display:none}
#pdSaveToggle:checked ~ .pd-heart-label .pd-heart-filled{display:inline}

/* Read more / read less toggle */
.pd-about-extra{display:none;margin-top:-4px}
#pdReadMoreToggle:checked ~ .pd-about-extra{display:block}
.pd-readmore{display:inline-flex;align-items:center;gap:4px;color:var(--p);font-weight:700;font-size:11.5px;cursor:pointer;padding-top:10px}
.pd-readmore-less{display:none}
#pdReadMoreToggle:checked ~ .pd-readmore .pd-readmore-more{display:none}
#pdReadMoreToggle:checked ~ .pd-readmore .pd-readmore-less{display:inline-flex;align-items:center;gap:4px}

/* Hero carousel (native Bootstrap carousel replacing the old JS-driven preview) */
.pd-gallery-main{padding:0}
#pdHeroCarousel,#pdHeroCarousel .carousel-inner,#pdHeroCarousel .carousel-item{height:100%}
#pdHeroCarousel .carousel-item img{width:100%;height:100%;object-fit:cover;cursor:pointer}
#pdHeroCarousel .carousel-control-prev,#pdHeroCarousel .carousel-control-next{width:60px;opacity:1}
.pd-gallery-open{cursor:pointer}
.pd-gallery-modal-content{background:#0c0c10;border:0;border-radius:16px;overflow:hidden}
.pd-modal-close{position:absolute;top:14px;right:14px;z-index:5;filter:invert(1);opacity:.9;background-color:rgba(255,255,255,.12);border-radius:50%;padding:9px}
#pdCarousel .carousel-item{aspect-ratio:16/9.2;background:#000}
#pdCarousel .carousel-item img{width:100%;height:100%;object-fit:contain}
.pd-carousel-cap{position:absolute;left:20px;bottom:18px;background:rgba(255,255,255,.12);color:#fff;font-size:12px;font-weight:700;padding:7px 12px;border-radius:8px;backdrop-filter:blur(6px)}
.pd-carousel-arrow{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.14);display:grid;place-items:center;color:#fff;font-size:18px}
#pdCarousel .carousel-control-prev,#pdCarousel .carousel-control-next{width:70px;opacity:1}
.pd-carousel-counter{position:absolute;right:18px;bottom:18px;background:rgba(255,255,255,.12);color:#fff;font-size:11.5px;font-weight:700;padding:6px 11px;border-radius:8px;backdrop-filter:blur(6px)}

@media(max-width:1400px){
  .pd-layout{grid-template-columns:1fr 300px}
  .pd-similar-grid{grid-template-columns:repeat(3,1fr)}
}

@media(max-width:1200px){
  .pd-layout{grid-template-columns:1fr}
  .pd-sidebar{position:static}
  .pd-similar-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:767px){
  
  #pdCarousel .carousel-item{aspect-ratio:4/3.4}
  .pd-carousel-cap{font-size:10.5px;left:12px;bottom:12px}
  .pd-carousel-counter{right:12px;bottom:12px}
  .pd-gallery{grid-template-columns:1fr}
  .pd-gallery-side{display:none}
  .pd-facts-strip{grid-template-columns:repeat(3,1fr);row-gap:16px}
  .pd-highlight-grid{grid-template-columns:1fr 1fr}
  .pd-amenity-grid{grid-template-columns:repeat(2,1fr)}
  .pd-def-grid{grid-template-columns:1fr}
  .pd-map-wrap{grid-template-columns:1fr}
  .pd-price-block{text-align:left}
  .pd-title-row{flex-direction:column}
  .pd-similar-grid{grid-template-columns:1fr}
  .pd-card{padding:16px}
}
