/* ═══════════════════════════════════════════════════════════════
   COMPONENTS-STYLES.CSS  |  Shared micro-components
   Checkbox/consent, phone link, sr-only, footer contacts,
   city-selector base (V5 overrides build on these)
   ═══════════════════════════════════════════════════════════════ */

/* =================================
   CHECKBOX / CONSENT STYLES
   ================================= */

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e8ed;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #2563eb;
    border-color: #2563eb;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label a {
    color: #2563eb;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* =================================
   PHONE LINK STYLES
   ================================= */

.phone a,
a.phone {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone a:hover,
a.phone:hover {
    color: #b8d4ff;
    transform: translateY(-1px);
}

.phone-icon {
    font-size: 14px;
    margin-right: 4px;
}

.phone a:active,
a.phone:active {
    transform: translateY(1px);
    opacity: 0.8;
}

/* =================================
   SCREEN READER ONLY
   ================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* =================================
   FOOTER CONTACTS
   ================================= */

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.footer .contact-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.footer .contact-icon {
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    min-width: 24px;
    opacity: 0.9;
}

.footer .contact-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.footer .contact-details a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer .contact-details a:hover {
    color: #b8d4ff;
}

.footer .contact-details span {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.4;
}

.footer .contact-item::before {
    display: none !important;
    content: none !important;
}

.footer .contact-item.email::before,
.footer .contact-item.time::before {
    display: none !important;
    content: none !important;
}

@media (max-width: 768px) {
    .footer .contact-item {
        padding: 15px;
        gap: 10px;
    }
    .footer .contact-icon {
        font-size: 18px;
    }
    .footer .contact-details a {
        font-size: 15px;
    }
    .footer .contact-details span {
        font-size: 13px;
    }
}

/* =================================
   CITY SELECTOR IN FOOTER (base)
   V5 overrides in styles-footer.css
   ================================= */

.footer .city-selector {
    position: relative;
    margin: 0 auto;
    display: inline-block;
}

.footer .city-dropdown {
    position: relative;
    display: inline-block;
}

.footer .city-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    background: #16a085;
    border: 2px solid #16a085;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 15px rgba(22, 160, 133, 0.3);
    min-width: 200px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.footer .city-btn:hover,
.footer .city-btn:focus {
    background: #138d75;
    border-color: #138d75;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 160, 133, 0.4);
}

.footer .city-btn:active {
    transform: translateY(0);
}

.footer .city-btn.active {
    background: #fff;
    color: #16a085;
    border-color: #fff;
}

.footer .city-btn.active .city-arrow {
    transform: rotate(180deg);
}

.footer .city-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.footer .city-name {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.footer .city-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.footer .city-dropdown-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    max-height: 350px;
    overflow-y: auto;
    min-width: 280px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #16a085 #f1f1f1;
}

.footer .city-dropdown-menu.dropdown-up {
    bottom: 100%;
    margin-bottom: 15px;
}

.footer .city-dropdown-menu.dropdown-down {
    top: 100%;
    margin-top: 15px;
}

.footer .city-dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.footer .city-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.footer .city-dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.footer .city-dropdown-menu::-webkit-scrollbar-thumb {
    background: #16a085;
    border-radius: 3px;
}

.footer .city-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #138d75;
}

.footer .city-dropdown-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.footer .city-dropdown-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    border: none;
    padding: 0;
}

.footer .city-dropdown-content {
    padding: 10px 0;
}

.footer .city-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 15px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.footer .city-dropdown-item:hover,
.footer .city-dropdown-item:focus {
    background: #f8f9fa;
    color: #16a085;
    transform: translateX(5px);
}

.footer .city-dropdown-item:active {
    background: #e8f8f5;
}

.footer .city-dropdown-item.active {
    background: #e8f8f5;
    color: #16a085;
    font-weight: 600;
    border-left: 3px solid #16a085;
}

.footer .city-dropdown-separator {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

@media (max-width: 768px) {
    .footer .city-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 180px;
    }
    .footer .city-dropdown-menu {
        min-width: 250px;
        max-height: 300px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .footer .city-btn {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 160px;
        flex-direction: column;
        gap: 5px;
    }
    .footer .city-name {
        font-size: 14px;
    }
    .footer .city-dropdown-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        min-width: calc(100vw - 40px);
        max-width: 280px;
        max-height: 250px;
    }
    .footer .city-dropdown-header {
        padding: 15px 20px 10px;
    }
    .footer .city-dropdown-item {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .footer .city-dropdown-menu {
        min-width: calc(100vw - 20px);
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .footer .city-dropdown-menu {
        max-height: 200px;
    }
    .footer .city-dropdown-menu.dropdown-up {
        margin-bottom: 10px;
    }
    .footer .city-dropdown-menu.dropdown-down {
        margin-top: 10px;
    }
}
