/* ==========================================================================
   ALL-IN-ONE MEMBER PROPERTIES MODULE STYLING
   ========================================================================== */

/* 1. Global Container Spacing */
.custom-container, 
.custom-form-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 2. Hero Banner Styles */
.dashboard-hero-clean, 
.form-hero-clean {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9)), url('../subpage.jpg');
    background-size: cover;
    background-position: center;
    padding: 4.5rem 0 3rem;
    color: #ffffff;
    margin-top: 80px;
}

.hero-content-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.gold-badge-pill {
    color: #d97706;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(217, 119, 6, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.hero-main-title {
    font-size: 2.4rem;
    font-weight: 900;
    margin: 0.6rem 0 0.3rem;
}

.hero-sub-text {
    color: #94a3b8;
    font-size: 0.95rem;
    max-width: 580px;
    margin: 0;
}

.summary-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem 1.8rem;
    text-align: center;
}

.summary-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: #d97706;
}

.summary-label {
    font-size: 0.75rem;
    color: #cbd5e1;
    font-weight: 700;
    text-transform: uppercase;
}

/* 3. Main Body Wrapper & Alert Messages */
.dashboard-body-section, 
.form-body-section {
    padding: 2.5rem 0 4rem;
    background: var(--bg-main, #f8fafc);
    min-height: 75vh;
}

.alert-box-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #059669;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* 4. Split Controls (Dashboard Left Search & Right Add) */
.dashboard-split-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}

.control-box {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 16px;
    padding: 0.8rem 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.left-search-box {
    position: relative;
    flex-grow: 1;
    max-width: 520px;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    color: #94a3b8;
    font-size: 1rem;
}

.search-input-control {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.6rem;
    background: transparent;
    border: none;
    color: var(--text-main, #1e293b);
    outline: none;
    font-size: 0.92rem;
}

.right-action-box {
    padding: 0.6rem 1rem;
}

.btn-gold-add {
    background: #d97706;
    color: #ffffff !important;
    padding: 0.65rem 1.6rem;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-gold-add:hover {
    background: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.25);
}

/* 5. Dashboard Table Card Layout */
.table-card-container {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.table-scroll {
    overflow-x: auto;
}

.styled-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.styled-dashboard-table th {
    background: var(--bg-main, #f8fafc);
    color: var(--text-main, #1e293b);
    font-weight: 800;
    font-size: 0.82rem;
    padding: 1.1rem 1.2rem;
    border-bottom: 2px solid var(--border, #e2e8f0);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.styled-dashboard-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border, #f1f5f9);
    color: var(--text-sub, #475569);
    font-size: 0.9rem;
    vertical-align: middle;
}

.styled-dashboard-table tr:hover {
    background: rgba(248, 250, 252, 0.8);
}

.cell-id {
    font-weight: 800;
    color: var(--text-main, #1e293b);
}

.thumb-img-wrapper {
    width: 60px;
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
}

.thumb-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-img-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.cell-title {
    font-weight: 700;
    color: var(--text-main, #1e293b);
}

.cell-price-sale {
    font-weight: 800;
    color: #059669;
}

.cell-price-rent {
    font-weight: 800;
    color: #2563eb;
}

.gold-icon {
    color: #d97706;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-approved {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-pending {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
}

.table-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.icon-action-btn {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.2s ease;
    font-size: 0.88rem;
}

.btn-edit {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.btn-edit:hover {
    background: #2563eb;
    color: #ffffff;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.btn-delete:hover {
    background: #dc2626;
    color: #ffffff;
}

.empty-state {
    padding: 3.5rem 1rem;
    color: #94a3b8;
}

.empty-icon {
    font-size: 2.8rem;
    color: #cbd5e1;
    margin-bottom: 0.8rem;
}

/* 6. Form Card Boxes & Input Controls */
.form-card-box {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 16px;
    padding: 1.8rem;
    margin-bottom: 1.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.card-header-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid var(--border, #f1f5f9);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.card-header-title h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main, #1e293b);
    margin: 0;
}

.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group-item {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main, #334155);
    margin-bottom: 0.4rem;
}

.required-star {
    color: #ef4444;
}

.form-input-control, 
.form-select-control, 
.form-textarea-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-main, #f8fafc);
    border: 1px solid var(--border, #cbd5e1);
    border-radius: 10px;
    color: var(--text-main, #1e293b);
    outline: none;
    font-size: 0.9rem;
    transition: 0.3s ease;
}

.form-input-control:focus, 
.form-select-control:focus, 
.form-textarea-control:focus {
    border-color: #d97706;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

/* 7. Radio Selection Cards */
.radio-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.radio-checkbox-flex {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-card-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--bg-main, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
}

.radio-card-item:hover {
    border-color: #d97706;
    background: #ffffff;
}

.radio-label-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main, #1e293b);
}

/* 8. Media Upload & Maps */
.file-upload-dropzone {
    border: 2px dashed #cbd5e1;
    background: var(--bg-main, #f8fafc);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: 0.3s ease;
}

.file-upload-dropzone:hover {
    border-color: #d97706;
    background: rgba(217, 119, 6, 0.02);
}

.upload-icon {
    font-size: 2.2rem;
    color: #d97706;
    margin-bottom: 0.5rem;
}

.upload-text {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    font-weight: 600;
}

.file-input-hidden {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.gallery-preview-grid, 
.existing-images-wrapper {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.preview-thumb-box, 
.existing-img-card {
    position: relative;
    width: 100px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}

.preview-thumb-box img, 
.existing-img-card img {
    width: 100%; height: 100%; object-fit: cover;
}

.btn-remove-img {
    position: absolute;
    top: 4px; right: 4px;
    width: 22px; height: 22px;
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

.google-map-box {
    width: 100%;
    height: 320px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
}

.map-search-control {
    width: 80%;
    margin-top: 10px;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    outline: none;
    font-size: 0.88rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 9. Form Action Buttons */
.form-action-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-submit-gold {
    background: #d97706;
    color: #ffffff;
    border: none;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.2);
}

.btn-submit-gold:hover {
    background: #b45309;
    transform: translateY(-2px);
}

.btn-cancel-outline {
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cancel-outline:hover {
    border-color: #d97706;
    color: #d97706;
    background: rgba(217, 119, 6, 0.05);
}

/* 10. Responsive Media Queries */
@media (max-width: 992px) {
    .form-grid-4, .form-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .custom-container, 
    .custom-form-container {
        padding: 0 1rem;
    }
    .dashboard-split-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .left-search-box {
        max-width: 100%;
    }
    .right-action-box {
        display: flex;
        justify-content: center;
    }
    .btn-gold-add {
        width: 100%;
        justify-content: center;
    }
    .form-grid-4, .form-grid-2, .radio-checkbox-grid {
        grid-template-columns: 1fr;
    }
    .form-action-footer {
        flex-direction: column;
    }
    .btn-submit-gold, .btn-cancel-outline {
        width: 100%;
        justify-content: center;
    }
}