/* Ofis detay — soft premium 2026 */
.ofis-modern {
    background: #f8fafc;
    font-family: "Plus Jakarta Sans", "Kanit", system-ui, sans-serif;
}

.of-page {
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2rem, 4vw, 3.5rem);
}

.of-layout {
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
    align-items: start;
}

.of-sidebar {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.of-panel {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    padding: 1.35rem;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 32px rgba(15, 23, 42, 0.06);
}

.of-office {
    text-align: center;
}

.of-office__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(13, 148, 136, 0.06), rgba(15, 118, 110, 0.03));
    border: 1px solid rgba(13, 148, 136, 0.1);
}

.of-office__logo img {
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

.of-office__logo--placeholder {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #fff;
    font-size: 1.5rem;
}

.of-office__name {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.of-office__firm {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.of-office__loc {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 1rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    color: #475569;
    background: #f1f5f9;
    border-radius: 999px;
}

.of-office__loc i {
    color: #0f766e;
}

.of-contact {
    display: grid;
    gap: 0.45rem;
}

.of-contact__btn,
.of-contact__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.8125rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.of-contact__btn {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.22);
}

.of-contact__btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    color: #fff;
}

.of-contact__link {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155 !important;
}

.of-contact__link:hover {
    border-color: rgba(13, 148, 136, 0.25);
    color: #0f766e !important;
}

.of-panel__title {
    margin: 0 0 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.of-agent {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.of-agent + .of-agent {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f7;
}

.of-agent__avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(13, 148, 136, 0.12);
}

.of-agent__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.of-agent__body {
    min-width: 0;
}

.of-agent__name {
    margin: 0 0 0.15rem;
    font-size: 0.9375rem;
    font-weight: 700;
}

.of-agent__name a {
    color: #0f172a;
    text-decoration: none;
}

.of-agent__name a:hover {
    color: #0f766e;
}

.of-agent__role {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    color: #0f766e;
    font-weight: 600;
}

.of-agent__tel {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: #64748b;
    text-decoration: none;
}

.of-agent__tel:hover {
    color: #0f766e;
}

.of-main {
    min-width: 0;
}

.of-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.35rem;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.of-head__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f766e;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 999px;
}

.of-head__title {
    margin: 0 0 0.25rem;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.of-head__sub {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.of-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.of-select {
    min-width: 155px;
    padding: 0.6rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 0.8125rem;
    color: #334155;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.of-select:focus {
    outline: none;
    border-color: rgba(13, 148, 136, 0.45);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.of-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    color: #64748b;
}

.of-empty i {
    display: block;
    font-size: 2rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.of-empty__link {
    display: inline-block;
    margin-top: 0.75rem;
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
}

.ofis-modern .il-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1199px) {
    .ofis-modern .il-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .of-layout {
        grid-template-columns: 1fr;
    }

    .of-sidebar {
        position: static;
    }
}

@media (max-width: 575px) {
    .ofis-modern .il-grid {
        grid-template-columns: 1fr;
    }

    .of-filters {
        width: 100%;
    }

    .of-select {
        flex: 1;
        min-width: 0;
    }

    .of-agent {
        align-items: center;
    }
}
