* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body:has(.findus) .footer {
    display: none;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #059669;
    --danger: #dc2626;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius: 12px;
    --hero-slider-h: 380px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-brand a {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-icon {
    font-size: 1.3rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.btn-add {
    background: var(--primary);
    color: white !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-add:hover {
    background: var(--primary-dark);
    color: white !important;
}

.btn-admin {
    background: var(--secondary);
    color: white !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    z-index: 1200;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    margin: 0 0 5px 0;
    background: var(--text);
    border-radius: 3px;
    transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle span:last-child { margin-bottom: 0; }

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Container */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 48px 20px 20px;
}

.hero-badge {
    display: inline-block;
    background: #eff6ff;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 2.4rem;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-highlight {
    background: linear-gradient(135deg, #2563eb, #059669);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* Filters */
.filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.search-box {
    flex: 1;
    min-width: 200px;
}

.search-box input {
    width: 100%;
    padding: 9px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: var(--primary);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-btn {
    padding: 6px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.filter-btn[data-status="tersedia"].active {
    background: #16a34a;
    border-color: #16a34a;
}

.filter-btn[data-status="disewa"].active {
    background: var(--danger);
    border-color: var(--danger);
}

.btn-map-toggle {
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Map */
.map-section {
    margin-bottom: 24px;
}

#map {
    height: 100%;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

/* Fallback: page yang masih memakai .map-section (admin, dan index versi lama) */
.map-section {
    margin-bottom: 24px;
}

.map-section #map {
    height: 400px;
}

#mapSection {
    display: block;
}

/* Listings Grid */
.listings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    min-height: 200px;
}

.listing-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.listing-card.highlight {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.18);
}

.card-foto {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: #e2e8f0;
}

.card-foto-placeholder {
    width: 100%;
    height: 170px;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--text-light);
}

.card-body {
    padding: 13px;
}

.card-tipe {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.tipe-sewa {
    background: #fef3c7;
    color: #92400e;
}

.tipe-tawar {
    background: #d1fae5;
    color: #065f46;
}

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

.card-badges .card-tipe,
.card-badges .card-status-badge {
    margin-bottom: 0;
}

.card-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #fee2e2;
    color: #b91c1c;
}

.card-status-badge.status-ok {
    background: #dcfce7;
    color: #15803d;
}

.card-foto-wrap {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: #e2e8f0;
}

.card-foto-wrap .card-foto {
    height: 100%;
}

.card-rented-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.listing-card.is-disewa .card-nama {
    color: var(--text-light);
}

.listing-card.is-disewa .card-harga {
    color: var(--text-light);
}

.listing-card.is-disewa {
    filter: saturate(0.35);
}

.card-nama {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.card-alamat {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-harga {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 13px;
    border-top: 1px solid var(--border);
}

.card-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25d366;
    color: white;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background 0.2s;
}

.card-whatsapp:hover {
    background: #1da851;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 12px;
}

.empty-state h3 {
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-light);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 7px 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.pagination button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--card-bg);
    border-radius: var(--radius);
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    z-index: 10;
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 20px;
}

.modal-foto-main {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 14px;
}

.modal-fotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.modal-fotos-grid img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-tipe-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.modal-info {
    margin-bottom: 16px;
}

.modal-info p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text);
}

.modal-info .label {
    font-weight: 600;
    min-width: 100px;
    color: var(--text-light);
}

.modal-maps-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.modal-maps-link:hover {
    text-decoration: underline;
}

.modal-harga {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 12px 0;
}

.modal-map {
    height: 220px;
    border-radius: 8px;
    margin: 16px 0;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.2s;
}

.btn-wa:hover {
    background: #1da851;
    color: white;
}

.btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--danger);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.92rem;
    transition: background 0.2s;
}

.btn-delete:hover {
    background: #b91c1c;
}

.btn-doc-modal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-doc-modal:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-doc-modal.btn-doc-secondary {
    background: #0f172a;
}

.btn-doc-modal.btn-doc-secondary:hover {
    background: #1e293b;
}

.btn-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.92rem;
    transition: background 0.2s, opacity 0.2s;
}

.btn-status:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-status-disewa {
    background: #b45309;
}

.btn-status-disewa:hover {
    background: #92400e;
}

