/* ========================================
   OFFICE SYSTEM PAGE - Hệ thống văn phòng
   Figma Design Implementation
   ======================================== */

/* Banner Section */
.office-banner-section {
    background: #fff;
    padding: 25px 0;
}

.office-banner-section .banner-placeholder {
    width: 100%;
    height: 400px;
    background: #d9d9d9;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.office-banner-section .banner-title {
    font-weight: 300;
    font-style: italic;
    font-size: 28px;
    color: #000;
    text-align: center;
}

.office-banner-section .banner-size {
    font-weight: 300;
    font-style: italic;
    font-size: 28px;
    color: #000;
    text-align: center;
}

/* Page Container */
.office-system-page {
    background: #fff;
    min-height: calc(100vh - 150px);
    padding: 0 0 50px;
}

/* Filter Section */
.office-filter {
    margin-bottom: 25px;
    padding: 25px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.office-filter .filter-row {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.office-filter .form-input,
.office-filter .form-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.office-filter .search-office {
    flex: 1;
    min-width: 200px;
}

.office-filter .filter-city {
    min-width: 180px;
}

.btn-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(180deg, #006FFF 0%, #1823B9 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-filter:hover {
    opacity: 0.9;
}

/* Filter Tags */
.filter-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-btn:hover {
    background: #e0e0e0;
}

.tag-btn.active {
    background: var(--heading-color, #0036A5);
    color: #fff;
    border-color: var(--heading-color, #0036A5);
}

/* Office Grid */
.office-grid-container {
    margin-top: 10px;
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Office Card */
.office-card {
    background: #fff;
    border: 1px solid #b9b9b9;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.office-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.office-image {
    height: 200px;
    margin: 20px 20px 0;
    background: #d9d9d9;
    overflow: hidden;
}

.office-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #000;
    text-align: center;
}

.office-info {
    padding: 15px 20px 20px;
}

.office-name {
    font-size: 16px;
    font-weight: 700;
    color: #0036a5;
    margin: 0 0 12px;
    line-height: 1.4;
}

.office-detail {
    font-size: 14px;
    font-weight: 400;
    color: #000;
    margin: 0 0 6px;
    line-height: 1.5;
}

.office-detail .detail-label {
    font-weight: 700;
}

.office-detail .detail-value {
    font-weight: 400;
}

.office-products {
    font-size: 14px;
    font-weight: 300;
    color: #000;
    margin: 12px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.office-products i {
    font-size: 16px;
    color: #000;
}

.office-divider {
    width: 100%;
    height: 1px;
    background: #b9b9b9;
    margin: 15px 0;
}

.btn-select-office {
    display: block;
    width: 100%;
    height: 40px;
    line-height: 38px;
    background: #fff;
    color: #0036a5;
    border: 1px solid #0036a5;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-select-office:hover {
    background: #0036a5;
    color: #fff;
}

/* No Office */
.no-office {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border: 1px solid #b9b9b9;
    border-radius: 10px;
    color: #999;
}

.no-office i {
    font-size: 60px;
    margin-bottom: 15px;
}

.no-office p {
    font-size: 16px;
    margin: 0;
}

/* Responsive */
@media (max-width: 1400px) {
    .office-filter .filter-item.search-item {
        flex: 1 1 300px;
        max-width: none;
    }

    .office-filter .filter-item.select-item {
        flex: 1 1 200px;
        max-width: none;
    }

    .office-filter .filter-item.btn-item {
        flex: 0 0 150px;
    }
}

@media (max-width: 1200px) {
    .office-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .office-banner-section .banner-title,
    .office-banner-section .banner-size {
        font-size: 24px;
    }
}

@media (max-width: 991px) {
    .office-banner-section .banner-placeholder {
        height: 280px;
    }

    .office-banner-section .banner-title,
    .office-banner-section .banner-size {
        font-size: 20px;
    }

    .office-image {
        height: 180px;
        margin: 15px 15px 0;
    }

    .office-info {
        padding: 12px 15px 15px;
    }
}

@media (max-width: 767px) {
    .office-filter .filter-row {
        flex-direction: column;
        gap: 12px;
    }

    .office-filter .filter-item,
    .office-filter .filter-item.search-item,
    .office-filter .filter-item.select-item,
    .office-filter .filter-item.btn-item {
        flex: none;
        width: 100%;
        max-width: none;
    }

    .office-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .office-banner-section .banner-placeholder {
        height: 200px;
    }

    .office-banner-section .banner-title,
    .office-banner-section .banner-size {
        font-size: 18px;
    }

    .office-image {
        height: 160px;
    }

    .office-name {
        font-size: 15px;
    }

    .office-detail {
        font-size: 13px;
    }

    .office-products {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .office-banner-section {
        padding: 15px 0;
    }

    .office-banner-section .banner-placeholder {
        height: 150px;
    }

    .office-banner-section .banner-title,
    .office-banner-section .banner-size {
        font-size: 16px;
    }

    .office-image {
        height: 100px;
        margin: 8px 8px 0;
    }

    .office-info {
        padding: 6px 8px 8px;
    }

    .office-name {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .office-detail {
        font-size: 10px;
    }

    .office-products {
        font-size: 10px;
        margin-top: 6px;
    }

    .office-products i {
        font-size: 12px;
    }

    .office-divider {
        margin: 8px 0;
    }

    .btn-select-office {
        height: 32px;
        line-height: 30px;
        font-size: 11px;
    }
}
