/* Facebook Style Profile Layout */
.fb-about-layout {
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-height: 500px;
    overflow: hidden;
}

.fb-about-sidebar {
    width: 320px;
    border-right: 1px solid #e1e4e8;
    padding: 16px 8px;
    background: #fff;
}

.fb-about-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #050505;
    padding: 0 12px 16px;
    margin: 0;
}

.fb-about-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fb-about-nav-item {
    padding: 12px;
    border-radius: 8px;
    color: #65676b;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
    cursor: pointer;
}

.fb-about-nav-item:hover {
    background: #f2f3f5;
    color: #050505;
}

.fb-about-nav-item.active {
    background: #e7f3ff;
    color: #0a59ac;
}

.fb-about-content {
    flex: 1;
    padding: 24px 32px;
}

.fb-content-section {
    animation: fbNavFade 0.3s ease;
}

@keyframes fbNavFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fb-section-heading {
    font-size: 1.1rem;
    font-weight: 800;
    color: #050505;
    margin: 0 0 20px 0;
}

/* Editable Rows */
.fb-editable-row.read-only {
    cursor: default;
}

.fb-editable-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
    /* Reduced margin due to added padding */
    position: relative;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s;
    cursor: pointer;
}

.fb-editable-row:hover {
    background: #f2f3f5;
}

.row-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #0a59ac;
    background-color: rgba(10, 89, 172, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.fb-icon-box {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(10, 89, 172, 0.1);
    color: #0a59ac;
    flex-shrink: 0;
}

/* Location labels and chips */
.fb-location-chip {
    display: inline-flex;
    align-items: center;
    background-color: #f0f7ff; /* light blue bg */
    color: #0a59ac;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid #e1effe;
    transition: all 0.2s;
}

.fb-location-chip:hover {
    background-color: #e1effe;
}

.fb-location-chip .area-name {
    font-weight: 800;
    font-size: 1rem;
    display: block;
}

.fb-location-chip .ward-labels {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #3f83f8;
    letter-spacing: 0.025em;
}

.row-content {
    flex: 1;
    min-height: 36px;
    display: flex;
    align-items: center;
}

.row-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-right: 20px;
}

.row-text {
    color: #050505;
    font-size: 1rem;
    line-height: 1.4;
}

.row-edit-trigger {
    background: transparent;
    border: none;
    color: #65676b;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-editable-row:hover .row-edit-trigger {
    opacity: 1;
}

.row-edit-trigger:hover {
    background: #f2f3f5;
}

/* Form Fields */
.fb-edit-form {
    width: 100%;
}

.fb-inline-input,
.fb-inline-select,
.fb-inline-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #0a59ac;
    border-radius: 6px;
    font-size: 1rem;
    color: #050505;
    background: #f0f2f5;
}

.fb-inline-input:focus,
.fb-inline-select:focus,
.fb-inline-textarea:focus {
    outline: none;
    background: #fff;
}

.row-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-end;
}

.btn-fb-primary {
    background: #0a59ac;
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-fb-secondary {
    background: #e4e6eb;
    color: #050505;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-fb-secondary:hover {
    background: #d8dadf;
}

@media (max-width: 850px) {
    .fb-about-layout {
        flex-direction: column;
    }

    .fb-about-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e1e4e8;
    }
}

/* Contact Card Redesign */
.contact-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.contact-info-card {
    background: #f8f9fa;
    border: 1px solid #ebedf0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
}

.contact-info-card:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #dfe2e6;
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e7f3ff;
    color: #0a59ac;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.contact-card-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #65676b;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.contact-card-value {
    font-size: 1.05rem;
    color: #050505;
    font-weight: 600;
    word-break: break-word;
}

.contact-card-value a {
    color: #0a59ac;
    text-decoration: none;
}

.contact-card-value a:hover {
    text-decoration: underline;
}

.map-container-modern {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 4px solid #fff;
    background: #f0f2f5;
    height: 350px;
    position: relative;
}

.map-overlay-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: fit-content;
}

/* ===== DARK MODE STYLES ===== */
.dark .fb-about-layout {
    background: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dark .fb-about-sidebar {
    background: #1e293b;
    border-right-color: #334155;
}

.dark .fb-about-title {
    color: #f1f5f9;
}

.dark .fb-about-nav-item {
    color: #94a3b8;
}

.dark .fb-about-nav-item:hover {
    background: #334155;
    color: #f1f5f9;
}

.dark .fb-about-nav-item.active {
    background: rgba(10, 89, 172, 0.3);
    color: #60a5fa;
}

.dark .fb-about-content {
    background: #1e293b;
}

.dark .fb-section-heading {
    color: #f1f5f9;
}

.dark .fb-editable-row:hover {
    background: #334155;
}

.dark .row-icon,
.dark .fb-icon-box {
    background-color: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

.dark .row-text {
    color: #e2e8f0;
}

.dark .row-edit-trigger {
    color: #94a3b8;
}

.dark .row-edit-trigger:hover {
    background: #475569;
}

/* Dark mode form inputs */
.dark .fb-inline-input,
.dark .fb-inline-select,
.dark .fb-inline-textarea {
    background: #334155;
    border-color: #60a5fa;
    color: #f1f5f9;
}

.dark .fb-inline-input:focus,
.dark .fb-inline-select:focus,
.dark .fb-inline-textarea:focus {
    background: #1e293b;
}

.dark .fb-inline-input::placeholder,
.dark .fb-inline-textarea::placeholder {
    color: #64748b;
}

/* Dark mode buttons */
.dark .btn-fb-primary {
    background: #3b82f6;
    color: #fff;
}

.dark .btn-fb-primary:hover {
    background: #2563eb;
}

.dark .btn-fb-secondary {
    background: #475569;
    color: #e2e8f0;
}

.dark .btn-fb-secondary:hover {
    background: #64748b;
}

/* Dark mode location chips */
.dark .fb-location-chip {
    background-color: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.3);
}

.dark .fb-location-chip:hover {
    background-color: rgba(96, 165, 250, 0.25);
}

.dark .fb-location-chip .ward-labels {
    color: #93c5fd;
}

/* Dark mode contact cards */
.dark .contact-info-card {
    background: #334155;
    border-color: #475569;
}

.dark .contact-info-card:hover {
    background: #3f4f67;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-color: #526277;
}

.dark .contact-card-icon {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

.dark .contact-card-label {
    color: #94a3b8;
}

.dark .contact-card-value {
    color: #f1f5f9;
}

.dark .contact-card-value a {
    color: #60a5fa;
}

/* Dark mode map container */
.dark .map-container-modern {
    border-color: #334155;
    background: #1e293b;
}

.dark .map-overlay-info {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Dark mode for responsive sidebar */
@media (max-width: 850px) {
    .dark .fb-about-sidebar {
        border-bottom-color: #334155;
    }
}