.btn-status-ok {
    background: #16a34a;
}

.btn-status-ok:hover {
    background: #15803d;
}

.status-banner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 8px 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-banner.disewa {
    background: #fee2e2;
    color: #b91c1c;
}

.status-banner.ok {
    background: #dcfce7;
    color: #15803d;
}

/* status filters merged into single row */

.btn-maps {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4285f4;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.2s;
}

.btn-maps:hover {
    background: #3367d6;
    color: white;
}

/* Directions to location */
.modal-directions {
    margin: 16px 0;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.dir-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dir-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.dir-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 8px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.78rem;
    text-decoration: none;
    color: #fff;
    transition: transform 0.15s, opacity 0.15s;
}

.dir-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: #fff;
}

.dir-google { background: #4285f4; }
.dir-waze { background: #33ccff; color: #153e75; }
.dir-apple { background: #0b0b0d; }

/* Lightbox Foto (zoom) */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.lightbox.show {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    cursor: zoom-in;
    transition: transform 0.2s ease;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
}

.lightbox img.zoomed {
    cursor: zoom-out;
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 2.6rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #ef4444;
}

.lightbox-tip {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    background: rgba(0,0,0,0.5);
    padding: 6px 14px;
    border-radius: 20px;
    pointer-events: none;
}

/* Navigasi gallery dalam lightbox (slide promo) */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.3); }

.lightbox-nav.inav-prev { left: 14px; }
.lightbox-nav.inav-next { right: 14px; }

.lightbox-counter {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(0,0,0,0.55);
    padding: 4px 14px;
    border-radius: 20px;
    pointer-events: none;
}

@media (max-width: 640px) {
    .lightbox-nav { width: 38px; height: 38px; font-size: 1.8rem; }
    .lightbox-nav.inav-prev { left: 8px; }
    .lightbox-nav.inav-next { right: 8px; }
}

/* Form Page */
.form-page {
    max-width: 700px;
    margin: 0 auto;
}

.form-page h1 {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.form-subtitle {
    color: var(--text-light);
    margin-bottom: 24px;
}

.listing-form {
    background: var(--card-bg);
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.alamat-auto-hint {
    display: block;
    margin-top: 4px;
    font-style: italic;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 9px 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
}

.form-group input.input-error,
.form-group input.input-error:focus {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.12);
}

.harga-limit-hint {
    display: block;
    margin-top: 4px;
    color: var(--text-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary);
    background: #eff6ff;
}

.upload-placeholder {
    color: var(--text-light);
}

.upload-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 8px;
}

.foto-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}

