/* ============================================================
   STYLES.CSS - HU.info.ro
   ============================================================ */

:root {
    --primary: #52b788;         /* verde principal */
    --secondary: #1b4332;       /* verde închis */
    --accent: #d8f3dc;          /* verde foarte pal */
    --dark: #1b4332;           /* text */
    --light: #f1faee;          /* fundal */
    --success: #52b788;        /* acțiuni pozitive */
    --danger: #e63946;         /* doar pentru delete/erori */
    --warning: #f77f00;        /* avertizări */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* ============================================================
   LOGIN SCREEN - Responsive 30/70 Split
   ============================================================ */

.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #A4243B 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    
    /* MOBILE: Stack vertical */
    display: flex;
    flex-direction: column;
}

.login-sidebar {
    padding: 40px 30px;
    background: linear-gradient(135deg, var(--primary) 0%, #A4243B 100%);
    color: white;
    width: 100%;
    position: relative;
}

.login-brand h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.login-brand .slogan {
    font-size: 18px;
    opacity: 0.95;
    font-weight: 500;
    margin-bottom: 10px;
}

.login-brand .description {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.5;
    margin-bottom: 30px;
}

.login-stats {
    margin: 30px 0;
    position: relative;
    min-height: 120px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.stat-item.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.stat-icon {
    font-size: 56px;
    line-height: 1;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 15px;
    opacity: 0.9;
    font-weight: 500;
}

.stat-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 30px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255,255,255,0.5);
}

.dot.active {
    background: white;
    width: 28px;
    border-radius: 4px;
}

.login-form-wrapper {
    padding: 50px 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form {
    width: 100%;
    max-width: 450px;
}

.login-form h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--dark);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 14px;
}

.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-group .hint {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    font-style: italic;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
}

.form-group.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: #d62839;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.btn-large {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 10px;
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.login-footer p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 10px;
}

