* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; width: 100%; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

/* Menu Bar */
.menu-bar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex; flex-direction: column; align-items: center; padding: 10px 0;
    z-index: 10000; box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
.menu-bar.position-top {
    top: 0; left: 0; right: 0; bottom: auto; width: 100%; height: 60px;
    flex-direction: row;
}
.menu-bar.position-top .logo { margin-bottom: 0; margin-right: 20px; }
.menu-bar.position-top .menu-items { flex-direction: row; }
.menu-bar.position-top .position-toggle { margin-top: 0; margin-left: auto; margin-right: 10px; }
.menu-bar.position-right { left: auto; right: 0; }
.menu-bar.position-bottom {
    top: auto; bottom: 0; left: 0; right: 0; width: 100%; height: 60px;
    flex-direction: row;
}
.menu-bar.position-bottom .logo { margin-bottom: 0; margin-right: 20px; }
.menu-bar.position-bottom .menu-items { flex-direction: row; }
.menu-bar.position-bottom .position-toggle { margin-top: 0; margin-left: auto; margin-right: 10px; }

.menu-bar .logo { color: white; font-size: 24px; margin-bottom: 20px; }
.menu-bar .menu-items { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.menu-bar .menu-item {
    position: relative;
    width: 44px; height: 44px; background: rgba(255,255,255,0.1);
    border: none; border-radius: 8px; color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.menu-bar .menu-item:hover { background: rgba(255,255,255,0.2); }
.menu-bar .menu-item.active { background: #0f3460; border: 2px solid #667eea; }
.menu-bar .menu-item svg { width: 22px; height: 22px; }
.menu-bar .menu-item::before {
    content: attr(title);
    position: absolute;
    left: 60px;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 100001;
}
.menu-bar .menu-item:hover::before { opacity: 1; }

.menu-bar .position-toggle {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px; color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.menu-bar .position-toggle:hover { background: rgba(255,255,255,0.2); }
.menu-bar .position-toggle svg { width: 20px; height: 20px; }

/* Secondary Menu */
.menu-bar-secondary {
    position: fixed;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    flex-direction: column;
    padding: 10px 6px;
    z-index: 9999;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    gap: 6px;
    transition: opacity 0.2s, transform 0.2s;
    width: fit-content;
    height: fit-content;
}
.menu-bar-secondary.visible { opacity: 1; visibility: visible; }
.menu-bar-secondary.horizontal { flex-direction: row; }

.menu-bar-secondary .menu-item-secondary {
    position: relative;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.menu-bar-secondary .menu-item-secondary:hover { background: rgba(255,255,255,0.2); }
.menu-bar-secondary .menu-item-secondary.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.menu-bar-secondary .menu-item-secondary svg { width: 20px; height: 20px; }
.menu-bar-secondary .menu-item-secondary::before {
    content: attr(title);
    position: absolute;
    left: 50px;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 100001;
}
.menu-bar-secondary .menu-item-secondary:hover::before { opacity: 1; }

/* Side Panel */
.side-panel {
    position: fixed; top: 0; left: -400px; width: 400px; height: 100vh;
    background: white; box-shadow: 2px 0 20px rgba(0,0,0,0.15);
    z-index: 9998; transition: left 0.3s; overflow-y: auto;
}
.side-panel.open { left: 60px; }
.side-panel .panel-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; border-bottom: 1px solid #e9ecef; background: #f8f9fa;
    position: sticky; top: 0;
}
.side-panel .panel-header h3 { margin: 0; font-size: 18px; color: #1a1a2e; }
.side-panel .close-btn {
    background: none; border: none; font-size: 24px; cursor: pointer;
    color: #666; width: 32px; height: 32px; border-radius: 6px;
}
.side-panel .close-btn:hover { background: #e9ecef; color: #1a1a2e; }
.side-panel .panel-content { padding: 24px; }
.side-panel .panel-content p { color: #555; font-size: 14px; line-height: 1.7; }
.side-panel .panel-content h4 { font-size: 16px; color: #1a1a2e; margin: 16px 0 12px; }

/* Map */
#map1 { 
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
}

/* Mouse Position */
.mouse-position {
    position: fixed;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    z-index: 1000;
    white-space: nowrap;
    width: fit-content;
    transition: all 0.3s ease;
}
.menu-bar.position-right ~ .mouse-position { right: 80px; }
.menu-bar.position-bottom ~ .mouse-position { bottom: 70px; }

/* Position-specific tooltip adjustments */
.menu-bar.position-top .menu-item::before {
    left: 50%; top: 50px; transform: translateX(-50%);
}
.menu-bar.position-right .menu-item::before {
    left: auto; right: 50px;
}
.menu-bar.position-bottom .menu-item::before {
    left: 50%; top: -40px; transform: translateX(-50%);
}

/* Coordinates Panel */
.coords-panel {
    position: fixed;
    bottom: 70px;
    right: 12px;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    z-index: 1001;
    max-width: 400px;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.coords-panel.visible { display: block; }
.coords-panel .coords-title {
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.coords-panel .coords-list {
    max-height: 250px;
}
.coords-panel .copy-btn {
    background: #667eea;
    border: none;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
}
.coords-panel .copy-btn:hover { background: #5a6fd6; }
.coords-panel .coords-list {
    max-height: 200px;
    overflow-y: auto;
}
.coords-panel .coord-item {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 11px;
}
.coords-panel .coord-item:last-child { border-bottom: none; }

/* Center Marker */
.center-marker {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    pointer-events: none;
    transition: all 0.3s ease;
}
.center-marker svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.center-marker.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

/* Center Marker Coordinates */
.center-marker-coords {
    position: fixed;
    bottom: 80px;
    right: 12px;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
    z-index: 1000;
    white-space: nowrap;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}
.center-marker-coords.visible {
    display: block;
}
.center-marker-coords .coords-label {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.center-marker-coords .coords-value {
    font-size: 14px;
}

/* Ad Modal */
.ad-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    backdrop-filter: blur(4px);
}
.ad-modal-overlay.visible { display: flex; }
.ad-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: adModalPopIn 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
@keyframes adModalPopIn {
    from { opacity: 0; transform: scale(0.8) translateY(-50px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.ad-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
    color: white;
}
.ad-modal-header h2 { margin: 0; font-size: 22px; font-weight: 700; }
.ad-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 26px;
    transition: all 0.2s;
}
.ad-modal-close:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }
.ad-modal-body { padding: 28px; }
.ad-quiz-step { display: none; }
.ad-quiz-step.active { display: block; animation: adStepSlideIn 0.3s ease; }
@keyframes adStepSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
.ad-step-title {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #667eea;
}
.ad-type-options { display: flex; flex-direction: column; gap: 14px; }
.ad-type-option {
    padding: 18px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
}
.ad-type-option:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102,126,234,0.05) 0%, rgba(118,75,162,0.05) 100%);
    transform: translateX(5px);
}
.ad-type-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102,126,234,0.15) 0%, rgba(118,75,162,0.15) 100%);
    box-shadow: 0 4px 15px rgba(102,126,234,0.2);
}
.ad-type-option input[type="radio"] { width: 22px; height: 22px; accent-color: #667eea; }
.ad-type-option label { cursor: pointer; flex: 1; font-size: 16px; color: #333; font-weight: 500; }
.ad-form-group { margin-bottom: 24px; }
.ad-form-group label { display: block; font-size: 14px; font-weight: 700; color: #333; margin-bottom: 10px; }
.ad-form-group input[type="text"],
.ad-form-group input[type="number"],
.ad-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
}
.ad-form-group input:focus, .ad-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102,126,234,0.1);
}
.ad-form-group textarea { resize: vertical; min-height: 140px; font-family: inherit; }
.ad-char-count { text-align: right; font-size: 13px; color: #888; margin-top: 6px; }
.ad-cadastral-input { font-family: monospace; font-size: 18px; letter-spacing: 2px; }
.ad-checkbox-section { margin-bottom: 28px; background: #f8f9fa; padding: 20px; border-radius: 12px; }
.ad-checkbox-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}
.ad-checkbox-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ad-checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s;
    background: white;
}
.ad-checkbox-option:hover { background: #e9ecef; transform: translateX(3px); }
.ad-checkbox-option input[type="checkbox"] { width: 20px; height: 20px; accent-color: #667eea; }
.ad-checkbox-option label { cursor: pointer; font-size: 14px; color: #333; flex: 1; }
.ad-conditional-fields {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 24px;
    border-radius: 12px;
    margin-top: 20px;
    border-left: 5px solid #667eea;
}
.ad-modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 28px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    gap: 16px;
}
.ad-btn {
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
}
.ad-btn-back { background: #e9ecef; color: #333; }
.ad-btn-back:hover { background: #dee2e6; }
.ad-btn-next, .ad-btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}
.ad-btn-next:hover, .ad-btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
}
.ad-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ad-progress {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 28px;
    border-bottom: 1px solid #e9ecef;
    background: #fafbfc;
}
.ad-progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
    transition: all 0.3s;
}
.ad-progress-dot.active {
    background: #667eea;
    width: 40px;
    border-radius: 6px;
}
.ad-progress-dot.completed { background: #28a745; }
.ad-photo-upload { margin-top: 16px; }
.ad-photo-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px dashed #667eea;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(102,126,234,0.05);
}
.ad-photo-label:hover { background: rgba(102,126,234,0.1); border-color: #764ba2; }
.ad-photo-label input[type="file"] { display: none; }
.ad-photo-icon { font-size: 32px; margin-right: 12px; }
.ad-photo-text { font-size: 14px; color: #666; }
.ad-photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.ad-photo-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e9ecef;
}
.ad-photo-item img { width: 100%; height: 100%; object-fit: cover; }
.ad-photo-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(220,53,69,0.9);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-preview-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.ad-preview-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}
.ad-preview-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}
.ad-preview-row:last-child { border-bottom: none; }
.ad-preview-label { font-size: 13px; color: #888; font-weight: 500; }
.ad-preview-value { font-size: 14px; color: #333; font-weight: 600; text-align: right; }
.ad-preview-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ad-preview-photo { width: 80px; height: 80px; border-radius: 6px; overflow: hidden; border: 1px solid #dee2e6; }
.ad-preview-photo img { width: 100%; height: 100%; object-fit: cover; }
.ad-preview-communications {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
}
.ad-preview-comm-item {
    font-size: 12px;
    padding: 6px 10px;
    background: #e7f3ff;
    border-radius: 6px;
    color: #0066cc;
}
.ad-boundary-layer { z-index: 500 !important; }
.ad-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000000;
}
.ad-confirm-overlay.visible { display: flex; }
.ad-confirm-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    padding: 32px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.4);
    text-align: center;
}
.ad-confirm-title { font-size: 20px; font-weight: 700; color: #1a1a2e; margin-bottom: 12px; }
.ad-confirm-message { font-size: 15px; color: #666; margin-bottom: 28px; }
.ad-confirm-buttons { display: flex; gap: 16px; justify-content: center; }
.ad-btn-cancel { background: #e9ecef; color: #333; min-width: 100px; }
.ad-btn-confirm {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    min-width: 100px;
}
.ad-yes-no-group { display: flex; gap: 20px; }
.ad-yes-no-option {
    flex: 1;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    font-weight: 600;
}
.ad-yes-no-option:hover { border-color: #667eea; background: rgba(102,126,234,0.05); }
.ad-yes-no-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102,126,234,0.15) 0%, rgba(118,75,162,0.15) 100%);
}
.ad-yes-no-option input[type="radio"] { display: none; }
.ad-error-message { color: #dc3545; font-size: 13px; margin-top: 6px; }
.ad-form-group.error input { border-color: #dc3545; }
.ad-success-message { text-align: center; padding: 50px 30px; }
.ad-success-icon { font-size: 80px; margin-bottom: 20px; }
.ad-success-title { font-size: 24px; font-weight: 700; color: #28a745; margin-bottom: 12px; }
.ad-success-text { font-size: 15px; color: #666; }
.ad-success-id {
    background: #e7f3ff;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    color: #0066cc;
    margin-top: 16px;
    display: inline-block;
}/* Append at end of existing style.css */

/* ── Lots Filter Panel ────────────────────────────────────── */
.lot-filter-group {
    margin-bottom: 14px;
}
.lot-filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}
.lot-filter-group select,
.lot-filter-group input[type="number"],
.lot-filter-group input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    outline: none;
    transition: border-color .15s;
}
.lot-filter-group select:focus,
.lot-filter-group input:focus {
    border-color: #667eea;
}

.lot-filter-checks,
.lot-filter-toggles {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}
.lot-filter-checks label,
.lot-filter-toggles label {
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.lot-filter-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.lot-btn {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .05s, opacity .15s;
}
.lot-btn:active { transform: translateY(1px); }
.lot-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.lot-btn.secondary {
    background: #e9ecef;
    color: #333;
}
.lot-btn.secondary:hover { background: #dee2e6; }

.lot-stats {
    text-align: center;
    font-size: 12px;
    color: #666;
    padding: 6px 0;
}

/* ── Lot Popup ────────────────────────────────────────────── */
.lot-popup {
    position: absolute;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    min-width: 280px;
    max-width: 340px;
    font-size: 13px;
    color: #333;
    z-index: 10000;
    overflow: hidden;
}
.lot-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.lot-popup-header strong {
    font-size: 14px;
}
.lot-popup-close {
    background: rgba(255,255,255,.2);
    border: none;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.lot-popup-body {
    padding: 12px 14px;
    max-height: 320px;
    overflow-y: auto;
}
.lot-popup-address {
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a2e;
}
.lot-popup-row {
    margin-bottom: 6px;
}
.lot-popup-photos {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    overflow-x: auto;
}
.lot-popup-photos img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}
.lot-popup-photos img:hover {
    opacity: .9;
}

/* ── Side panel scroll fixes ─────────────────────────────── */
#filters-panel .panel-content {
    padding-bottom: 20px;
}

/* ── Premium Lot Panel ───────────────────────────────────── */
.lot-premium {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
}
.lot-premium-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 24px 20px 20px;
    position: relative;
}
.lot-premium-price {
    font-size: 26px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}
.lot-premium-address {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin-top: 8px;
}
.lot-premium-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.lot-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.lot-badge--auction   { background: #e3f2fd; color: #1565c0; }
.lot-badge--message   { background: #fff3e0; color: #ef6c00; }
.lot-badge--sale      { background: #e8f5e9; color: #2e7d32; }
.lot-badge--rent      { background: #f3e5f5; color: #7b1fa2; }
.lot-badge--zk        { background: #e0f7fa; color: #00838f; }
.lot-badge--default   { background: #f5f5f5; color: #616161; }

.lot-premium-body {
    padding: 20px;
}
.lot-premium-section {
    margin-bottom: 18px;
}
.lot-premium-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #8898aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.lot-premium-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}
.lot-premium-row {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid #f4f6f8;
}
.lot-premium-row--full {
    grid-column: 1 / -1;
}
.lot-premium-label {
    font-size: 12px;
    color: #8898aa;
    margin-bottom: 2px;
}
.lot-premium-value {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
}
.lot-premium-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.lot-premium-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f8f9fa;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}
.lot-premium-link:hover {
    background: #e9ecef;
}
.lot-premium-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.6;
}

.lot-premium-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 8px;
}
.lot-premium-photo {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.lot-premium-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.lot-premium-photo:hover img {
    transform: scale(1.05);
}
.lot-premium-photo--more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

/* ── Photo Lightbox ──────────────────────────────────────── */
.photo-lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    cursor: pointer;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 40px;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.lightbox-close:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 48px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    user-select: none;
}
.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-counter {
    margin-top: 16px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ── Copy cadastral number ──────────────────────────────── */
.lot-premium-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #1565c0;
    transition: color 0.2s;
    position: relative;
}
.lot-premium-copy:hover {
    color: #0d47a1;
    text-decoration: underline;
}
.lot-premium-copy svg {
    opacity: 0.5;
    transition: opacity 0.2s;
}
.lot-premium-copy:hover svg {
    opacity: 1;
}
.lot-copy-toast {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1a1a2e;
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}
.lot-copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Accordion ──────────────────────────────────────────── */
.lot-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    margin-top: 10px;
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    transition: background 0.2s;
}
.lot-accordion-toggle:hover {
    background: #e9ecef;
}
.lot-accordion-toggle svg {
    transition: transform 0.25s;
}
.lot-accordion-toggle.open svg {
    transform: rotate(180deg);
}
.lot-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 14px;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
    margin-top: -4px;
}
.lot-accordion-body.open {
    max-height: 400px;
    padding: 14px;
}
.lot-accordion-address {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}
.lot-accordion-desc {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    border: 1px dashed #dee2e6;
}