.fotos-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.fotos-thumb {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.hidden {
    display: none !important;
}

/* Camera Buttons */
.upload-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-camera,
.btn-gallery {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-camera {
    background: var(--primary);
    color: white;
}

.btn-camera:hover {
    background: var(--primary-dark);
}

.btn-gallery {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-gallery:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.upload-or {
    color: var(--text-light);
    font-size: 0.85rem;
}

.upload-hint {
    display: block;
    margin-top: 12px;
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Camera status spinner */
.camera-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Add Map */
.map-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.map-search-box {
    flex: 1;
    display: flex;
    gap: 0;
    position: relative;
}

.map-search-box input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 8px 0 0 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.map-search-box input:focus {
    border-color: var(--primary);
}

.btn-map-search {
    padding: 10px 16px;
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}

.btn-map-search:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-my-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-my-location:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-my-location:disabled {
    opacity: 0.6;
    cursor: wait;
}

.map-search-results {
    position: relative;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.map-search-loading {
    padding: 12px 14px;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
}

.map-search-item {
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--text);
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.map-search-item:last-child {
    border-bottom: none;
}

.map-search-item:hover {
    background: #f1f5f9;
}

.map-wrapper {
    position: relative;
}

.add-map {
    height: 300px;
    border-radius: 8px;
    border: 2px solid var(--border);
}

.map-layer-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.layer-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-light);
}

.layer-btn:hover {
    color: var(--primary);
}

.layer-btn.active {
    background: var(--primary);
    color: white;
}

/* Custom Map Pin */
.custom-pin {
    background: none !important;
    border: none !important;
}

.pin {
    position: relative;
    width: 32px;
    height: 44px;
}

.pin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50% 50% 50% 0;
    transform: translateX(-50%) rotate(-45deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 3px solid white;
}

.pin-dot {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    z-index: 1;
}

.pin::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: rgba(37,99,235,0.25);
    border-radius: 50%;
    filter: blur(3px);
}

.coord-display {
    display: flex;
    gap: 20px;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

.btn {
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-cancel {
    background: transparent;
    color: var(--text-light);
    border-color: var(--border);
}

.btn-cancel:hover {
    border-color: var(--text-light);
    color: var(--text);
}

/* Footer */
.footer {
    text-align: center;
    padding: 18px;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 32px;
    border-top: 1px solid var(--border);
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .navbar {
        padding: 0 12px;
    }

    .btn-add {
        padding: 5px 12px;
        font-size: 0.82rem;
    }

    .navbar:has(.nav-toggle) .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-left: auto;
    }

    .navbar:has(.nav-toggle) .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--card-bg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 10px 14px 14px;
        gap: 6px;
        z-index: 1100;
        border-radius: 0 0 12px 12px;
    }

    .navbar:has(.nav-toggle) .nav-links.open {
        display: flex;
    }

    .navbar:has(.nav-toggle) .nav-links a {
        padding: 10px 14px;
        border-radius: 8px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .navbar:has(.nav-toggle) .nav-links a:hover,
    .navbar:has(.nav-toggle) .nav-links a.active {
        background: #f1f5f9;
    }

    .navbar:has(.nav-toggle) .nav-links .btn-add,
    .navbar:has(.nav-toggle) .nav-links .btn-admin {
        width: 100%;
        text-align: center;
        margin-top: 2px;
    }

    .modal-info p {
        flex-direction: column;
        gap: 2px;
    }

    .modal-info .label {
        min-width: unset;
    }

    .findus-list {
        width: 300px;
    }
}

/* ============ Hero Slider (Slider konten PDF layar beranda) ============ */
.hero-slider {
    position: relative;
    height: var(--hero-slider-h);
    width: 100%;
    background:
        radial-gradient(700px 400px at 15% 0%, rgba(37,99,235,0.25), transparent 60%),
        radial-gradient(600px 400px at 90% 100%, rgba(5,150,105,0.18), transparent 60%),
        linear-gradient(160deg, #0b1220 0%, #132347 55%, #0e1b3d 100%);
    overflow: hidden;
}

.hero-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 80%);
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 80%);
    pointer-events: none;
    z-index: 1;
}

.hero-slider .hero-swiper {
    height: 100%;
    max-width: 880px;
    margin: 0 auto;
}

.hero-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-slider .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.45);
    user-select: none;
    z-index: 2;
    cursor: pointer;
}

.hero-slider .swiper-pagination {
    z-index: 5;
}

.hero-slider .swiper-pagination-bullet {
    background: rgba(255,255,255,0.5);
    opacity: 1;
}

.hero-slider .swiper-pagination-bullet-active {
    background: #fff;
    width: 22px;
    border-radius: 6px;
}

.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    color: #fff;
    z-index: 5;
}

.hero-slider .swiper-button-prev::after,
.hero-slider .swiper-button-next::after {
    font-size: 14px;
    font-weight: 700;
}

.hero-slider .swiper-button-prev:hover,
.hero-slider .swiper-button-next:hover {
    background: rgba(255,255,255,0.25);
}

.hero-slider-badge {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border-radius: 30px;
    backdrop-filter: blur(6px);
    pointer-events: none;
}

