/*
    Theme Name: Transcargo Child Theme
    Theme URI: http://logistics.stylemixthemes.com/
    Author: StylemixThemes
    Author URI: http://stylemixthemes.com/
    Description: Transcargo is the only best WordPress theme for transportation and logistics business.
    Version: 1.0
    Template: transcargo
    Text Domain: transcargo-child-theme
*/

/* =================================================================
   1. OPTYMALIZACJA ZASOBÓW (CZCIONKI)
   Wymuszenie font-display: swap dla lepszych wyników PageSpeed
================================================================= */

/* Font Awesome 6 - wykryte w motywie */
@font-face {
    font-family: 'Font Awesome 6 Free';
    src: url('https://polagent.com/wp-content/plugins/js_composer/assets/lib/vendor/dist/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

/* Font Awesome 5 Solid */
@font-face {
    font-family: 'Font Awesome 5 Free';
    src: url('https://polagent.com/wp-content/plugins/js_composer/assets/lib/vendor/dist/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

/* Font Awesome 5 Brands (Social Media) */
@font-face {
    font-family: 'Font Awesome 5 Brands';
    src: url('https://polagent.com/wp-content/plugins/js_composer/assets/lib/vendor/dist/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff2') format('woff2');
    font-display: swap;
}

/* Ikony STM (Twoje lokalne ikony) */
@font-face {
    font-family: 'stm';
    src: url('https://polagent.com/wp-content/uploads/stm_fonts/stm/stm.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* =================================================================
   2. ZMIENNE GLOBALNE I BAZA
================================================================= */
:root {
    --wp--preset--color--luminous-vivid-orange: #d9aa27;
    --form-primary-color: #172a48;
    --form-secondary-color: #007bff;
    --form-light-bg: #f8f9fa;
    --form-border-color: #ced4da;
    --form-light-border: #e0e0e0;
}

body {
    margin: 0;
    padding: 0;
    background: transparent;
}

.no_overflow {
    overflow: hidden !important;
}

/* =================================================================
   3. KOMPONENTY I UKŁADY (VC / ELEMENTOR)
================================================================= */

/* Efekt Zoomu na Obrazkach */
.zoom-effect .vc_single_image-wrapper {
    height: 350px;
    overflow: hidden;
}

.zoom-effect .vc_single_image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}

.zoom-effect .vc_single_image-wrapper img:hover {
    transform: scale(1.5);
}

/* Flexbox Helpers */
.flex-row {
    display: flex;
    align-items: center;
}

.flex-column {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

/* Pozycjonowanie */
.relative-box {
    position: relative;
    bottom: 145px;
}

.absolute-box {
    position: absolute;
}

/* Przyciski Motywu */
.vc_btn3.vc_btn3-color-warning.vc_btn3-style-modern {
    background-color: #d9aa27 !important;
    border-color: #d9aa27 !important;
    color: #fff !important;
}

.vc_btn3.vc_btn3-color-warning.vc_btn3-style-modern:focus,
.vc_btn3.vc_btn3-color-warning.vc_btn3-style-modern:hover {
    background-color: #c49922 !important;
    border-color: #c49922 !important;
}

/* =================================================================
   4. WIDGETY I STOPKA
================================================================= */

/* Widget Lokalizacje */
.lokalizacje-widget {
    color: rgba(255, 255, 255, .7) !important;
}

.lokalizacja-tytul {
    cursor: pointer;
    color: rgba(255, 255, 255, .7) !important;
}

.lokalizacja-tytul::before {
    display: none;
}

.dane-kontaktowe i {
    margin-right: 8px;
    width: 1.2em;
    text-align: center;
}

.dane-kontaktowe {
    margin-top: -10px;
    margin-bottom: 20px;
}

.dane-kontaktowe p {
    margin: 5px 0;
}

/* Stopka - Separatory */
.footer_widgets .col-lg-3 {
    padding-left: 20px; 
    padding-right: 20px;
}

@media (min-width: 992px) {
    .footer_widgets .col-lg-3 + .col-lg-3 {
        border-left: 1px solid #ddd; 
    }
}

/* Ukrycie tytułu widgetu wyszukiwarki w stopce */
#search-2 .widget_title {
    display: none !important;
}
/* Stylizacja sekcji Przydatne Linki */
#menu-footer-menu {
    list-style: none !important; /* Usuwa domyślne kropki */
    padding-left: 0 !important;
}

#menu-footer-menu li {
    position: relative;
    padding-left: 20px; /* Miejsce na strzałkę */
    margin-bottom: 12px; /* Odstępy między wierszami */
}

/* Dodanie strzałki przed linkiem */
#menu-footer-menu li::before {
    content: '→'; /* Możesz zmienić na '›' dla delikatniejszego efektu */
    position: absolute;
    left: 0;
    color: #00aaff; /* Kolor strzałki - dopasuj do jasnego błękitu z logo */
    font-weight: bold;
    font-size: 16px;
}

#menu-footer-menu li a {
    color: #ffffff !important; /* Wyraźny biały tekst */
    font-size: 16px; /* Większa, czytelna czcionka */
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Efekt najechania myszką */
#menu-footer-menu li a:hover {
    color: #00aaff !important; /* Zmiana koloru na błękitny przy najechaniu */
    transform: translateX(5px); /* Delikatne wysunięcie linku w prawo */
}

/* =================================================================
   5. STYLE MAPY I LEGACY
================================================================= */
.stm_gmap_wrapper .gmap_addresses {
    background: rgba(24, 54, 80, 0.9);
}

.addresses_wr a {
    color: #34ccff;
}

.copyright {
    color: #53A9E5 !important;
}

.copyright a {
    color: #FFFFF6 !important;
}

#map-5-locations {
    width: 100% !important;
    min-height: 400px !important;
    display: block !important;
}

.leaflet-popup-content-wrapper {
    background: white !important;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4) !important;
}

/* =================================================================
   6. RESPONSIVE / MEDIA QUERIES
================================================================= */

/* Tablety poziomo i mniejsze */
@media (max-width: 992px) {
    .vehicle-option {
        flex: 0 0 calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
    }
    .request_booking .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Telefony poziomo / Małe tablety */
@media (max-width: 768px) {
    .rs_wrapper {
        display: none !important;
    }
    .vehicle-option {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
    .ferry-cards-container {
        grid-template-columns: 1fr;
    }
    .swap-on-mobile {
        display: flex !important;
        flex-direction: column-reverse;
    }
}


/* Telefony pionowo */
@media (max-width: 576px) {
    .vehicle-type-selector {
        flex-direction: column;
    }
    .submit-button {
        min-width: 100% !important;
    }
}