.link-whatsapp {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.link-whatsapp:hover {
    color: #d62839;
    text-decoration: underline;
}

/* TABLET/DESKTOP: 30/70 horizontal */
@media (min-width: 768px) {
    .login-container {
        flex-direction: row;
    }
    
    .login-sidebar {
        width: 30%;
        min-height: 600px;
    }
    
    .login-form-wrapper {
        width: 70%;
    }
}

/* ============================================================
   MODAL
   ============================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

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

.modal {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.modal h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--dark);
}

.modal p {
    color: #6b7280;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* ============================================================
   APP LAYOUT (după login)
   ============================================================ */

#root-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--dark);
    color: white;
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar .logo {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.nav-item {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
}

.nav-item.active {
    background: var(--primary);
}

.nav-logout {
    margin-top: auto;
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.nav-logout:hover {
    background: rgba(239, 68, 68, 0.3);
}

.main {
    margin-left: 250px;
    padding: 30px;
    flex: 1;
    width: calc(100% - 250px);
}

.hamburger-btn {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--primary);
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.hamburger-btn span {
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main {
        margin-left: 0;
        width: 100%;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

/* ============================================================
   CARDS & COMPONENTS
   ============================================================ */

.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.search-bar {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.search-bar:focus {
    outline: none;
    border-color: var(--primary);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

.btn-blue {
    background: var(--secondary);
    color: white;
}

.btn-blue:hover {
    background: #3d6d89;
}

.btn-green {
    background: var(--success);
    color: white;
}

.btn-green:hover {
    background: #0e9f6e;
}

.btn-red {
    background: var(--danger);
    color: white;
}

.btn-red:hover {
    background: #dc2626;
}

.btn-icon {
    padding: 8px 12px;
    font-size: 16px;
}

/* ============================================================
   BROWSE PAGE
   ============================================================ */

.browse-page {
    max-width: 1400px;
    margin: 0 auto;
}

.browse-header {
    margin-bottom: 20px;
}

.browse-header h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
}

.browse-search {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.browse-search input {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: 0.3s;
}

.browse-search input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-filter {
    background: var(--dark);
    color: white;
    position: relative;
}

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

.filter-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #fbbf24;
    border-radius: 50%;
}

.browse-filters {
    margin-bottom: 20px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
    font-family: inherit;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.browse-loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.browse-error,
.browse-empty {
    text-align: center;
    padding: 40px 20px;
}

.browse-empty h3 {
    margin-bottom: 10px;
}

/* ============================================================
   PROPERTIES GRID
   ============================================================ */

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* ============================================================
   PROPERTY CARD
   ============================================================ */

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.property-card-image {
    position: relative;
    height: 200px;
    background: #f3f4f6;
    overflow: hidden;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-card-image img {
    transform: scale(1.05);
}

.property-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.property-card-placeholder span {
    font-size: 64px;
    opacity: 0.5;
}

.property-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.property-card-fav {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.property-card-fav:hover {
    transform: scale(1.1);
}

.property-card-fav.active {
    background: #fef2f2;
}

.property-card-featured {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.property-card-content {
    padding: 16px;
}

.property-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.property-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.property-card-details span {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
}

.property-card-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.property-card-actions {
    display: flex;
    gap: 8px;
}

.property-card-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 13px;
    text-align: center;
}

.btn-secondary {
    background: #f3f4f6;
    color: var(--dark);
}

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

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20bd5a;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.browse-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.pagination-info {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.browse-pagination .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================
   PAGE HEADERS & COMMON
   ============================================================ */

.page-header {
    margin-bottom: 25px;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
}

.page-subtitle {
    color: #6b7280;
    font-size: 14px;
}

.results-count {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 15px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 72px;
    margin-bottom: 20px;
}

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

.empty-state p {
    color: #6b7280;
}

.success-state {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    font-size: 72px;
    margin-bottom: 20px;
}

.success-state h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.success-state p {
    color: #6b7280;
    margin-bottom: 20px;
}

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* ============================================================
   ADD PROPERTY FORM
   ============================================================ */

.add-property-page {
    max-width: 800px;
    margin: 0 auto;
}

.form-card {
    padding: 0;
    overflow: hidden;
}

.form-section {
    padding: 25px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 150px;
}

.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: 0.3s;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    cursor: pointer;
    transition: 0.3s;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: 0.3s;
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
}

.form-actions {
    padding: 25px 30px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

/* ============================================================
   MY PROPERTIES LIST
   ============================================================ */

.my-properties-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.my-property-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.my-property-image {
    width: 140px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.my-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-property-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    opacity: 0.5;
}

.my-property-info {
    flex: 1;
    min-width: 200px;
}

.my-property-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.my-property-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.my-property-details {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.my-property-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.my-property-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.status-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dropdown label {
    font-size: 12px;
    color: #6b7280;
}

.status-dropdown select {
    padding: 6px 10px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 8px 14px;
    font-size: 13px;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

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

.modal-actions .btn {
    flex: 1;
}

/* Responsive pentru my-property-item */
@media (max-width: 600px) {
    .my-property-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .my-property-image {
        width: 100%;
        height: 150px;
    }
    
    .my-property-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ============================================================
   EDIT PROPERTY MODAL
   ============================================================ */

.edit-modal {
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

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

.edit-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.close-btn:hover {
    background: #e5e7eb;
}

.edit-modal-body {
    padding: 20px 25px;
    overflow-y: auto;
    flex: 1;
}

.edit-modal-body .form-group {
    margin-bottom: 15px;
}

.edit-modal-body .form-row {
    gap: 10px;
}

.edit-modal-body .form-row .form-group {
    min-width: 100px;
}

.edit-modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.edit-modal-footer .btn {
    flex: 1;
}

/* ============================================================
   PROPERTY DETAILS PAGE
   ============================================================ */

.property-details-page {
    max-width: 1200px;
    margin: 0 auto;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-fav-large {
    padding: 10px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-fav-large:hover {
    border-color: #fca5a5;
    background: #fef2f2;
}

.btn-fav-large.active {
    border-color: #f87171;
    background: #fef2f2;
    color: #dc2626;
}

/* Gallery */
.details-gallery {
    padding: 0;
    overflow: hidden;
    margin-bottom: 20px;
}

.gallery-main {
    position: relative;
    height: 400px;
    background: #1f2937;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 15px;
}

.gallery-nav.next {
    right: 15px;
}

.gallery-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    background: #f9fafb;
}

.thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: 0.2s;
}

.thumb:hover {
    border-color: #d1d5db;
}

.thumb.active {
    border-color: var(--primary);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
}

.gallery-placeholder span {
    font-size: 64px;
    margin-bottom: 10px;
}

/* Content layout */
.details-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
}

@media (max-width: 900px) {
    .details-content {
        grid-template-columns: 1fr;
    }
    
    .gallery-main {
        height: 280px;
    }
}

.details-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Title section */
.details-title-section {
    padding: 25px;
}

.details-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.badge-type {
    padding: 4px 10px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge-status {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge-featured {
    padding: 4px 10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.details-title-section h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.3;
}

.details-location {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 15px;
}

.details-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

/* Features */
.details-features h3,
.details-description h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.feature-item {
    text-align: center;
    padding: 15px;
    background: #f9fafb;
    border-radius: 10px;
}

.feature-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.feature-value {
    font-size: 20px;
    font-weight: 700;
    display: block;
    color: var(--dark);
}

.feature-label {
    font-size: 12px;
    color: #6b7280;
}

/* Description */
.details-description p {
    color: #4b5563;
    line-height: 1.8;
    white-space: pre-line;
}

/* Meta */
.details-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.meta-label {
    color: #6b7280;
}

.meta-value {
    font-weight: 600;
}

/* Contact sidebar */
.details-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.contact-card {
    padding: 25px;
}

.contact-card h3 {
    font-size: 16px;
    margin-bottom: 20px;
}

.contact-owner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.owner-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-buttons .btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

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

.btn-call:hover {
    background: #d62839;
}

.btn-email {
    background: #3b82f6;
    color: white;
}

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

.contact-phone-display {
    margin-top: 15px;
    padding: 12px;
    background: #f3f4f6;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--dark);
}

/* ============================================================
   PHOTO UPLOADER
   ============================================================ */

.photo-uploader {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.uploader-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.uploader-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.uploader-empty {
    text-align: center;
    padding: 30px;
    background: #f9fafb;
    border-radius: 10px;
    border: 2px dashed #e5e7eb;
}

.uploader-empty p {
    margin: 0 0 5px;
    color: #6b7280;
}

.uploader-empty small {
    color: #9ca3af;
    font-size: 12px;
}

.uploader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.uploader-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
}

.uploader-item.is-cover {
    border-color: var(--primary);
}

.uploader-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.uploader-item-actions {
    position: absolute;
    bottom: 4px;
    right: 4px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: 0.2s;
}

.uploader-item:hover .uploader-item-actions {
    opacity: 1;
}

.btn-icon-small {
    width: 28px;
    height: 28px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: 0.2s;
}

.btn-icon-small:hover {
    transform: scale(1.1);
}

.btn-danger-icon:hover {
    background: #fee2e2;
}

/* ============================================================
   ADMIN PAGE
   ============================================================ */

.admin-page {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
}

.admin-tab {
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: 0.2s;
}

.admin-tab:hover {
    color: var(--dark);
}

.admin-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.admin-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.section-header span {
    color: #6b7280;
    font-size: 14px;
}

/* Admin Table */
.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.admin-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tr:hover {
    background: #f9fafb;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.table-actions {
    display: flex;
    gap: 6px;
}

.btn-star {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.4;
    transition: 0.2s;
}

.btn-star:hover,
.btn-star.active {
    opacity: 1;
}

.status-select-mini {
    padding: 4px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    background: white;
}

.status-select-mini:focus {
    outline: none;
    border-color: var(--primary);
}

/* Admin Stats */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.stat-card {
    text-align: center;
    padding: 25px 15px;
}

.stat-card-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 5px;
}

.stat-card-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

.stat-card-breakdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    color: #9ca3af;
}

.stat-card-breakdown span {
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 4px;
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */

.profile-page {
    max-width: 900px;
    margin: 0 auto;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

.profile-main {
    grid-column: 1 / -1;
}

.profile-header {
    display: flex;
    gap: 25px;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 200px;
}

.profile-name {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-edit-inline {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.5;
    transition: 0.2s;
    padding: 4px;
}

.btn-edit-inline:hover {
    opacity: 1;
}

.profile-edit-name {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-edit-name input {
    font-size: 18px;
    padding: 10px 14px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-weight: 600;
}

.profile-edit-actions {
    display: flex;
    gap: 8px;
}

.profile-email {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 12px;
}

.profile-role-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    padding-top: 20px;
    justify-content: center;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
}

.profile-stat-label {
    font-size: 13px;
    color: #6b7280;
}

/* Security card */
.profile-security h3,
.profile-account h3,
.profile-permissions h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.security-info {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.security-warning {
    margin-top: 15px;
    padding: 12px;
    background: #fef3c7;
    border-radius: 8px;
    font-size: 12px;
    color: #92400e;
    line-height: 1.5;
}

/* Account info */
.account-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.account-row:last-child {
    border-bottom: none;
}

.account-label {
    color: #6b7280;
    font-size: 14px;
}

.account-value {
    font-weight: 600;
    font-size: 14px;
}

.account-status-active {
    color: #16a34a;
}

/* Permissions */
.permission-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.permission-item {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.permission-item.enabled {
    background: #f0fdf4;
    color: #166534;
}

.permission-item.disabled {
    background: #f3f4f6;
    color: #9ca3af;
}

.upgrade-hint {
    margin-top: 15px;
    padding: 12px;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 13px;
    color: #1e40af;
    line-height: 1.5;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}