.hero-zoom {
    position: absolute;
    bottom: 36px;
    right: 14px;
    z-index: 6;
    background: rgba(15,23,42,0.75);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-zoom:hover { background: rgba(37,99,235,0.9); }

.hero-slider-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    color: rgba(255,255,255,0.8);
    font-size: 0.72rem;
    background: rgba(15,23,42,0.6);
    padding: 5px 12px;
    border-radius: 30px;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Sesuaikan tinggi peta saat hero slider ada di halaman */
body:has(.hero-slider) .findus {
    height: calc(100vh - 56px - var(--hero-slider-h));
}

@media (max-width: 768px) {
    :root { --hero-slider-h: 300px; }
    .hero-slider .hero-swiper { max-width: 560px; }
}

@media (max-width: 640px) {
    :root { --hero-slider-h: 240px; }
    .hero-slider .hero-swiper { max-width: 420px; }
    body:has(.hero-slider) .findus { height: calc(100vh - 48px - var(--hero-slider-h)); }
    .hero-slider .swiper-button-prev,
    .hero-slider .swiper-button-next { width: 30px; height: 30px; }
    .hero-slider-hint { display: none; }
    .hero-zoom { bottom: 38px; right: 10px; padding: 6px 12px; font-size: 0.74rem; }
}

/* ============ Find Us: peta fullscreen ============ */
.findus {
    position: relative;
    height: calc(100vh - 56px);
    min-height: 440px;
    width: 100%;
    overflow: hidden;
    display: flex;
}

.findus #map {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    z-index: 1;
}

.findus-filter {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 340px;
    width: calc(100% - 90px);
}

.findus-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 30px;
    padding: 7px 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    border: 1px solid var(--border);
}

.findus-search .fs-icon { color: var(--text-light); font-size: 1rem; }

.findus-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    background: transparent;
    padding: 4px 0;
    min-width: 0;
}

