﻿:root {
    --primary: #198754;
    --primary-dark: #157347;
    --secondary: #6c757d;
    --light: #f5f7fb;
    --white: #ffffff;
    --border: #e9ecef;
    --shadow: 0 10px 25px rgba(0,0,0,.08);
    --shadow-hover: 0 18px 40px rgba(0,0,0,.12);
}

body {
    background: var(--light);
    font-family: "Segoe UI",sans-serif;
}

/*==========================
    HERO
==========================*/

.hero-section {
    background: linear-gradient(135deg,var(--primary),var(--primary-dark));
    color: #fff;
    border-radius: 20px;
    padding: 55px 30px;
    text-align: center;
    box-shadow: var(--shadow);
}

    .hero-section h1 {
        font-weight: 700;
    }

    .hero-section p {
        opacity: .9;
        margin-top: 10px;
        margin-bottom: 0;
    }


/*==========================
    BUTTONS
==========================*/

.btn-search,
.btn-reset {
    height: 42px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .1rem;
    transition: all .3s ease;
}

.button-row {
    display: flex;
    gap: 2px;
    justify-content: flex-end;
    align-items: center;
}

.btn-search,
.btn-reset {
    min-width: 120px;
}

/* SEARCH */

.btn-search {
    background: linear-gradient(135deg, #198754, #157347) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(25,135,84,.25);
}


    .btn-search:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(25,135,84,.35);
    }


/* RESET */

.btn-reset {
    background: #fff !important;
    border: 2px solid #198754 !important;
    color: #198754 !important;
}


    .btn-reset:hover {
        background: #198754 !important;
        color: #fff !important;
        transform: translateY(-3px);
    }


    /* CLICK EFFECT */

    .btn-search:active,
    .btn-reset:active {
        transform: translateY(0);
    }


/*==========================
SEARCH
==========================*/

.search-card {
    margin-top: -35px;
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 100;
}

    .search-card label {
        font-weight: 600;
        margin-bottom: 6px;
    }

    .search-card .form-control,
    .search-card .form-select {
        height: 52px;
        border-radius: 12px;
        border: 1px solid #dee2e6;
    }

        .search-card .form-control:focus,
        .search-card .form-select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 .2rem rgba(25,135,84,.15);
        }

/*==========================
RESULT
==========================*/

.result-bar {
    margin: 35px 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-count {
    color: var(--secondary);
}

/*==========================
CARDS
==========================*/

.branch-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    transition: .3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
    height: 100%;
}

    .branch-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-hover);
    }

    .branch-card .card-body {
        padding: 25px;
    }

.card-footer {
    border: none;
    background: transparent;
    padding: 20px;
}

.branch-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.branch-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e8f6ee;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-size: 22px;
    margin-right: 15px;
}

.branch-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.branch-subtitle {
    color: #888;
    font-size: 13px;
}

.info-group {
    margin-top: 15px;
}

.info-title {
    font-size: 13px;
    font-weight: 700;
    color: #666;
}

.info-value {
    font-size: 14px;
    color: #444;
}

.badge-island {
    background: #e8f6ee;
    color: var(--primary);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 30px;
}

.card-footer {
    border: none;
    background: none;
    padding: 20px;
}

/*==========================
EMPTY
==========================*/

.empty-state {
    background: #fff;
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    box-shadow: var(--shadow);
}

    .empty-state i {
        font-size: 60px;
        color: #adb5bd;
    }

/*==========================
PAGINATION
==========================*/

.pagination {
    margin-top: 45px;
}

    .pagination .page-link {
        border: none;
        color: var(--primary);
        border-radius: 10px;
        margin: 0 4px;
        min-width: 42px;
        text-align: center;
    }

    .pagination .page-item.active .page-link {
        background: var(--primary);
        color: #fff;
    }

    .pagination .page-link:hover {
        background: var(--primary);
        color: #fff;
    }

/*==========================
RESPONSIVE
==========================*/

@media (max-width: 991px) {

    .hero-section {
        padding: 45px 25px;
    }

    .search-card {
        margin-top: 20px;
        padding: 22px;
    }

    .result-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Tablet */

@media (max-width:768px) {

    .hero-section {
        padding: 35px 20px;
    }

        .hero-section h1 {
            font-size: 2rem;
        }

        .hero-section p {
            font-size: .95rem;
        }

    .search-card {
        padding: 18px;
    }

    .branch-card {
        margin-bottom: 15px;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

        .pagination .page-link {
            margin: 3px;
        }
}

/* Mobile */

@media (max-width:576px) {

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-section {
        padding: 30px 18px;
        border-radius: 18px;
    }

        .hero-section h1 {
            font-size: 1.6rem;
        }

        .hero-section p {
            font-size: .9rem;
        }

    .search-card {
        margin-top: 15px;
        padding: 18px;
    }

    .branch-header {
        align-items: flex-start;
    }

    .branch-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .branch-title {
        font-size: 16px;
    }

    .branch-card .card-body {
        padding: 18px;
    }

    .pagination {
        gap: 5px;
    }
    .pagination .page-link {
        min-width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}


.directory-switch {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    gap: 15px;
}

.switch-btn {
    background: #fff;
    color: #198754;
    border: 2px solid #198754;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
}

    .switch-btn:hover {
        background: #198754;
        color: #fff;
    }

    .switch-btn.active {
        background: #198754;
        color: #fff;
        box-shadow: 0 10px 25px rgba(25,135,84,.25);
    }
