/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    line-height: 1.5;
    overflow: hidden;
    height: 100vh;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Auth Page Layout */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 20%, rgb(242, 235, 243) 0%, rgb(228, 237, 246) 90.7%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Abstract shapes for auth background */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
}
.shape-1 {
    top: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: #818cf8;
}
.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 35vw;
    height: 35vw;
    background: #22d3ee;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 10;
    transition: transform 0.3s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.auth-header p {
    color: #64748b;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    font-size: 15px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #0f172a;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2), 0 2px 4px -1px rgba(99, 102, 241, 0.1);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Alert styles */
.alerts-container {
    margin-bottom: 20px;
}

.alert-item {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Map Dashboard Layout */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* Sidebar Styling */
.sidebar {
    width: 380px;
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    height: 100%;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.logo-section h2 {
    font-size: 20px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.5px;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8fafc;
    padding: 10px 14px;
    border-radius: 10px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.user-role {
    font-size: 11px;
    color: #64748b;
}

.btn-logout {
    padding: 6px 10px;
    background-color: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-logout:hover {
    background-color: #fecaca;
}

/* Filter controls for Admin */
.filter-section {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    background-color: #f8fafc;
}

.filter-title {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.select-filter {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background-color: #ffffff;
    color: #0f172a;
    transition: border 0.2s ease;
    cursor: pointer;
}

.select-filter:focus {
    border-color: #6366f1;
}

/* List section */
.list-section {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.list-summary {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
    font-weight: 500;
}

.land-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.land-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.land-card:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.land-card.active {
    border-color: #6366f1;
    background-color: #f5f3ff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.land-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #6366f1;
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.land-card:hover::before,
.land-card.active::before {
    transform: scaleY(1);
}

.land-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 8px;
}

.land-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.land-price {
    background-color: #e0e7ff;
    color: #4338ca;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.land-desc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.land-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

.land-coords {
    display: flex;
    align-items: center;
    gap: 4px;
}

.land-user {
    background-color: #f1f5f9;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.empty-state svg {
    margin-bottom: 12px;
    color: #cbd5e1;
}

.empty-state p {
    font-size: 14px;
    font-weight: 500;
}

/* Map area */
.map-container-wrapper {
    flex: 1;
    height: 100%;
    position: relative;
    width: 100%;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Admin Link Button floating */
.admin-shortcut {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.btn-admin {
    background-color: #0f172a;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.btn-admin:hover {
    background-color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Custom Marker Styling */
.custom-marker {
    background: none;
    border: none;
}

.marker-pin {
    width: 32px;
    height: 32px;
    border-radius: 50% 50% 50% 0;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -16px 0 0 -16px;
    box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.marker-pin::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    position: absolute;
}

.custom-marker:hover .marker-pin {
    transform: rotate(-45deg) scale(1.15);
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.custom-marker.active .marker-pin {
    transform: rotate(-45deg) scale(1.2);
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    box-shadow: -3px 3px 8px rgba(236, 72, 153, 0.3);
}

.custom-marker.active .marker-pin::after {
    background: #ffffff;
}

/* Custom popup styling */
.leaflet-popup-content-wrapper {
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.leaflet-popup-content {
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.leaflet-popup-close-button {
    background-color: rgba(15, 23, 42, 0.6) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    top: 8px !important;
    right: 8px !important;
    padding: 0 !important;
    z-index: 1000;
    border: none !important;
}

.leaflet-popup-close-button:hover {
    background-color: rgba(15, 23, 42, 0.8) !important;
    color: #ffffff !important;
}

.popup-title {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 4px;
}

.popup-price {
    font-weight: 700;
    font-size: 13px;
    color: #4f46e5;
    margin-bottom: 8px;
}

.popup-desc {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.popup-meta {
    font-size: 10px;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
    padding-top: 6px;
}

/* Responsive sidebar toggle */
.sidebar-toggle {
    display: none;
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    height: 48px;
    padding: 0 20px;
    background-color: #1e1b4b;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    background-color: #312e81;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        left: -100vw;
        width: 85vw;
        max-width: 380px;
        height: 100%;
        box-shadow: 10px 0 30px rgba(0,0,0,0.15);
        z-index: 2000;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .mobile-close-btn {
        display: block !important;
    }
}

/* ==========================================
   Admin Dashboard Layout & Components
   ========================================== */

.dashboard-wrapper {
    min-height: 100vh;
    background-color: #0f172a; /* Dark premium admin style */
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    overflow-y: auto;
    padding-bottom: 40px;
}

.dashboard-header {
    background-color: #1e293b;
    border-bottom: 1px solid #334155;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.dashboard-title-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-logo {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.dashboard-title-area h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-view-site {
    background-color: #334155;
    color: #f1f5f9;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #475569;
}

.btn-view-site:hover {
    background-color: #475569;
    color: #ffffff;
}

/* Stats Container */
.dashboard-content {
    max-width: 1400px;
    margin: 32px auto;
    padding: 0 24px;
}

@media (max-width: 640px) {
    .dashboard-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .dashboard-content {
        padding: 0 16px;
        margin: 20px auto;
    }
    
    .admin-shortcut {
        top: auto;
        bottom: 20px;
        right: 20px;
    }
    
    .custom-map-controls {
        top: 20px;
        right: 10px;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.blue { background-color: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.stat-icon.green { background-color: rgba(16, 185, 129, 0.15); color: #34d399; }
.stat-icon.orange { background-color: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.stat-icon.purple { background-color: rgba(168, 85, 247, 0.15); color: #c084fc; }

.stat-details h3 {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-details .stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

/* Main Dashboard Split Grid */
.main-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

/* Panel Styles */
.dashboard-panel {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.panel-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

/* Admin Map Selector */
.admin-map-container {
    height: 250px;
    border-radius: 12px;
    border: 1px solid #334155;
    overflow: hidden;
    margin-bottom: 20px;
}

.map-helper-text {
    font-size: 12px;
    color: #94a3b8;
    margin-top: -12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Form Styles */
.admin-form .form-group label {
    color: #94a3b8;
}

.admin-form .form-input,
.admin-form .select-filter,
.admin-form textarea {
    background-color: #0f172a;
    border: 1px solid #334155;
    color: #f1f5f9;
    border-radius: 10px;
    outline: none;
    width: 100%;
}

.admin-form textarea {
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.admin-form .form-input:focus,
.admin-form .select-filter:focus,
.admin-form textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.row-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-secondary {
    background-color: #334155;
    border: none;
    color: #f1f5f9;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    flex: 1;
}

.btn-secondary:hover {
    background-color: #475569;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #334155;
    margin-bottom: 24px;
}

.tab-btn {
    background: none;
    border: none;
    color: #94a3b8;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #f1f5f9;
}

.tab-btn.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Data Table Styles */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.data-table th {
    background-color: #0f172a;
    color: #94a3b8;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid #334155;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid #334155;
    color: #cbd5e1;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background-color: rgba(51, 65, 85, 0.2);
}

.price-tag-admin {
    font-weight: 700;
    color: #34d399;
}

.badge-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-status.pinned {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.badge-status.unpinned {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.badge-user {
    background-color: #334155;
    color: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Action Buttons */
.actions-cell {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #ffffff;
}

.btn-action.edit {
    background-color: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

.btn-action.edit:hover {
    background-color: #6366f1;
    color: #ffffff;
}

.btn-action.delete {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.btn-action.delete:hover {
    background-color: #ef4444;
    color: #ffffff;
}

/* User Grid & Management */
.users-split-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .users-split-grid {
        grid-template-columns: 1fr;
    }
}

.user-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-display-card {
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-card-name {
    font-weight: 600;
    color: #ffffff;
}

.user-card-email {
    font-size: 12px;
    color: #94a3b8;
}

/* ==========================================
   Land Detail Page & Media Gallery Carousel
   ========================================== */

.detail-wrapper {
    min-height: 100vh;
    background-color: #f8fafc;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    overflow-y: auto;
    padding-bottom: 60px;
}

.detail-nav {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.btn-back-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f5f9;
    color: #334155;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.btn-back-map:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    transform: translateX(-2px);
}

.detail-content {
    max-width: 1300px;
    margin: 32px auto;
    padding: 0 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
}

@media (max-width: 968px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Media Gallery */
.detail-gallery {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02);
}

.gallery-main-view {
    width: 100%;
    height: 480px;
    background-color: #0f172a;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .gallery-main-view {
        height: 300px;
    }
}

.gallery-main-view img,
.gallery-main-view video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive YouTube Embed Container */
.youtube-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Gallery Thumbnails Scrollbar */
.gallery-thumbs-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.gallery-thumb-item {
    width: 90px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s;
    background-color: #0f172a;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb-item:hover {
    opacity: 0.9;
}

.gallery-thumb-item.active {
    opacity: 1;
    border-color: #6366f1;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.thumb-play-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: rgba(99, 102, 241, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Info Panel Card */
.detail-info-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
}

.detail-title {
    font-size: 24px;
    font-weight: 800;
    color: #1e1b4b;
    line-height: 1.25;
    margin-bottom: 8px;
}

.detail-price-badge {
    background-color: #eeebff;
    color: #4f46e5;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 24px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.spec-icon {
    width: 36px;
    height: 36px;
    background-color: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    flex-shrink: 0;
}

.spec-details h4 {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.spec-details p {
    font-size: 14px;
    color: #334155;
    font-weight: 600;
}

/* Local Map View */
.detail-map-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02);
}

.detail-map-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 16px;
}

.detail-map-view {
    height: 250px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

/* Admin Upload Media Manager Grid */
.admin-media-manager-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 12px;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 12px;
    margin-top: 8px;
    max-height: 170px;
    overflow-y: auto;
}

.admin-media-thumb {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background-color: #1e293b;
    border: 1px solid #475569;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-delete-media-ajax {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background-color: #dc2626;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.btn-delete-media-ajax:hover {
    background-color: #b91c1c;
    transform: scale(1.1);
}

