﻿/* ============================================================
   PROPERTY DETAIL PAGE  –  pd- namespaced styles
   ============================================================ */

/* ---- Font ---- */
.pd-container, .pd-container * {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ---- Base / layout ---- */
.pd-container {
    margin: 0 auto;
    padding: 0 20px;
}

.pd-main-wrap {
    padding-bottom: 60px;
}

/* ---- Background ---- */
body {
    background-color: #f8fafc;
}

/* ---- Remove any stray reveal/animation classes ---- */
.reveal, .reveal-delay-1, .reveal-delay-2 {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    visibility: visible !important;
}

/* ---- Breadcrumb ---- */
.pd-breadcrumb-wrap {
    padding: 14px 0;
}
.pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
}
.pd-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}
.pd-breadcrumb a:hover { color: #1563df; }
.pd-breadcrumb span { color: #1e293b; font-weight: 500; }
.pd-breadcrumb .fas { font-size: 9px; }

/* ---- Glass Card ---- */
.pd-card {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s;
}
.pd-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.07);
}

/* ---- TOP GRID: gallery left, info right ---- */
.pd-top-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    margin-bottom: 36px;
    align-items: start;
}
@media (max-width: 1024px) {
    .pd-top-grid { grid-template-columns: 1fr; }
}

/* ---- Gallery ---- */
.pd-gallery-main {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.pd-gallery-main img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
    cursor: pointer;
}
.pd-gallery-main:hover img { transform: scale(1.04); }
.pd-image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: #3b82f6;
    z-index: 5;
    display: none;
}
.pd-image-loader.active {
    display: block;
}

