/* ── HousifyHub – Frontend Styles ────────────────────────────────────────
   Mobile-first: base styles target 320px+, breakpoints add complexity up.
   ───────────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ── CSS Variables ──────────────────────────────────────────────────────── */
:root {
    --hk-primary:    #1e7a34;
    --hk-primary-h:  #155c27;
    --hk-accent:     #f59e0b;
    --hk-blue:       #2563eb;
    --hk-bg:         #f8faf8;
    --hk-white:      #ffffff;
    --hk-border:     #e2e8e2;
    --hk-text:       #1a2e1a;
    --hk-muted:      #6b7c6b;
    --hk-green:      #22c55e;
    --hk-red:        #ef4444;
    --hk-yellow:     #f59e0b;
    --hk-radius:     10px;
    --hk-shadow:     0 2px 12px rgba(0,0,0,.10);
    --hk-font:       'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.hk-app * { box-sizing: border-box; font-family: var(--hk-font); }

/* ── Filter bar ─────────────────────────────────────────────────────────── */
.hk-filterbar {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    background: var(--hk-white);
    border: 1px solid var(--hk-border);
    border-radius: var(--hk-radius);
    padding: 12px 14px;
    margin-bottom: 8px;
    box-shadow: var(--hk-shadow);
}
.hk-filter-logo {
    font-weight: 700;
    font-size: 15px;
    color: var(--hk-primary);
    white-space: nowrap;
    align-self: center;
    margin-right: 4px;
}
.hk-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    flex: 1;
}
.hk-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* ── Listing-type tabs (All / For Rent / For Sale) in the filter bar ────── */
.hk-listing-tabs {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.hk-listing-tab {
    padding: 7px 15px;
    border: 1.5px solid var(--hk-border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: var(--hk-bg);
    color: var(--hk-muted);
    font-family: var(--hk-font);
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
    line-height: 1;
}
.hk-listing-tab:hover {
    border-color: var(--hk-primary);
    color: var(--hk-primary);
    background: #f0fdf4;
}
.hk-listing-tab.is-active {
    background: var(--hk-primary);
    border-color: var(--hk-primary);
    color: #fff;
}

.hk-select {
    padding: 7px 10px;
    border: 1px solid var(--hk-border);
    border-radius: 6px;
    font-size: 13px;
    background: var(--hk-bg);
    color: var(--hk-text);
    cursor: pointer;
    min-width: 0;
    max-width: 100%;
}
.hk-select:focus { outline: none; border-color: var(--hk-primary); }

.hk-price-range {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--hk-muted);
    flex-wrap: wrap;
}
.hk-price-range input[type="range"] { cursor: pointer; accent-color: var(--hk-primary); width: 100px; }
#hk-price-label { font-weight: 600; color: var(--hk-primary); min-width: 72px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.hk-btn-primary {
    background: var(--hk-primary);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background .2s;
    white-space: nowrap;
}
.hk-btn-primary:hover { background: var(--hk-primary-h); color: #fff; }
.hk-btn-secondary {
    background: #fff;
    color: var(--hk-muted);
    border: 1px solid var(--hk-border);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.hk-btn-secondary:hover { border-color: var(--hk-primary); color: var(--hk-primary); }
.hk-btn-toggle {
    background: var(--hk-bg);
    color: var(--hk-text);
    border: 1px solid var(--hk-border);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.hk-btn-submit {
    background: var(--hk-accent);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
    transition: opacity .2s;
}
.hk-btn-submit:hover { opacity: .88; color: #fff; }

/* ── Loading skeleton ───────────────────────────────────────────────────── */
.hk-loading {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}
.hk-skeleton-pulse {
    font-size: 13px;
    color: var(--hk-muted);
    animation: hk-pulse 1.4s ease-in-out infinite;
}
@keyframes hk-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

/* ── Results bar ────────────────────────────────────────────────────────── */
.hk-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--hk-muted);
    padding: 4px 2px 8px;
    flex-wrap: wrap;
    gap: 6px;
}
.hk-legend { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hk-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 3px;
    vertical-align: middle;
}
.hk-dot.available { background: var(--hk-green); }
.hk-dot.rented    { background: var(--hk-red); }
.hk-dot.reserved  { background: var(--hk-yellow); }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.hk-layout { position: relative; }
#hk-map { width: 100%; border-radius: var(--hk-radius); border: 1px solid var(--hk-border); }

/* ── List panel ─────────────────────────────────────────────────────────── */
.hk-list-panel {
    position: absolute;
    top: 0; right: 0;
    width: 310px;
    max-height: 600px;
    overflow-y: auto;
    background: var(--hk-white);
    border: 1px solid var(--hk-border);
    border-radius: var(--hk-radius);
    box-shadow: var(--hk-shadow);
    z-index: 999;
    overscroll-behavior: contain;
}
.hk-list-card {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--hk-border);
    cursor: pointer;
    transition: background .15s;
}
.hk-list-card:hover { background: var(--hk-bg); }
.list-thumb {
    width: 64px; height: 64px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eee;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-body  { flex: 1; min-width: 0; }
.list-title { font-size: 13px; font-weight: 600; color: var(--hk-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-meta  { font-size: 11px; color: var(--hk-muted); margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-price { font-size: 14px; font-weight: 700; color: var(--hk-primary); }
.list-price small { font-weight: 400; font-size: 11px; color: var(--hk-muted); }
.list-badges { display: flex; gap: 4px; margin-top: 3px; flex-wrap: wrap; }
.list-status { font-size: 10px; padding: 2px 7px; border-radius: 20px; font-weight: 600; }
.list-status.available { background: #dcfce7; color: #166534; }
.list-status.rented    { background: #fee2e2; color: #991b1b; }
.list-status.reserved  { background: #fef3c7; color: #92400e; }
.list-type { font-size: 10px; padding: 2px 7px; border-radius: 20px; font-weight: 600; background: #f0f9ff; color: #0369a1; }
.list-type.for-sale { background: #fef9c3; color: #854d0e; }

/* ── Map pins ───────────────────────────────────────────────────────────── */
.hk-pin {
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    position: relative;
    display: flex; align-items: center; justify-content: center;
    transition: transform .15s;
    cursor: pointer;
}
.hk-pin:hover { transform: scale(1.3); }
.hk-pin-verified { font-size: 7px; color: white; font-weight: 700; }
.hk-cluster {
    background: var(--hk-primary);
    color: white;
    border: 3px solid rgba(255,255,255,.8);
    border-radius: 50%;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    box-shadow: 0 3px 10px rgba(0,0,0,.25);
    font-family: var(--hk-font);
}

/* ── Popup ──────────────────────────────────────────────────────────────── */
.hk-popup-wrap .leaflet-popup-content-wrapper {
    border-radius: var(--hk-radius);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    border: 1px solid var(--hk-border);
}
.hk-popup-wrap .leaflet-popup-content { margin: 0; width: 300px !important; }
.hk-popup { font-family: var(--hk-font); }
.hk-popup-img {
    position: relative;
    height: 140px;
    background: #f0f0f0;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px;
}
.hk-popup-img img { width: 100%; height: 100%; object-fit: cover; }
.hk-popup-no-img { font-size: 48px; }

.hk-status-badge {
    position: absolute; bottom: 8px; left: 8px;
    font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
}
.hk-status-badge.available { background: #dcfce7; color: #166534; }
.hk-status-badge.rented    { background: #fee2e2; color: #991b1b; }
.hk-status-badge.reserved  { background: #fef3c7; color: #92400e; }
.hk-featured-badge { position: absolute; top: 8px; right: 8px; font-size: 16px; }

/* Listing type badge (For Rent / For Sale) */
.hk-listing-type-badge {
    display: inline-block;
    font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: 20px;
}
.hk-listing-type-badge.rent { background: #dbeafe; color: #1d4ed8; }
.hk-listing-type-badge.sale { background: #fef9c3; color: #854d0e; }

.hk-verified-badge {
    display: inline-block;
    font-size: 10px; font-weight: 700;
    color: var(--hk-primary);
    background: #dcfce7;
    padding: 2px 8px; border-radius: 20px;
}
.popup-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.hk-popup-body { padding: 12px 14px; }
.hk-popup-body h3 { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--hk-text); }
.popup-meta    { font-size: 11px; color: var(--hk-muted); margin-bottom: 6px; }
.popup-price   { font-size: 16px; font-weight: 800; color: var(--hk-primary); margin-bottom: 6px; }
.popup-price small { font-size: 12px; font-weight: 500; color: var(--hk-muted); }
.popup-details { font-size: 12px; color: var(--hk-text); margin-bottom: 6px; }
.popup-amenities { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.am-tag { font-size: 10px; background: var(--hk-bg); border: 1px solid var(--hk-border); color: var(--hk-muted); padding: 2px 7px; border-radius: 20px; }
.popup-address { font-size: 11px; color: var(--hk-muted); margin-bottom: 4px; }
.popup-avail   { font-size: 11px; color: var(--hk-muted); margin-bottom: 8px; }
.popup-contact { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.hk-wa-btn    { background: #25d366; color: #fff; padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; text-decoration: none; transition: opacity .2s; }
.hk-wa-btn:hover { opacity: .85; }
.hk-phone-btn { background: var(--hk-bg); border: 1px solid var(--hk-border); color: var(--hk-text); padding: 5px 12px; border-radius: 6px; font-size: 12px; text-decoration: none; }
.hk-more-btn  { display: block; text-align: center; background: var(--hk-primary); color: #fff; padding: 8px; border-radius: 6px; font-size: 12px; font-weight: 600; text-decoration: none; transition: background .2s; }
.hk-more-btn:hover { background: var(--hk-primary-h); }

/* ── Submission form ────────────────────────────────────────────────────── */
.hk-submit-wrap  { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; box-sizing: border-box; font-family: var(--hk-font); padding: 0 12px; }
.hk-submit-header { text-align: center; padding: 24px 0 16px; }
.hk-submit-header h2 { color: var(--hk-primary); font-size: clamp(20px, 5vw, 26px); margin-bottom: 6px; }
.hk-submit-header p  { color: var(--hk-muted); font-size: 15px; }

.hk-form-section {
    background: var(--hk-white);
    border: 1px solid var(--hk-border);
    border-radius: var(--hk-radius);
    padding: 20px 20px;
    margin-bottom: 16px;
    box-shadow: var(--hk-shadow);
}
.hk-form-section h3 { margin: 0 0 16px; font-size: 16px; color: var(--hk-text); }
.hk-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hk-field { display: flex; flex-direction: column; gap: 4px; }
.hk-field-full { grid-column: 1 / -1; }
.hk-field label { font-size: 13px; font-weight: 600; color: var(--hk-text); }
.hk-field-hint  { font-size: 11px; color: var(--hk-muted); margin-top: 2px; }
.hk-field input,
.hk-field select,
.hk-field textarea {
    padding: 9px 12px;
    border: 1px solid var(--hk-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--hk-font);
    color: var(--hk-text);
    background: var(--hk-bg);
    transition: border-color .2s;
    width: 100%;
}
.hk-field input:focus,
.hk-field select:focus,
.hk-field textarea:focus {
    outline: none;
    border-color: var(--hk-primary);
    background: #fff;
}
.hk-field .req  { color: var(--hk-red); }
.hk-hint { font-size: 12px; color: var(--hk-muted); margin: 4px 0 8px; }
.hk-coords-display {
    padding: 8px 12px;
    background: #dcfce7;
    color: #166534;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 8px;
}

/* Amenity checkboxes */
.hk-checkbox-grid  { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.hk-checkbox-label {
    display: flex; align-items: center; gap: 5px;
    background: var(--hk-bg);
    border: 1px solid var(--hk-border);
    padding: 5px 11px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all .15s;
}
.hk-checkbox-label:hover { border-color: var(--hk-primary); background: #f0fdf4; }
.hk-checkbox-label input { cursor: pointer; accent-color: var(--hk-primary); }

/* Package cards */
.hk-package-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hk-package-card {
    display: block;
    border: 2px solid var(--hk-border);
    border-radius: var(--hk-radius);
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}
.hk-package-card input[type="radio"] { position: absolute; opacity: 0; }
.hk-package-card input[type="radio"]:checked ~ .hk-package-body {
    border-color: var(--hk-primary);
}
.hk-package-card:has(input:checked) {
    border-color: var(--hk-primary);
    box-shadow: 0 0 0 3px rgba(30,122,52,.15);
}
.hk-package-premium:has(input:checked) {
    border-color: var(--hk-accent);
    box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
.hk-package-body { padding: 16px; }
.hk-package-name  { font-size: 15px; font-weight: 700; color: var(--hk-text); margin-bottom: 4px; }
.hk-package-price { font-size: 20px; font-weight: 800; color: var(--hk-primary); margin-bottom: 10px; }
.hk-package-price small { font-size: 13px; font-weight: 400; color: var(--hk-muted); }
.hk-package-premium .hk-package-price { color: var(--hk-accent); }
.hk-package-features { list-style: none; margin: 0 0 10px; padding: 0; font-size: 13px; color: var(--hk-muted); }
.hk-package-features li { padding: 2px 0; }
.hk-package-note { font-size: 11px; font-weight: 600; color: var(--hk-primary); background: #f0fdf4; padding: 4px 8px; border-radius: 6px; display: inline-block; }

/* Submit footer */
.hk-submit-footer { text-align: center; padding: 8px 0 28px; }
.hk-tos { font-size: 12px; color: var(--hk-muted); margin-bottom: 16px; max-width: 480px; margin-left: auto; margin-right: auto; }
.hk-btn-submit-big {
    background: var(--hk-primary);
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--hk-radius);
    cursor: pointer;
    font-family: var(--hk-font);
    transition: background .2s, transform .1s;
    width: 100%;
    max-width: 360px;
}
.hk-btn-submit-big:hover   { background: var(--hk-primary-h); transform: translateY(-1px); }
.hk-btn-submit-big:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Alerts */
.hk-alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; border-radius: var(--hk-radius); padding: 14px 20px; margin-bottom: 16px; font-weight: 600; }
.hk-alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; border-radius: var(--hk-radius); padding: 14px 20px; margin-bottom: 16px; font-weight: 600; }

.hk-no-results { text-align: center; padding: 24px 16px; color: var(--hk-muted); line-height: 1.6; }

/* ── Responsive: small mobile (320px – 479px) ───────────────────────────── */
@media (max-width: 479px) {
    .hk-filterbar { flex-direction: column; align-items: stretch; padding: 10px; }
    .hk-filter-logo { margin-bottom: 4px; }
    .hk-filters { flex-direction: column; }
    .hk-select,
    .hk-price-range input[type="range"] { width: 100%; }
    .hk-price-range { flex-direction: column; align-items: flex-start; }
    .hk-filter-actions { width: 100%; }
    .hk-btn-submit,
    .hk-btn-toggle { width: 100%; text-align: center; }

    .hk-list-panel { position: static; width: 100%; max-height: 360px; margin-top: 8px; }
    .hk-form-grid   { grid-template-columns: 1fr; }
    .hk-package-grid { grid-template-columns: 1fr; }

    .hk-popup-wrap .leaflet-popup-content { width: 260px !important; }
}

/* ── Responsive: tablet (480px – 767px) ─────────────────────────────────── */
@media (min-width: 480px) and (max-width: 767px) {
    .hk-filterbar { flex-direction: column; }
    .hk-list-panel { position: static; width: 100%; max-height: 400px; margin-top: 8px; }
    .hk-form-grid  { grid-template-columns: 1fr; }
}

/* ── Responsive: desktop (768px+) ───────────────────────────────────────── */
@media (min-width: 768px) {
    .hk-filterbar { flex-direction: row; align-items: center; }
    .hk-submit-wrap { padding: 0; }
    .hk-form-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HousifyHub – Single Property Detail Page  (.hk-sp-*)
   All rules scoped under .hk-sp-* to avoid collision with theme styles.
   Mobile-first: 375px base → 640px → 960px
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Wrapper & container ─────────────────────────────────────────────────── */
.hk-single { font-family: var(--hk-font); color: var(--hk-text); background: var(--hk-bg); }
.hk-single * { box-sizing: border-box; }
.hk-sp-container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ── SECTION 1 — Hero / Gallery ──────────────────────────────────────────── */
.hk-sp-hero { position: relative; background: #111; overflow: hidden; }

/* Gallery */
.hk-sp-gallery            { position: relative; width: 100%; height: 300px; overflow: hidden; user-select: none; }
.hk-sp-gallery-slides     { position: relative; width: 100%; height: 100%; }
.hk-sp-slide              { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.hk-sp-slide.is-active    { opacity: 1; }
.hk-sp-slide img          { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Prev / Next */
.hk-sp-gallery-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.5); color: #fff; border: none;
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 26px; line-height: 1; cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px); transition: background .2s;
}
.hk-sp-gallery-btn:hover  { background: rgba(0,0,0,.78); }
.hk-sp-prev               { left: 12px; }
.hk-sp-next               { right: 12px; }

/* Dots */
.hk-sp-dots               { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.hk-sp-dot                { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: background .2s, transform .2s; }
.hk-sp-dot.is-active      { background: #fff; transform: scale(1.35); }

/* Photo counter */
.hk-sp-counter {
    position: absolute; top: 12px; right: 12px;
    background: rgba(0,0,0,.5); color: #fff; font-size: 12px; font-weight: 600;
    padding: 3px 10px; border-radius: 20px; backdrop-filter: blur(4px); z-index: 10;
}

/* No-photo placeholder */
.hk-sp-hero-placeholder {
    height: 260px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--hk-primary) 0%, var(--hk-primary-h) 100%);
    color: #fff; text-align: center;
}
.hk-sp-hero-placeholder span { font-size: 72px; line-height: 1; }
.hk-sp-hero-placeholder p    { font-size: 17px; font-weight: 600; margin: 14px 0 0; opacity: .9; }

/* Overlay badges */
.hk-sp-hero-badges { position: absolute; bottom: 14px; left: 14px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 10; }
.hk-sp-badge {
    font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 20px;
    backdrop-filter: blur(6px);
}
.hk-sp-badge--type.rent     { background: rgba(29,78,216,.85);  color: #fff; }
.hk-sp-badge--type.sale     { background: rgba(133,77,14,.85);  color: #fef9c3; }
.hk-sp-badge--status.available { background: rgba(22,101,52,.85);  color: #dcfce7; }
.hk-sp-badge--status.rented    { background: rgba(153,27,27,.85);  color: #fee2e2; }
.hk-sp-badge--status.reserved  { background: rgba(146,64,14,.85);  color: #fef3c7; }
.hk-sp-badge--featured      { background: rgba(245,158,11,.9);  color: #fff; }
.hk-sp-badge--verified       { background: rgba(30,122,52,.9);   color: #fff; }

/* ── SECTION 2 — Title bar ───────────────────────────────────────────────── */
.hk-sp-titlebar {
    background: var(--hk-white); border-bottom: 1px solid var(--hk-border);
    padding: 14px 0; transition: box-shadow .2s;
}
.hk-sp-titlebar.is-sticky {
    position: sticky; top: 0; z-index: 200;
    box-shadow: 0 4px 20px rgba(0,0,0,.13);
}
.hk-sp-titlebar-inner { display: flex; flex-direction: column; gap: 6px; }
.hk-sp-title {
    font-size: clamp(18px, 4.5vw, 26px); font-weight: 700;
    color: var(--hk-text); margin: 0 0 3px; line-height: 1.2;
}
.hk-sp-breadcrumb { font-size: 13px; color: var(--hk-muted); margin: 0; }
.hk-sp-price {
    font-size: clamp(20px, 5vw, 30px); font-weight: 800;
    color: var(--hk-primary); line-height: 1;
}
.hk-sp-price-suffix { font-size: 14px; font-weight: 400; color: var(--hk-muted); }
.hk-sp-avail-from   { font-size: 12px; color: var(--hk-muted); margin-top: 4px; }

/* ── SECTION 3 — Body (main + sidebar) ──────────────────────────────────── */
.hk-sp-body { padding: 20px 16px 32px; display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }

/* Cards (shared) */
.hk-sp-card, .hk-sp-contact-card, .hk-sp-meta-card {
    background: var(--hk-white); border: 1px solid var(--hk-border);
    border-radius: var(--hk-radius); padding: 18px 18px;
    box-shadow: var(--hk-shadow); margin-bottom: 16px;
}
.hk-sp-card:last-child    { margin-bottom: 0; }
.hk-sp-contact-card       { margin-bottom: 14px; }
.hk-sp-meta-card          { margin-bottom: 10px; }
.hk-sp-card-title {
    font-size: 15px; font-weight: 700; color: var(--hk-text);
    margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--hk-border);
}

/* Details grid */
.hk-sp-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hk-sp-detail {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 12px; background: var(--hk-bg);
    border: 1px solid var(--hk-border); border-radius: 8px;
}
.hk-sp-detail--full    { grid-column: 1 / -1; }
.hk-sp-detail-icon     { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.hk-sp-detail-label    { font-size: 10px; font-weight: 600; color: var(--hk-muted); text-transform: uppercase; letter-spacing: .05em; }
.hk-sp-detail-val      { font-size: 14px; font-weight: 600; color: var(--hk-text); margin-top: 2px; }

/* Description */
.hk-sp-description          { font-size: 15px; line-height: 1.75; color: var(--hk-text); }
.hk-sp-description p        { margin: 0 0 12px; }
.hk-sp-description p:last-child { margin-bottom: 0; }

/* Amenities */
.hk-sp-amenities { display: flex; flex-wrap: wrap; gap: 8px; }
.hk-sp-amenity {
    display: flex; align-items: center; gap: 6px;
    background: #f0fdf4; border: 1px solid #86efac; color: #166534;
    padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 500;
}
.hk-sp-amenity span { font-size: 16px; }

/* Location map */
.hk-sp-map      { height: 280px; border-radius: 8px; border: 1px solid var(--hk-border); overflow: hidden; }
.hk-sp-addr-line { font-size: 13px; color: var(--hk-muted); margin: 0 0 10px; }
.hk-sp-map-note { font-size: 11px; color: var(--hk-muted); margin: 8px 0 0; text-align: center; }

/* Map pin icon */
.hk-sp-pin-inner {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--hk-primary); border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.hk-sp-contact-name {
    display: flex; align-items: center; gap: 7px;
    font-size: 14px; font-weight: 600; color: var(--hk-text); margin: 0 0 14px;
}
.hk-sp-cta-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 13px 16px; border-radius: 9px;
    font-size: 14px; font-weight: 700; text-decoration: none;
    margin-bottom: 10px; transition: opacity .2s, transform .1s;
    font-family: var(--hk-font);
}
.hk-sp-cta-btn:hover      { opacity: .88; transform: translateY(-1px); }
.hk-sp-cta-btn svg        { width: 20px; height: 20px; flex-shrink: 0; }
.hk-sp-cta-wa             { background: #25d366; color: #fff; }
.hk-sp-cta-wa:hover       { color: #fff; }
.hk-sp-cta-phone          { background: var(--hk-bg); border: 1px solid var(--hk-border); color: var(--hk-text); }
.hk-sp-cta-email          { background: #f0f9ff; border: 1px solid #bae6fd; color: #0369a1; }
.hk-sp-no-contact         { font-size: 13px; color: var(--hk-muted); text-align: center; padding: 6px 0; }

/* Listing meta list */
.hk-sp-meta-list { list-style: none; margin: 0; padding: 0; }
.hk-sp-meta-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid var(--hk-border); font-size: 13px;
}
.hk-sp-meta-list li:last-child { border-bottom: none; }
.hk-sp-meta-label { color: var(--hk-muted); }
.hk-sp-meta-val   { font-weight: 600; color: var(--hk-text); text-align: right; }
.hk-sp-meta-val.hk-premium { color: var(--hk-accent); }
.hk-sp-meta-val.hk-expired { color: var(--hk-red); }

/* Report link */
.hk-sp-report { text-align: center; margin: 4px 0 0; }
.hk-sp-report a { font-size: 12px; color: var(--hk-muted); text-decoration: none; transition: color .15s; }
.hk-sp-report a:hover { color: var(--hk-red); }

/* ── SECTION 4 — Similar properties ─────────────────────────────────────── */
.hk-sp-similar         { background: var(--hk-white); border-top: 1px solid var(--hk-border); padding: 28px 0 40px; }
.hk-sp-similar-heading { font-size: clamp(17px, 4vw, 22px); font-weight: 700; color: var(--hk-text); margin: 0 0 18px; }
.hk-sp-similar-grid    { display: grid; grid-template-columns: 1fr; gap: 16px; }
.hk-sp-sim-card {
    display: block; background: var(--hk-white); border: 1px solid var(--hk-border);
    border-radius: var(--hk-radius); overflow: hidden; text-decoration: none;
    box-shadow: var(--hk-shadow); transition: transform .2s, box-shadow .2s;
}
.hk-sp-sim-card:hover  { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.13); }
.hk-sp-sim-img {
    position: relative; height: 160px; background: #e5e7eb; overflow: hidden;
    display: flex; align-items: center; justify-content: center; font-size: 40px;
}
.hk-sp-sim-img img          { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.hk-sp-sim-card:hover .hk-sp-sim-img img { transform: scale(1.05); }
.hk-sp-sim-badge {
    position: absolute; top: 8px; left: 8px;
    font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
}
.hk-sp-sim-badge.rent { background: #dbeafe; color: #1d4ed8; }
.hk-sp-sim-badge.sale { background: #fef9c3; color: #854d0e; }
.hk-sp-sim-body        { padding: 12px 14px; }
.hk-sp-sim-title       { font-size: 14px; font-weight: 600; color: var(--hk-text); margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk-sp-sim-meta        { font-size: 12px; color: var(--hk-muted); margin-bottom: 3px; }
.hk-sp-sim-price       { font-size: 16px; font-weight: 800; color: var(--hk-primary); margin-top: 7px; }
.hk-sp-sim-price small { font-size: 11px; font-weight: 400; color: var(--hk-muted); }

/* ── Single-property responsive breakpoints ──────────────────────────────── */

/* 640px+ : title bar inline, gallery taller */
@media (min-width: 640px) {
    .hk-sp-gallery              { height: 400px; }
    .hk-sp-hero-placeholder     { height: 340px; }
    .hk-sp-titlebar-inner       { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
    .hk-sp-titlebar-right       { text-align: right; flex-shrink: 0; }
    .hk-sp-similar-grid         { grid-template-columns: 1fr 1fr; }
}

/* 960px+ : full two-column layout, sticky sidebar */
@media (min-width: 960px) {
    .hk-sp-gallery              { height: 500px; }
    .hk-sp-body                 { grid-template-columns: 1fr 330px; padding: 28px 16px 48px; gap: 28px; }
    .hk-sp-sidebar              { position: sticky; top: 72px; }
    .hk-sp-detail-grid          { grid-template-columns: 1fr 1fr 1fr; }
    .hk-sp-similar-grid         { grid-template-columns: 1fr 1fr 1fr; }
    .hk-sp-map                  { height: 320px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Photo Upload — submission form
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Keyframes ────────────────────────────────────────────────────────────── */
@keyframes hk-spin {
    to { transform: rotate(360deg); }
}
@keyframes hk-fade-in-card {
    from { opacity: 0; transform: scale(.88); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes hk-toast-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Upload drop zone ─────────────────────────────────────────────────────── */
#hk-upload-zone {
    border: 2px dashed #86efac;          /* light-green dashed border */
    border-radius: 14px;
    padding: 44px 24px 40px;
    text-align: center;
    cursor: pointer;
    background: linear-gradient(160deg, #f0fdf4 0%, #f9fafb 100%);
    transition: border-color .25s, background .25s, box-shadow .25s;
    position: relative;
    user-select: none;
    outline: none;
}
#hk-upload-zone:hover,
#hk-upload-zone:focus-visible {
    border-color: var(--hk-primary, #16a34a);
    background: linear-gradient(160deg, #dcfce7 0%, #f0fdf4 100%);
    box-shadow: 0 0 0 4px rgba(22,163,74,.10), 0 6px 24px rgba(22,163,74,.09);
}
#hk-upload-zone.hk-upload-dragover {
    border-color: var(--hk-primary, #16a34a);
    border-style: solid;
    background: linear-gradient(160deg, #bbf7d0 0%, #dcfce7 100%);
    box-shadow: 0 0 0 6px rgba(22,163,74,.15), 0 8px 28px rgba(22,163,74,.15);
}

/* Zone inner wrapper — pointer-events:none so clicks reach the zone div */
.hk-upload-zone-inner { pointer-events: none; }

/* Camera emoji — lifts and scales on hover */
.hk-upload-zone-icon {
    display: block;
    font-size: 52px;
    line-height: 1;
    margin-bottom: 14px;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,.12));
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
#hk-upload-zone:hover .hk-upload-zone-icon,
#hk-upload-zone.hk-upload-dragover .hk-upload-zone-icon {
    transform: translateY(-6px) scale(1.12);
}

/* "Add Property Photos" heading */
.hk-upload-zone-title {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--hk-text, #1f2937);
    margin-bottom: 6px;
    letter-spacing: -.2px;
}

/* "Drag & drop … or click to browse" line */
.hk-upload-zone-sub {
    font-size: 14px;
    color: var(--hk-muted, #6b7280);
    margin: 0 0 10px;
}
.hk-upload-zone-link {
    color: var(--hk-primary, #16a34a);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

/* "JPG, PNG … Up to N photos" fine-print */
.hk-upload-zone-hint {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* ── Error toast ──────────────────────────────────────────────────────────── */
.hk-upload-error-toast {
    margin: 10px 0 0;
    font-size: 13px;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 9px 14px;
    animation: hk-toast-in .2s ease;
}

/* ── Preview grid ─────────────────────────────────────────────────────────── */
/* Mobile first: 2 columns */
.hk-photo-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}
/* 480px+: 3 columns */
@media (min-width: 480px) {
    .hk-photo-preview { grid-template-columns: repeat(3, 1fr); }
}

/* ── Individual preview card ──────────────────────────────────────────────── */
.hk-preview-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,.09);
    animation: hk-fade-in-card .38s cubic-bezier(.34,1.56,.64,1) both;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.hk-preview-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    transform: translateY(-3px);
    border-color: #d1d5db;
}

/* While uploading: green border + no entry animation (spinner is shown instead) */
.hk-preview-item.hk-preview-uploading {
    border-color: var(--hk-primary, #16a34a);
    animation: none;
}

/* Failed card: red border, auto-removed after 4 s */
.hk-preview-item.hk-preview-error {
    border-color: #ef4444;
    animation: none;
}

/* Thumbnail image itself */
.hk-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Spinner overlay (shown while XHR is in flight) ──────────────────────── */
.hk-upload-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.72);
    z-index: 4;
}
.hk-upload-spinner::after {
    content: '';
    width: 34px;
    height: 34px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--hk-primary, #16a34a);
    border-radius: 50%;
    animation: hk-spin .65s linear infinite;
}

/* ── Remove (×) button ────────────────────────────────────────────────────── */
.hk-preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #ef4444;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.28);
    transition: background .15s, transform .15s;
    z-index: 5;
}
.hk-preview-remove:hover {
    background: #b91c1c;
    transform: scale(1.15);
}

/* ── Position badges ──────────────────────────────────────────────────────── */
.hk-preview-badge {
    position: absolute;
    bottom: 7px;
    left: 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3px;
    line-height: 1.4;
    padding: 3px 8px;
    border-radius: 20px;
    box-shadow: 0 1px 5px rgba(0,0,0,.22);
    z-index: 3;
    pointer-events: none;
}
/* "Main Photo" — green */
.hk-preview-badge-main {
    background: var(--hk-primary, #16a34a);
    color: #fff;
}
/* "2", "3", "4" … — dark semi-transparent */
.hk-preview-badge-num {
    background: rgba(0,0,0,.58);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 7px;
}

/* ── Error overlay inside a failed card ──────────────────────────────────── */
.hk-preview-error-msg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    color: #b91c1c;
    background: rgba(254,242,242,.92);
    padding: 10px;
    z-index: 2;
}

/* ── "Add more photos" button ─────────────────────────────────────────────── */
.hk-add-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    padding: 10px 20px;
    border: 2px dashed var(--hk-primary, #16a34a);
    border-radius: 10px;
    background: transparent;
    color: var(--hk-primary, #16a34a);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, border-style .15s;
    line-height: 1;
}
.hk-add-more-btn:hover {
    background: #f0fdf4;
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}
.hk-add-more-icon {
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
}

/* ── Plugin-wide navigation bar ─────────────────────────────────────────────
   White bar, 64px tall, used on every plugin page.
   ─────────────────────────────────────────────────────────────────────────── */
.hk-plugin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 64px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    font-family: var(--hk-font, 'Plus Jakarta Sans', system-ui, sans-serif);
    box-sizing: border-box;
}
.hk-plugin-nav * { box-sizing: border-box; }

.hk-pnav-logo {
    font-size: 17px;
    font-weight: 800;
    color: #1a2e1a;
    text-decoration: none;
    letter-spacing: -.3px;
    line-height: 1;
}
.hk-pnav-logo span { color: #2d6a4f; }
.hk-pnav-logo:hover,
.hk-pnav-logo:focus { opacity: .85; color: #1a2e1a; text-decoration: none; }

.hk-pnav-link {
    font-size: 14px;
    font-weight: 600;
    color: #2d6a4f;
    text-decoration: none;
    padding: 8px 20px;
    border: 2px solid #2d6a4f;
    border-radius: 6px;
    background: #fff;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.hk-pnav-link:hover,
.hk-pnav-link:focus { background: #2d6a4f; color: #fff; text-decoration: none; }

/* Homepage: fixed at viewport top */
.hk-homepage > .hk-plugin-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}
.admin-bar .hk-homepage > .hk-plugin-nav { top: 32px; }
@media (max-width: 782px) {
    .admin-bar .hk-homepage > .hk-plugin-nav { top: 46px; }
}
@media (max-width: 768px) {
    .hk-plugin-nav { padding: 0 16px; }
}

/* Auth pages: absolute at top of the full-screen overlay */
.hk-auth-page > .hk-plugin-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
}

/* ── Password show/hide toggle (used on visitor and landlord login pages) ── */
.hk-pw-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.hk-pw-wrap input[type="password"],
.hk-pw-wrap input[type="text"] {
    padding-right: 44px !important;
    width: 100%;
}
.hk-pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    flex-shrink: 0;
}
.hk-pw-toggle:hover { color: #374151; }