.findus-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.findus-tabs .filter-btn {
    background: #fff;
    border-radius: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    padding: 6px 13px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.findus-tabs .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.findus-tabs .filter-btn[data-status="tersedia"].active {
    background: #16a34a;
    border-color: #16a34a;
}

.findus-tabs .filter-btn[data-status="disewa"].active {
    background: var(--danger);
    border-color: var(--danger);
}

.findus-list-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1000;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 8px 13px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.findus-list-toggle #listCountBadge {
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    min-width: 22px;
    height: 22px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.findus:has(.findus-list:not(.hidden)) .findus-list-toggle {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.findus-list {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 90vw;
    background: #fff;
    z-index: 900;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.18);
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.findus-list.hidden {
    transform: translateX(105%);
}

.findus-list .list-panel-header {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
}

.findus-list .list-panel-header .count {
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.findus-list .list-panel-header .hd-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.findus-list .list-close {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, border-color 0.15s;
}

.findus-list .list-close:hover {
    color: var(--danger);
    border-color: var(--danger);
}

.findus-list .list-panel-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.findus-list .listings {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.findus-list .listing-card {
    display: flex;
    align-items: stretch;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    flex-shrink: 0;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.findus-list .listing-card:hover {
    transform: translateX(3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.findus-list .listing-card .card-foto,
.findus-list .listing-card .card-foto-placeholder {
    width: 92px;
    min-height: 92px;
    flex-shrink: 0;
    background: #e2e8f0;
    font-size: 1.7rem;
}

.findus-list .listing-card .card-body {
    padding: 9px 11px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.findus-list .listing-card .card-nama {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.findus-list .listing-card .card-alamat {
    font-size: 0.74rem;
    margin-top: 2px;
    -webkit-line-clamp: 2;
}

.findus-list .listing-card .card-harga {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 3px;
}

.findus-list .listing-card .card-tipe {
    align-self: flex-start;
    margin-bottom: 4px;
}

.findus-list .listing-card .card-foto-wrap {
    width: 92px;
    min-height: 92px;
    height: 92px;
    flex-shrink: 0;
    background: #e2e8f0;
}

.findus-list .listing-card .card-foto-wrap .card-foto {
    object-fit: cover;
}

.findus-list .listing-card .card-rented-overlay {
    align-items: center;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}

.findus-list .listing-card .card-badges {
    gap: 4px;
    margin-bottom: 2px;
}

.findus-list .listing-card .card-status-badge {
    font-size: 0.62rem;
    padding: 2px 8px;
}

.findus-list .listing-card .card-footer { display: none; }

.findus-list .listing-card.highlight {
    transform: translateX(4px);
    outline: 2px solid var(--primary);
}

.findus-list .pagination {
    flex-shrink: 0;
    padding: 10px;
    border-top: 1px solid var(--border);
    background: #f8fafc;
    margin: 0;
}

/* ============ Popup Detail kecil (overlay di atas peta) ============ */
.dp-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1100;
    display: none;
}

.dp-backdrop.show {
    display: block;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.detail-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    max-width: 92vw;
    max-height: 86vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.4);
    z-index: 1200;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.detail-popup.show {
    display: flex;
    animation: dpIn 0.25s ease;
}

@keyframes dpIn {
    from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.dp-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 1.8rem;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    line-height: 1;
    cursor: pointer;
    color: var(--text);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.dp-close:hover { color: var(--danger); }

.dp-handle {
    display: none;
}

@media (max-width: 640px) {
    .dp-handle {
        display: block;
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 46px;
        height: 5px;
        border-radius: 5px;
        background: #cbd5e1;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 12;
    }

    .dp-close {
        top: 14px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 1.6rem;
        line-height: 1;
        color: #fff;
        background: rgba(15,23,42,0.72);
        border: 1px solid rgba(255,255,255,0.25);
        box-shadow: 0 2px 10px rgba(0,0,0,0.35);
    }

    .dp-close:hover { color: #fff; background: #dc2626; }
}

.dp-body {
    overflow-y: auto;
    padding: 4px 18px 18px;
}

.dp-footer-close {
    display: none;
}

@media (max-width: 640px) {
    .dp-footer-close {
        display: block;
        width: 100%;
        padding: 15px;
        background: #f8fafc;
        border: none;
        border-top: 1px solid var(--border);
        color: #dc2626;
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
        flex-shrink: 0;
        letter-spacing: 0.3px;
    }

    .dp-body {
        padding-bottom: 24px;
    }
}

.dp-foto-main {
    width: calc(100% + 36px);
    height: 200px;
    object-fit: cover;
    margin-left: -18px;
    margin-right: -18px;
    margin-top: -4px;
    cursor: zoom-in;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.dp-fotos {
    display: flex;
    gap: 6px;
    margin: 12px -18px 14px;
    padding: 0 18px;
    overflow-x: auto;
}

.dp-fotos img {
    width: 76px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    flex-shrink: 0;
}

.dp-tipe-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 12px;
}

.dp-title {
    font-size: 1.18rem;
    font-weight: 700;
    margin: 6px 0 4px;
    color: var(--text);
}

.dp-harga {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.dp-info { margin-bottom: 6px; }
.dp-info p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    margin-bottom: 6px;
    color: var(--text);
}
.dp-info .label {
    font-weight: 600;
    min-width: 84px;
    color: var(--text-light);
}

.dp-directions { margin: 14px 0; }

.dp-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.dp-actions .btn-wa,
.dp-actions .btn-delete {
    width: auto;
    padding: 10px 18px;
}

/* GPS Permission Overlay */
.gps-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.gps-warning.show { display: flex; }

.gps-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gps-overlay.show {
    display: flex;
}

.gps-popup {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 26px 22px;
    text-align: center;
    max-width: 340px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.gps-icon {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.gps-popup h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text);
}

.gps-popup p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Responsive - Mobile */
@media (max-width: 640px) {
    .container {
        padding: 12px;
    }

    /* Navbar compact - single row on mobile */
    .navbar {
        padding: 8px 10px;
        height: auto;
        min-height: 48px;
    }

    .nav-brand a {
        font-size: 0.95rem;
        gap: 4px;
    }

    .logo-icon {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        font-size: 0.78rem;
    }

    .btn-add {
        padding: 5px 9px;
        font-size: 0.72rem;
        border-radius: 6px;
        white-space: nowrap;
    }

    .btn-admin {
        padding: 5px 9px;
        font-size: 0.72rem;
        border-radius: 6px;
        white-space: nowrap;
    }

    /* Navbar hamburger dropdown (halaman dengan toggle) — menang atas gaya compact */
    .navbar:has(.nav-toggle) .nav-links {
        top: 48px;
        left: 0;
        right: 0;
        padding: 8px 10px 12px;
        border-radius: 0 0 12px 12px;
    }

    .navbar:has(.nav-toggle) .nav-links a {
        font-size: 0.88rem;
        padding: 10px 14px;
    }

    /* Findus mobile */
    .findus {
        height: calc(100vh - 48px);
    }

    .findus-filter {
        top: 10px;
        left: 10px;
        gap: 8px;
        max-width: calc(100% - 60px);
    }

    .findus-search {
        padding: 6px 12px;
        border-radius: 24px;
    }

    .findus-search input {
        font-size: 0.85rem;
    }

    .findus-tabs .filter-btn {
        padding: 5px 12px;
        font-size: 0.75rem;
    }

    .findus-list-toggle {
        top: 10px;
        right: 10px;
        padding: 7px 10px;
        font-size: 0.95rem;
    }

    .findus-list {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    .detail-popup {
        width: 100%;
        max-width: 100%;
        max-height: 80vh;
        border-radius: 16px 16px 0 0;
        top: auto;
        bottom: 0;
        left: 0;
        transform: none;
    }

    .detail-popup.show {
        animation: dpSlideUp 0.3s ease;
    }

    @keyframes dpSlideUp {
        from { opacity: 0; transform: translateY(100%); }
        to { opacity: 1; transform: translateY(0); }
    }

    .dp-foto-main {
        height: 160px;
    }

    .dp-title {
        font-size: 1.1rem;
    }

    .dp-info p {
        font-size: 0.82rem;
    }

    /* Hero */
    .hero {
        padding: 20px 12px 12px;
    }

    .hero h1 {
        font-size: 1.15rem;
        margin-bottom: 6px;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .hero-badge {
        font-size: 0.68rem;
        padding: 4px 12px;
        margin-bottom: 10px;
    }

    /* Filters full width stacking */
    .filters {
        padding: 10px;
        gap: 8px;
    }

    .search-box {
        min-width: unset;
        width: 100%;
    }

    .filter-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        flex: 1;
        text-align: center;
    }

    .btn-map-toggle {
        width: 100%;
        padding: 8px;
        text-align: center;
    }

    /* Map */
    #map {
        height: 240px;
    }

    .add-map {
        height: 220px;
    }

    /* Listings single column */
    .listings {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Card adjustments */
    .card-body {
        padding: 11px;
    }

    .card-nama {
        font-size: 0.98rem;
    }

    .card-alamat {
        font-size: 0.85rem;
    }

    .card-harga {
        font-size: 1rem;
    }

    .card-footer {
        padding: 9px 11px;
    }

    .card-whatsapp {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    /* Modal full width on mobile */
    .modal-overlay {
        padding: 8px;
        align-items: flex-end;
    }

    .modal {
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        margin: 0;
    }

    .modal-close {
        top: 8px;
        right: 12px;
        font-size: 1.8rem;
    }

    .modal-body {
        padding: 14px;
    }

    .modal-foto-main {
        max-height: 200px;
        border-radius: 8px;
    }

    .modal-fotos-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 6px;
    }

    .modal-fotos-grid img {
        height: 60px;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .modal-harga {
        font-size: 1rem;
    }

    .modal-info p {
        flex-direction: column;
        gap: 2px;
        font-size: 0.9rem;
    }

    .modal-info .label {
        min-width: unset;
        font-size: 0.8rem;
    }

    .modal-map {
        height: 180px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .btn-wa,
    .btn-delete,
    .btn-maps {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .dir-buttons {
        grid-template-columns: repeat(3, 1fr);
    }

    .dir-btn {
        flex-direction: column;
        font-size: 0.72rem;
        gap: 3px;
        padding: 8px 4px;
        text-align: center;
    }

    /* Form page mobile */
    .form-page {
        padding: 0;
    }

    .form-page h1 {
        font-size: 1.4rem;
    }

    .listing-form {
        padding: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    /* Thumbnails responsive */
    .fotos-thumb {
        width: 70px;
        height: 60px;
    }

    .coord-display {
        flex-direction: column;
        gap: 4px;
    }

    /* Camera buttons mobile */
    .upload-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .btn-camera,
    .btn-gallery {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .upload-or {
        display: none;
    }

    .gps-popup {
        padding: 20px 16px;
    }

    .gps-icon {
        font-size: 2.4rem;
    }

    /* Map controls mobile */
    .map-search-row {
        flex-direction: column;
    }

    .btn-my-location {
        justify-content: center;
    }

    .map-search-box {
        min-width: unset;
    }

    .layer-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    /* Pagination compact */
    .pagination {
        gap: 4px;
    }

    .pagination button {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    /* Footer */
    .footer {
        padding: 16px;
        font-size: 0.85rem;
        margin-top: 24px;
    }
}