.pd-gallery-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
}
.pd-badge-featured {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
    z-index: 10;
}
.pd-badge-recent {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
    z-index: 10;
}
.pd-badge-sale {
    background: #10b981;
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16,185,129,0.35);
}
.pd-badge-verified {
    background: #0ea5e9;
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(14,165,233,0.35);
}
.pd-view-all-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255,255,255,0.92);
    border: none;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    color: #1e293b;
}
.pd-view-all-btn:hover { background: #fff; transform: scale(1.04); }
.pd-fav-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 17px;
    color: #64748b;
    transition: all 0.2s;
}
.pd-fav-btn:hover { transform: scale(1.1); background: #fff; }
.pd-fav-btn.active i, .pd-fav-btn i.fas { color: #ef4444; }

.pd-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}
.pd-thumb {
    width: 90px;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.65;
    transition: all 0.2s;
    border: 2px solid transparent;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.pd-thumb:hover, .pd-thumb.active {
    opacity: 1;
    border-color: #1563df;
    outline-offset: 2px;
}
.pd-thumb-more { position: relative; }
.pd-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

/* ---- Info Column ---- */
.pd-info-col { display: flex; flex-direction: column; gap: 20px; }

.pd-info-card, .pd-contact-card { padding: 28px; }

.pd-property-title {
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 8px;
}
.pd-address {
    color: #64748b;
    font-size: 15px;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pd-address .fas { color: #1563df; }

.pd-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 22px;
}
.pd-price {
    font-size: 35px;
    font-weight: 800;
    color: #1563df;
}
.pd-price-sub { font-size: 13px; color: #64748b; }

.pd-stats-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.pd-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 8px;
    background: #f8fafc;
    border-radius: 16px;
    text-align: center;
}
.pd-stat i { color: #1563df; font-size: 17px; }
.pd-stat strong { font-size: 15px; font-weight: 700; color: #0f172a; }
.pd-stat span { font-size: 11px; color: #64748b; }

.pd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.pd-tag {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.pd-tag-green { background: #ecfdf5; color: #059669; }
.pd-tag-blue  { background: #eff6ff; color: #2563eb; }
.pd-tag-amber { background: #fffbeb; color: #d97706; }

/* ---- Buttons ---- */
.pd-btn-primary {
    background: #1563df;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s;
}
.pd-btn-primary:hover { background: #4f46e5; box-shadow: 0 8px 24px rgba(99,102,241,0.3); }

.pd-btn-outline {
    background: #fff;
    color: #334155;
    border: 2px solid #e2e8f0;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s;
}
.pd-btn-outline:hover { border-color: #1563df; color: #1563df; }

.pd-btn-green {
    background: #10b981;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}
.pd-btn-green:hover { background: #059669; }

.pd-btn-whatsapp {
    background: #25d366;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s;
}
.pd-btn-whatsapp:hover { background: #1ebe5d; }

.pd-btn-block { width: 100%; justify-content: center; }

.pd-top-action-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.pd-top-action-row .pd-btn-primary,
.pd-top-action-row .pd-btn-outline {
    flex: 1;
    min-width: 140px;
}

.pd-action-row {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}
.pd-action-btn {
    flex: 1;
    padding: 12px;
    background: #f8fafc;
    border: none;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}
.pd-action-btn:hover { background: #f1f5f9; }

/* ---- Contact form ---- */
.pd-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 18px;
}
.pd-agent-mini {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border-radius: 16px;
    margin-bottom: 20px;
}
.pd-agent-mini img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.pd-agent-mini .pd-avatar-fallback {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    background: #e2e8f0;
    color: #64748b;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.pd-agent-name { font-weight: 700; font-size: 14px; color: #0f172a; }
.pd-agent-role { font-size: 12px; color: #64748b; }
.pd-agent-stars { display: flex; align-items: center; gap: 3px; color: #f59e0b; font-size: 12px; margin-top: 4px; }
.pd-agent-stars span { color: #64748b; margin-left: 4px; }

.pd-form { display: flex; flex-direction: column; gap: 14px; }
.pd-form input,
.pd-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.pd-form input:focus,
.pd-form textarea:focus {
    border-color: #1563df;
    box-shadow: 0 0 0 3px rgba(21,99,223,0.12);
}
.pd-form textarea { resize: none; }
.pd-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}
.pd-checkbox-label input[type="checkbox"] { margin-top: 2px; }

.pd-contact-btns {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}
.pd-contact-btn-secondary {
    flex: 1;
    padding: 12px;
    background: #f1f5f9;
    border: none;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}
.pd-contact-btn-secondary:hover { background: #e2e8f0; }

.pd-contact-btn-whatsapp {
    width: 100%;
    padding: 12px;
    background: #25d366;
    border: none;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}
.pd-contact-btn-whatsapp:hover { background: #1da851; }
.pd-body-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 1024px) {
    .pd-body-grid { grid-template-columns: 1fr; }
}

.pd-main-content { display: flex; flex-direction: column; gap: 24px; }

/* ---- Section Titles ---- */
.pd-section-title {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pd-section-title i { color: #1563df; }

/* ---- Key Highlights ---- */
.pd-highlights { display: flex; flex-direction: column; gap: 12px; }
.pd-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 16px;
}
.pd-highlight-item i { color: #1563df; margin-top: 3px; flex-shrink: 0; }
.pd-highlight-item p { margin: 0; font-size: 13px; color: #334155; line-height: 1.6; }
.pd-highlight-green { background: rgba(236,253,245,0.6); border: 1px solid #d1fae5; }
.pd-highlight-green i { color: #10b981; }

/* ---- Property Info Grid ---- */
.pd-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px 32px;
}
@media (max-width: 640px) { .pd-info-grid { grid-template-columns: repeat(2,1fr); } }
.pd-info-item { display: flex; flex-direction: column; gap: 4px; }
.pd-info-label { font-size: 12px; color: #94a3b8; }
.pd-info-val { font-size: 14px; font-weight: 600; color: #0f172a; }

/* ---- Amenity List ---- */
.pd-amenity-list-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
}
@media (max-width: 640px) { .pd-amenity-list-grid { grid-template-columns: repeat(2,1fr); } }
.pd-amenity-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}
.pd-amenity-list-item i { color: #10b981; }

/* ---- Agent Card Redesign (pd-agc-) ---- */
.pd-agent-section {
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #e0e7ff;
}
/* Banner */
.pd-agc-banner {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center top;
}
.pd-agc-banner-fallback {
    background: linear-gradient(135deg, #1563df 0%, #0ea5e9 60%, #7c3aed 100%);
}
/* Profile row (overlaps banner) */
.pd-agc-profile-wrap {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    padding: 0 24px 0;
    margin-top: -46px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.pd-agc-photo-wrap { position: relative; flex-shrink: 0; }
.pd-agc-photo-wrap img.pd-agc-photo,
.pd-agc-photo-wrap .pd-agc-photo {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
    display: block;
}
.pd-agc-photo-wrap .pd-avatar-fallback.pd-agc-photo {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 3px solid #fff;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}
.pd-agc-verified {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    background: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.pd-agc-verified i { color: #fff; font-size: 9px; }
.pd-agc-identity { flex: 1; padding-bottom: 6px; min-width: 0; }
.pd-agc-badge-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; }
/* Badge premium override with icon */
.pd-badge-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
/* Agent type badges */
.pd-agc-type-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
}
.pd-badge-atype-agent  { background: #e0e7ff; color: #3730a3; }
.pd-badge-atype-dealer { background: #fef3c7; color: #92400e; }
.pd-badge-atype-owner  { background: #dcfce7; color: #166534; }
.pd-agc-name {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 3px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pd-agc-company {
    font-size: 12px;
    color: #475569;
    margin: 0 0 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.pd-agc-company i { color: #1563df; font-size: 10px; }
.pd-agc-location {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.pd-agc-location i { color: #ef4444; font-size: 10px; }
/* Padding shim for inner content rows */
.pd-agc-rating-row,
.pd-agc-bio,
.pd-agc-detail-block,
.pd-agc-info-strip,
.pd-agc-actions {
    padding-left: 24px;
    padding-right: 24px;
}
/* Rating row */
.pd-agc-rating-row { margin-bottom: 0; }
.pd-agc-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #f59e0b;
    font-size: 13px;
}
.pd-agc-stars strong { color: #0f172a; font-size: 13px; margin-left: 5px; }
.pd-agc-stars span { color: #94a3b8; font-size: 12px; margin-left: 2px; }
/* Stats bar */
.pd-agc-stats {
    display: flex;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin: 14px 0 0;
}
.pd-agc-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 14px 6px;
    border-right: 1px solid #f1f5f9;
}
.pd-agc-stat:last-child { border-right: none; }
.pd-agc-stat-val {
    font-size: 20px;
    font-weight: 800;
    color: #1563df;
    line-height: 1;
}
.pd-agc-stat-lbl {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
}
.pd-agc-stat-lbl i { font-size: 10px; }
/* Bio */
.pd-agc-bio {
    font-size: 13px;
    color: #475569;
    line-height: 1.7;
    margin: 18px 0 0;
}
/* Specializations / Working Areas */
.pd-agc-detail-block { margin-top: 16px; }
.pd-agc-detail-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.pd-agc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-agc-chip {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 999px;
    display: inline-block;
}
.pd-agc-chip-blue { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.pd-agc-chip-green { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
/* Info strip */
.pd-agc-info-strip {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}
.pd-agc-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pd-agc-info-item > i {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: #eff6ff;
    color: #1563df;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.pd-agc-info-item > div { display: flex; flex-direction: column; gap: 1px; }
.pd-agc-info-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: #94a3b8; font-weight: 600; }
.pd-agc-info-val { font-size: 13px; color: #0f172a; font-weight: 600; }
/* Action buttons */
.pd-agc-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 0;
}
.pd-agc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    transition: filter 0.18s, transform 0.18s;
    border: none;
    cursor: pointer;
}
.pd-agc-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.pd-agc-btn-call  { background: #1563df; color: #fff; }
.pd-agc-btn-wa    { background: #25d366; color: #fff; }
.pd-agc-btn-email { background: #f1f5f9; color: #1563df; border: 1.5px solid #e2e8f0; }
/* View full profile link */
.pd-agc-profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    margin-top: 20px;
    border-top: 1px solid #f1f5f9;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: #1563df;
    transition: background 0.15s;
}
.pd-agc-profile-link:hover { background: #f8fafc; }

/* ---- Locality ---- */
.pd-locality-image {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 240px;
    margin-bottom: 20px;
}
.pd-locality-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-locality-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.25), transparent);
}
.pd-locality-desc { font-size: 13px; color: #475569; line-height: 1.7; margin-bottom: 24px; }

.pd-nearby-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 16px;
}
@media (max-width: 640px) { .pd-nearby-grid { grid-template-columns: 1fr; } }
.pd-nearby-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s;
}
.pd-nearby-item:hover { background: rgba(99,102,241,0.05); transform: translateX(6px); }
.pd-nearby-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
}
.pd-nearby-indigo { background: #eef2ff; color: #1563df; }
.pd-nearby-green  { background: #ecfdf5; color: #059669; }
.pd-nearby-rose   { background: #fff1f2; color: #f43f5e; }
.pd-nearby-amber  { background: #fffbeb; color: #d97706; }
.pd-nearby-item h4 { font-size: 13px; font-weight: 700; color: #0f172a; margin: 0 0 10px; }
.pd-nearby-item ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pd-nearby-item ul li { display: flex; justify-content: space-between; font-size: 12px; color: #475569; }
.pd-nearby-item ul li span:last-child { font-weight: 600; }

/* ---- Reviews ---- */
.pd-reviews-summary { display: flex; gap: 40px; align-items: flex-start; margin-bottom: 28px; }
@media (max-width: 640px) { .pd-reviews-summary { flex-direction: column; } }
.pd-rating-big { text-align: center; flex-shrink: 0; }
.pd-rating-score { font-size: 52px; font-weight: 800; color: #0f172a; line-height: 1; margin-bottom: 8px; }
.pd-rating-stars { display: flex; justify-content: center; gap: 3px; color: #f59e0b; font-size: 18px; margin-bottom: 6px; }
.pd-rating-big p { font-size: 13px; color: #64748b; margin: 0; }
.pd-rating-bars { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.pd-bar-row { display: flex; align-items: center; gap: 12px; }
.pd-bar-row > span:first-child { font-size: 13px; color: #475569; width: 52px; flex-shrink: 0; }
.pd-bar-row > span:last-child { font-size: 13px; color: #475569; width: 28px; text-align: right; flex-shrink: 0; }
.pd-bar { flex: 1; height: 8px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.pd-bar-fill { height: 100%; background: #f59e0b; border-radius: 999px; }
.pd-divider { height: 1px; background: linear-gradient(90deg,transparent,#e2e8f0,transparent); margin-bottom: 28px; }
.pd-reviews-list { display: flex; flex-direction: column; gap: 20px; }
.pd-review-card { padding: 22px; background: #f8fafc; border-radius: 18px; }
.pd-review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.pd-reviewer { display: flex; align-items: center; gap: 12px; }
.pd-reviewer-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
}
.pd-avatar-indigo { background: #eef2ff; color: #1563df; }
.pd-avatar-green  { background: #ecfdf5; color: #059669; }
.pd-reviewer strong { font-size: 15px; color: #0f172a; display: block; }
.pd-reviewer span { font-size: 13px; color: #94a3b8; }
.pd-review-stars { display: flex; gap: 3px; color: #f59e0b; font-size: 14px; }
.pd-review-card > p { font-size: 14px; color: #475569; line-height: 1.65; margin: 0; }

/* ---- Property Overview ---- */
.pd-overview-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
}
@media (max-width: 768px) { .pd-overview-grid { grid-template-columns: repeat(2,1fr); } }
.pd-overview-item {
    padding: 16px;
    background: #f8fafc;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pd-overview-item span { font-size: 13px; color: #94a3b8; }
.pd-overview-item strong { font-size: 15px; font-weight: 700; color: #0f172a; }

/* ---- Description ---- */
.pd-description { display: flex; flex-direction: column; gap: 14px; }
.pd-description p { font-size: 14px; color: #475569; line-height: 1.75; margin: 0; }

/* ---- Amenity Icon Grid ---- */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 14px;
}
@media (max-width: 768px) { .amenities-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 480px) { .amenities-grid { grid-template-columns: repeat(3,1fr); } }
.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.amenity-item .material-icons-outlined { font-size: 22px; color: #1563df; }
.amenity-item span { font-size: 12px; font-weight: 500; color: #334155; }
.amenity-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(21,99,223,0.15);
    border-color: rgba(21,99,223,0.3);
}

/* Legacy */
.pd-amenity-icon-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 14px;
}
@media (max-width: 768px) { .pd-amenity-icon-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 480px) { .pd-amenity-icon-grid { grid-template-columns: repeat(3,1fr); } }
.pd-amenity-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.pd-amenity-box i { font-size: 22px; color: #1563df; }
.pd-amenity-box span { font-size: 12px; font-weight: 500; color: #334155; }
.pd-amenity-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(21,99,223,0.15);
    border-color: rgba(21,99,223,0.3);
}

/* ---- Map ---- */
.pd-map-wrap { border-radius: 18px; overflow: hidden; height: 320px; margin-bottom: 20px; }
.pd-location-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
@media (max-width: 640px) { .pd-location-stats { grid-template-columns: repeat(2,1fr); } }
.pd-location-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    background: #f8fafc;
    border-radius: 16px;
    text-align: center;
}
.pd-location-stat i { font-size: 22px; color: #1563df; }
.pd-location-stat strong { font-size: 15px; font-weight: 700; color: #0f172a; }
.pd-location-stat span { font-size: 12px; color: #64748b; }

/* ---- Sidebar ---- */
.pd-sidebar { display: flex; flex-direction: column; gap: 22px; }

/* ---- EMI ---- */
.pd-emi-form { display: flex; flex-direction: column; gap: 16px; }
.pd-emi-field { display: flex; flex-direction: column; gap: 6px; }
.pd-emi-field label { font-size: 13px; color: #64748b; }
.pd-emi-field input {
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}
.pd-emi-field input:focus {
    border-color: #1563df;
    box-shadow: 0 0 0 3px rgba(21,99,223,0.12);
}
.pd-emi-result { padding-top: 16px; border-top: 1px solid #f1f5f9; }
.pd-emi-label { display: block; font-size: 13px; color: #64748b; margin-bottom: 4px; }
.pd-emi-value { font-size: 26px; font-weight: 800; color: #1563df; }
.pd-emi-value em { font-style: normal; font-size: 14px; color: #94a3b8; font-weight: 400; }

/* ---- Similar Properties ---- */
.pd-similar-list { display: flex; flex-direction: column; gap: 14px; }
.pd-similar-item {
    display: flex;
    gap: 14px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s;
    align-items: center;
}
.pd-similar-item:hover { background: #f1f5f9; }
.pd-similar-item img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.pd-similar-item > div { display: flex; flex-direction: column; gap: 4px; }
.pd-similar-item strong { font-size: 14px; font-weight: 700; color: #0f172a; }
.pd-similar-item span { font-size: 13px; color: #64748b; }
.pd-similar-price { color: #1563df !important; font-weight: 700 !important; font-size: 15px !important; }

/* ---- Agent Properties ---- */
.pd-agent-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.pd-agent-property-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}
.pd-agent-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(21, 99, 223, 0.15);
    border-color: #1563df;
}
.pd-agent-property-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.pd-agent-property-info {
    padding: 16px;
}
.pd-agent-property-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.4;
}
.pd-agent-property-info p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.pd-agent-property-details {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.pd-agent-property-details span {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 3px;
}
.pd-agent-property-price {
    font-size: 18px;
    font-weight: 800;
    color: #1563df;
}

/* ---- Safety Tips ---- */
.pd-safety-card { background: linear-gradient(135deg, #fffbeb, #fff7ed); border-color: #fde68a; }
.pd-safety-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pd-safety-icon {
    width: 40px; height: 40px;
    background: #fef3c7;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #d97706;
}
.pd-safety-header h3 { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0; }
.pd-safety-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pd-safety-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #475569; line-height: 1.5; }
.pd-safety-list i { color: #d97706; margin-top: 2px; flex-shrink: 0; }

/* ---- Services Section ---- */
.pd-services-section { margin-top: 60px; }
.pd-services-header { text-align: center; margin-bottom: 32px; }
.pd-services-header h2 { font-size: 28px; font-weight: 800; color: #0f172a; margin: 0 0 10px; }
.pd-services-header p { font-size: 15px; color: #64748b; margin: 0; }
.pd-service-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.pd-service-tab {
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    color: #475569;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.pd-service-tab:hover { background: #f8fafc; }
.pd-service-tab.active { background: #0f172a; color: #fff; }
.pd-services-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 16px;
}
@media (max-width: 768px) { .pd-services-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 480px) { .pd-services-grid { grid-template-columns: repeat(2,1fr); } }
.pd-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 12px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    text-align: center;
}
.pd-service-card span { font-size: 13px; font-weight: 600; color: #0f172a; }
.pd-service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.pd-service-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.pd-si-indigo { background: #eef2ff; color: #1563df; }
.pd-si-green  { background: #ecfdf5; color: #059669; }
.pd-si-amber  { background: #fffbeb; color: #d97706; }
.pd-si-rose   { background: #fff1f2; color: #f43f5e; }
.pd-si-blue   { background: #eff6ff; color: #2563eb; }
.pd-si-purple { background: #faf5ff; color: #9333ea; }
.pd-lightbox-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: none;
    flex-direction: column;
    z-index: 10000;
}
.pd-lightbox-overlay.active {
    display: flex;
}

/* Top Bar */
.pd-lb-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 56px;
    flex-shrink: 0;
    background: #111;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pd-lb-back {
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.pd-lb-back:hover { background: rgba(255,255,255,0.22); }
.pd-lb-counter {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.pd-lb-topbar-actions {
    display: flex;
    gap: 10px;
}
.pd-lb-action-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.pd-lb-action-btn:hover { background: rgba(255,255,255,0.18); }

/* Stage */
.pd-lb-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.pd-lb-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 70vw;
    max-height: 100%;
}
#pd-lb-image {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
}
.pd-lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
}
.pd-lb-arrow:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-50%) scale(1.08);
}
.pd-lb-prev { left: 20px; }
.pd-lb-next { right: 20px; }

/* Bottom */
.pd-lb-bottom {
    flex-shrink: 0;
    background: #111;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 12px 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.pd-lb-property-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.pd-lb-property-info strong {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.pd-lb-property-info span {
    font-size: 12px;
    color: #94a3b8;
}

/* Thumb Strip */
.pd-lb-thumbstrip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 80vw;
    padding-bottom: 2px;
    scrollbar-width: none;
}
.pd-lb-thumbstrip::-webkit-scrollbar { display: none; }
.pd-lb-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: opacity 0.2s, border-color 0.2s;
}
.pd-lb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pd-lb-thumb.active,
.pd-lb-thumb:hover {
    opacity: 1;
    border-color: #1563df;
}

@media (max-width: 768px) {
    .pd-lb-img-wrap { max-width: 100vw; }
    .pd-lb-prev { left: 8px; }
    .pd-lb-next { right: 8px; }
    .pd-lb-arrow { width: 40px; height: 40px; font-size: 14px; }
    .pd-lb-action-btn span { display: none; }
    .pd-lb-counter { font-size: 13px; }
}

/* ---- Schedule Visit Modal ---- */
.pd-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.pd-modal-overlay.show {
    display: block;
}

.pd-modal-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    font-family: Arial, sans-serif;
}

.pd-modal-popup.show {
    display: block;
}

.pd-popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    position: relative;
}

.pd-popup-header h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.pd-popup-header p {
    font-size: 14px;
    opacity: 0.9;
}

.pd-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #ff4757;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 40px;
    transition: background 0.2s, transform 0.2s;
}

.pd-close-btn:hover {
    background: #ff3838;
    transform: rotate(90deg);
}

.popup-body {
    display: grid;
    grid-template-columns: 1fr;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}



.property-section {
    padding: 30px;
}

.property-section h2 {
    color: #764ba2;
    margin-bottom: 20px;
    font-size: 22px;
}

.property-img {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 60px;
}

.property-img img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    margin-bottom: 10px;
    border-radius: 8px;
}

.detail-item:hover {
    background: #e9ecef;
}

.detail-label {
    font-weight: bold;
    color: #333;
}

.detail-value {
    color: #666;
}

.price-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

.price {
    font-size: 32px;
    font-weight: bold;
}

.status {
    display: inline-block;
    background: #00b894;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
}

.schedule-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #f9fafb;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #f3f4f6;
}

.pd-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.pd-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.pd-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.pd-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.pd-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.pd-modal-body {
    padding: 20px;
}

.pd-form-group {
    margin-bottom: 16px;
}

.pd-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

.pd-form-group input,
.pd-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.pd-form-group input:focus,
.pd-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pd-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.pd-btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.pd-btn-primary:hover {
    background: #2563eb;
}

.pd-btn-secondary {
    background: #f9fafb;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.pd-btn-secondary:hover {
    background: #f3f4f6;
}

/* ---- Toast Notifications ---- */
.pd-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.pd-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.pd-toast-success {
    background: #10b981;
    color: white;
}

.pd-toast-error {
    background: #ef4444;
    color: white;
}

.pd-toast-info {
    background: #3b82f6;
    color: white;
}

.pd-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.pd-toast-content i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .pd-modal-popup {
        width: 95%;
        margin: 20px;
    }
    .pd-toast {
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

/* ══════════════════════════════════════════════════════════════════
   Schedule Visit Modal  (sv-*)
   ══════════════════════════════════════════════════════════════════ */

/* Backdrop */
.sv-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.65);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.sv-overlay.sv-visible {
    display: flex;
    opacity: 1;
}

/* Dialog */
.sv-box {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 32px);
    display: grid;
    grid-template-columns: 290px 1fr;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
    animation: sv-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes sv-pop {
    from { opacity: 0; transform: scale(0.90) translateY(20px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* Close button */
.sv-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: background 0.2s, transform 0.2s;
}
.sv-close:hover {
    background: #ef4444;
    transform: rotate(90deg);
}

/* ── Left: Property Preview ── */
.sv-preview {
    background: linear-gradient(165deg, #0f172a 0%, #1e3a5f 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
}

.sv-preview-img {
    position: relative;
    height: 190px;
    flex-shrink: 0;
}
.sv-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.82;
}
.sv-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    font-size: 52px;
    color: rgba(255, 255, 255, 0.25);
}
.sv-price-chip {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #1563df;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.2px;
}

.sv-preview-body {
    padding: 18px 18px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}
.sv-prop-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}
.sv-prop-address {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.60);
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    line-height: 1.45;
}
.sv-prop-address i { margin-top: 2px; flex-shrink: 0; color: #60a5fa; }

.sv-prop-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.sv-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.82);
}
.sv-stat i { font-size: 11px; color: #93c5fd; }

/* Agent */
.sv-agent-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}
.sv-agent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}
.pd-avatar-fallback.sv-agent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}
.sv-agent-info { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.sv-agent-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sv-agent-role { font-size: 11px; color: rgba(255,255,255,0.50); }
.sv-agent-role i { color: #34d399; font-size: 10px; }

/* Trust badges */
.sv-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}
.sv-trust-badges span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.07);
    padding: 4px 10px;
    border-radius: 20px;
}
.sv-trust-badges span i { color: #4ade80; font-size: 10px; }

/* ── Right: Form Column ── */
.sv-form-col {
    padding: 26px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    max-height: calc(100vh - 32px);
}

.sv-form-header {
    display: flex;
    align-items: center;
    gap: 14px;
}
.sv-form-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eff6ff;
    color: #1563df;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sv-form-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px;
    line-height: 1.3;
}
.sv-form-header p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Form */
.sv-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.sv-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.sv-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.sv-field label {
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sv-field label i { color: #1563df; font-size: 11px; width: 13px; }
.sv-req { color: #ef4444; }
.sv-optional { color: #94a3b8; font-weight: 400; font-size: 11.5px; }

.sv-field input,
.sv-field textarea {
    padding: 9px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.sv-field input:focus,
.sv-field textarea:focus {
    border-color: #1563df;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(21, 99, 223, 0.12);
}
.sv-field textarea {
    resize: vertical;
    min-height: 68px;
}

/* Consent */
.sv-consent {
    padding: 11px 13px;
    background: #f0fdf4;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
}
.sv-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    color: #374151;
    line-height: 1.5;
    user-select: none;
}
.sv-checkbox-wrap input[type="checkbox"] { display: none; }
.sv-checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #16a34a;
    border-radius: 5px;
    flex-shrink: 0;
    margin-top: 1px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.sv-checkbox-wrap input[type="checkbox"]:checked ~ .sv-checkmark {
    background: #16a34a;
    border-color: #16a34a;
}
.sv-checkbox-wrap input[type="checkbox"]:checked ~ .sv-checkmark::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}

/* Actions */
.sv-form-actions {
    display: flex;
    gap: 10px;
    padding-top: 2px;
}
.sv-btn-cancel {
    flex-shrink: 0;
    padding: 10px 20px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    font-family: inherit;
}
.sv-btn-cancel:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fff5f5;
}
.sv-btn-submit {
    flex: 1;
    padding: 10px 20px;
    background: #1563df;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    font-family: inherit;
}
.sv-btn-submit:hover {
    background: #1251c4;
    box-shadow: 0 4px 16px rgba(21, 99, 223, 0.35);
}
.sv-btn-submit:active  { transform: scale(0.98); }
.sv-btn-submit:disabled {
    background: #93c5fd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Responsive ── */
@media (max-width: 700px) {
    .sv-box {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }
    .sv-preview { display: none; }
    .sv-close { color: #374151; background: rgba(0,0,0,0.08); }
    .sv-form-col { padding: 22px 18px 24px; max-height: none; }
    .sv-field-row { grid-template-columns: 1fr; }
    .sv-form-actions { flex-direction: column-reverse; }
    .sv-btn-cancel { width: 100%; text-align: center; }
}
