/* ==========================================================================
   Custom overrides (loaded on every page, both languages)
   ========================================================================== */

/* Header logo: 100px wide on desktop, 80px tall on mobile/tablet */
.logo-one a img {
    width: 100px;
    height: auto;
}

@media only screen and (max-width: 991px) {
    .logo-one a img {
        width: auto;
        height: 80px;
        max-width: 200px;
    }

    .mobile-nav__content .logo-box a img {
        width: auto;
        height: 80px;
        max-width: 200px;
    }
}

/* Footer logo size */
.site-footer__logo a img {
    width: 65%;
}

/* Footer background: remove the top gap */
.site-footer__bg {
    top: 0;
}

/* WhatsApp floating button */
.chat-icon a {
    position: relative;
    display: inline-block;
    width: auto;
    height: auto;
    line-height: 1;
    text-align: center;
    font-size: 60px;
    color: green;
    background: transparent;
    z-index: 1;
    text-decoration: none;
}

.chat-icon a:before {
    display: none;
}

/* Branches Google Map (contact page) */
.branches-map-section {
    padding: 80px 0 40px;
    background: var(--trnspot-gray-bg, #f5f5f5);
}

.branches-cards-section {
    padding: 40px 0 100px;
    background: #fff;
}

.branches-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.branches-section-head .sub-title {
    font-size: 16px;
    color: var(--trnspot-base);
    margin-bottom: 8px;
    font-weight: 600;
}

.branches-section-head .title {
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--trnspot-black);
}

.branches-section-head p {
    margin: 0;
    color: #666;
}

#map_wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    height: 520px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

#map_canvas {
    width: 100%;
    height: 100%;
}

.branches-map-notice {
    max-width: 700px;
    margin: 0 auto;
    padding: 24px;
    text-align: center;
    background: #fff;
    border: 1px dashed rgba(6, 97, 104, 0.25);
    border-radius: 12px;
    color: #666;
}

.branch-map-infowindow {
    min-width: 200px;
    max-width: 260px;
    font-size: 14px;
    line-height: 1.5;
}

.branch-map-infowindow h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--trnspot-black);
}

.branch-map-infowindow p {
    margin: 0 0 6px;
    color: #555;
}

.branch-map-infowindow a {
    color: var(--trnspot-base);
    font-weight: 600;
}

.branch-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1140px;
    margin: 0 auto;
}

.branch-card {
    background: #fff;
    border: 1px solid var(--trnspot-bdr-color, #e5e5e5);
    border-radius: 12px;
    padding: 28px;
    transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}

.branch-card:hover,
.branch-card.is-active {
    border-color: var(--trnspot-base);
    box-shadow: 0 12px 32px rgba(6, 97, 104, 0.12);
    transform: translateY(-4px);
}

.branch-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--trnspot-black);
}

.branch-card-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #444;
    line-height: 1.5;
}

.branch-card-item i {
    color: var(--trnspot-base);
    margin-top: 4px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.branch-card-item a {
    color: inherit;
    word-break: break-word;
}

.branch-card-item a:hover {
    color: var(--trnspot-base);
}

.branch-card-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 18px;
    background: var(--trnspot-base);
    color: #fff !important;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}

.branch-card-map-link:hover {
    opacity: 0.88;
    color: #fff !important;
}

html[dir="rtl"] .branch-card-map-link .icon-next {
    transform: scaleX(-1);
}

.contact-page__head-office {
    margin-top: 30px;
}

.contact-page__head-office .branch-card {
    margin: 0;
}

.contact-page__head-office .contact-whatsapp-icon {
    color: green;
    font-size: 18px;
}

@media (max-width: 767px) {
    .branches-map-section,
    .branches-cards-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .branches-section-head .title {
        font-size: 28px;
    }

    #map_wrapper {
        height: 380px;
    }
}
