/* Custom CSS Variables for Floors Page */
:root {
    --flr-primary: #007791;
    --flr-primary-hover: #005669;
    --flr-secondary: #00a8cc;
    --flr-dark: #2b2d42;
    --flr-light: #f8f9fa;
    --flr-gray: #6c757d;
    --flr-border: #e9ecef;
    --flr-warning: #ffb703;
    --flr-warning-light: #fffbeb;
    --flr-warning-border: #ffe3a8;
    --flr-radius: 12px;
    --flr-shadow: 0 4px 20px rgba(0,0,0,0.05);
    --flr-transition: all 0.3s ease;
}

/* Base Styles */
.flr-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Hero Section */
.flr-hero {
    background: linear-gradient(135deg, var(--flr-primary) 0%, #0a4f60 100%);
    color: #ffffff;
    padding: 50px 0 60px 0;
    text-align: right;
    border-bottom: 4px solid var(--flr-secondary);
}

.flr-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.flr-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--flr-transition);
}

.flr-breadcrumb a:hover {
    color: var(--flr-secondary);
}

.flr-breadcrumb .flr-divider {
    color: rgba(255, 255, 255, 0.5);
}

.flr-breadcrumb .flr-current {
    color: #e9ecef;
}

.flr-hero-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.flr-hero-content p {
    font-size: 1.1rem;
    opacity: 0.85;
    font-weight: 300;
}

/* Layout Grid */
.flr-body-section {
    padding: 60px 0;
    background-color: #fcfcfc;
}

.flr-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .flr-grid {
        grid-template-columns: 8fr 4fr;
    }
}

/* Content Cards */
.flr-card {
    background: #ffffff;
    border: 1px solid var(--flr-border);
    border-radius: var(--flr-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--flr-shadow);
    transition: var(--flr-transition);
}

.flr-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

.flr-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid var(--flr-border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.flr-header-icon {
    font-size: 1.8rem;
    color: var(--flr-primary);
}

.flr-card-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: var(--flr-dark);
}

.flr-intro-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 25px;
}

/* Warning Card Variation (ساختمان اداری) */
.flr-warning-card {
    border-right: 5px solid var(--flr-warning);
    background-color: var(--flr-warning-light);
    border-color: var(--flr-warning-border) var(--flr-warning-border) var(--flr-warning-border) var(--flr-warning);
}

.flr-warning-card .flr-header-icon {
    color: #d97706;
}

.flr-warning-text {
    font-weight: 600;
    color: #b45309;
    margin-bottom: 20px;
}

/* Departments Grid inside Cards */
.flr-departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.flr-dept-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid var(--flr-border);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--flr-dark);
    font-weight: 500;
    transition: var(--flr-transition);
}

.flr-card:not(.flr-warning-card) .flr-dept-item:hover {
    border-color: var(--flr-primary);
    background: #f0f9ff;
}

.flr-warning-card .flr-dept-item {
    background: #ffffff;
    border-color: var(--flr-warning-border);
    color: #78350f;
}

.flr-warning-card .flr-dept-item:hover {
    border-color: #d97706;
    background: #fffbeb;
}

.flr-dept-item i {
    color: var(--flr-primary);
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.flr-warning-card .flr-dept-item i {
    color: #d97706;
}

/* Sidebar Styles */
.flr-sidebar-card {
    background: #ffffff;
    border: 1px solid var(--flr-border);
    border-radius: var(--flr-radius);
    box-shadow: var(--flr-shadow);
    position: sticky;
    top: 30px;
    overflow: hidden;
}

.flr-sidebar-header {
    background-color: var(--flr-primary);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.flr-sidebar-header i {
    font-size: 1.4rem;
}

.flr-sidebar-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.flr-sidebar-body {
    padding: 25px;
}

.flr-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    margin-bottom: 15px;
}

.flr-label {
    color: var(--flr-gray);
    font-size: 0.95rem;
}

.flr-value {
    color: var(--flr-dark);
    font-weight: 600;
}

.flr-divider-line {
    border: none;
    border-top: 1px dashed var(--flr-border);
    margin: 20px 0;
}

.flr-phone-block {
    margin-bottom: 20px;
}

.flr-phone-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.flr-phone-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--flr-dark);
    text-decoration: none;
    font-weight: 600;
    direction: ltr;
    transition: var(--flr-transition);
}

.flr-phone-btn i {
    color: var(--flr-primary);
    font-size: 1.05rem;
    transition: var(--flr-transition);
}

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

.flr-phone-btn:hover i {
    color: white;
}

.flr-extension-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.flr-ext-badge {
    background-color: var(--flr-secondary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* =====================================
   FLOORS EXTENSION BLOCK - MOBILE FIX
   عنوان و داخلی در یک ردیف، بدون بیرون‌زدگی
===================================== */

@media (max-width: 480px) {
    .flr-extension-block {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 6px;
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
    }

    .flr-extension-block .flr-label {
        min-width: 0;
        font-size: 0.78rem;
        line-height: 1.5;
        white-space: nowrap;
    }

    .flr-ext-badge {
        flex-shrink: 0;
        padding: 4px 8px;
        font-size: 0.76rem;
        white-space: nowrap;
    }

    .flr-ext-badge i {
        font-size: 0.78rem;
    }
}
