/* ROOT */
.hoga-store-finder {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 64px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    box-sizing: border-box;
}

/* ===== TITLE + SEARCH BAR ===== */
.hoga-header {
    text-align: center;
    margin-bottom: 32px;
}

.hoga-title {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: .02em;
    margin: 0 0 18px;
}

.hoga-search-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    max-width: 500px; /* Reduced width */
    margin: 0 auto;
}

.hoga-search-box {
    position: relative;
    flex: 1;
}

.hoga-search-input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border-radius: 4px;
    border: 1px solid #d3d7dd;
    font-size: 14px;
    outline: none;
    background-color: #ffffff;
    color: #111827;
    box-sizing: border-box;
    /* Hide datalist arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.hoga-search-input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

.hoga-search-input::placeholder {
    color: #9ba1ab;
}

/* Hide datalist dropdown arrow in all browsers */
.hoga-search-input::-webkit-calendar-picker-indicator {
    display: none !important;
}

.hoga-search-input::-webkit-list-button {
    display: none !important;
}

.hoga-search-input::-webkit-clear-button {
    display: none !important;
}

/* search icon inside input */
.hoga-search-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Location error message */
.hoga-location-error {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    color: #dc2626;
    font-size: 13px;
}

/* ===== PROMO SECTION ===== */
.hoga-promo {
    margin-bottom: 40px;
}

.hoga-promo-heading {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 24px;
}

.hoga-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.hoga-promo-card {
    margin: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
    background: #f3f4f6;
    transition: transform 0.2s ease;
}

.hoga-promo-card:hover {
    transform: translateY(-2px);
}

.hoga-promo-card img {
    display: block;
    width: 100%;
    height: auto;
}

/* FAQ bar (pink border) */
.hoga-promo-faq {
    max-width: 720px;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid #f9739a;
    overflow: hidden;
    background: #ffffff;
}

.hoga-promo-faq-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border: none;
    background: #ffffff;
    cursor: pointer;
    font-size: 14px;
    color: #e11d48;
    transition: background-color 0.2s ease;
}

.hoga-promo-faq-toggle:hover {
    background: #fdf2f8;
}

.hoga-promo-faq-chevron {
    font-size: 16px;
    line-height: 1;
    color: #e11d48;
    transition: transform 0.2s ease;
}

.hoga-promo-faq-open .hoga-promo-faq-chevron {
    transform: rotate(180deg);
}

.hoga-promo-faq-body {
    padding: 0 18px 12px;
    font-size: 13px;
    color: #4b5563;
    display: none;
    line-height: 1.5;
}

.hoga-promo-faq-open .hoga-promo-faq-body {
    display: block;
}

/* ===== RESULTS LAYOUT ===== */
.hoga-layout-wrapper {
    position: relative;
}

.hoga-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 380px) 1fr;
    gap: 16px;
    min-height: 600px;
}

/* LEFT LIST – outer card */
.hoga-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 520px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 16px 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
}

.hoga-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.hoga-list-title {
    color: #374151;
    font-weight: 500;
}

.hoga-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    background: #ffffff;
    color: #7c3aed;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.hoga-filter-button:hover {
    background: #f3f4f6;
}

.hoga-filter-icon {
    font-size: 14px;
}

.hoga-store-list {
    flex: 1;
    max-height: 600px;
    overflow-y: auto;
    padding: 4px 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.hoga-store-list::-webkit-scrollbar {
    width: 6px;
}

.hoga-store-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.hoga-store-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.hoga-store-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* store cards – Currys style */
.hoga-store-card {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    position: relative;
}

.hoga-store-card:last-child {
    margin-bottom: 0;
}

.hoga-store-card:hover {
    border: 2px solid #2563eb;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.921);
}

.hoga-store-card:hover .hoga-store-number {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.hoga-store-card--active {
    border: 2px solid #2563eb;
    box-shadow: 0 0 0 2px #2563eb;
    background: white;
}
.hoga-store-card--active .hoga-store-number {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* number icon on card - Blue background on hover/active */
.hoga-store-number {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 2px solid #7c3aed;
    color: #7c3aed;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.hoga-store-content {
    flex: 1;
    min-width: 0;
}

.hoga-store-name {
    font-weight: 600;
    font-size: 14px;
    color: #4c1d95;
    margin-bottom: 4px;
    line-height: 1.3;
}

.hoga-store-address {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 4px;
    line-height: 1.4;
}

.hoga-store-distance,
.hoga-store-hours {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.3;
}

.hoga-store-link {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.hoga-store-link:hover {
    background: #7c3aed;
    color: #ffffff;
}

/* RIGHT MAP */
.hoga-map-container {
    width: 100%;
    height: 600px;
    overflow: hidden;
    position: relative;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.hoga-map-wrapper {
    width: 100%;
    height: 100%;
}

#hoga-map {
    width: 100%;
    height: 100%;
    border-radius: 18px;
}

/* Google Maps Info Window Styling */
.gm-style-iw {
    overflow: visible !important;
    max-height: none !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-radius: 12px !important;
}

.gm-style-iw-chr {
    display: none !important;
}

.hoga-store-iw {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-width: 240px;
    max-width: 280px;
    padding: 0;
    overflow: hidden;
}

.hoga-store-iw-content {
    padding: 16px;
    background: white;
    position: relative;
}

.hoga-store-iw-title {
    font-size: 15px;
    font-weight: 600;
    color: #4c1d95;
    margin-bottom: 6px;
    line-height: 1.3;
    padding-right: 80px;
}

.hoga-store-iw-address {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 6px;
    line-height: 1.4;
}

.hoga-store-iw-distance,
.hoga-store-iw-hours {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 3px;
    line-height: 1.3;
}

.hoga-store-iw-link {
    position: absolute;
    top: 76px;
    right: -1px;
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
}

/* User Location Marker Styling */
.hoga-user-location-label {
    background: #2563eb;
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Hide default Google Maps UI elements */
.gm-ui-hover-effect {
    display: none !important;
}

.gm-style-iw-tc {
    display: none !important;
}

/* FILTER PANEL */
.hoga-filters-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 50;
}

.hoga-filters-panel {
    width: 380px;
    max-width: 100%;
    background: #ffffff;
    border-radius: 16px 0 0 16px;
    border: 1px solid #e5e7eb;
    padding: 20px 24px 24px;
    box-sizing: border-box;
    transform: translateX(-110%);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow-y: auto;
    max-height: 100%;
}

.hoga-filters-backdrop {
    flex: 1;
    background: rgba(15, 23, 42, 0.02);
    cursor: pointer;
}

.hoga-filters-overlay.hoga-filters-open {
    opacity: 1;
    pointer-events: auto;
}

.hoga-filters-overlay.hoga-filters-open .hoga-filters-panel {
    transform: translateX(0);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.hoga-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.hoga-filters-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.hoga-filters-close {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    border: none;
    background: none;
    cursor: pointer;
    color: #7c3aed;
    text-decoration: none;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.hoga-filters-close:hover {
    background: #f3f4f6;
}

.hoga-filters-close-icon {
    font-size: 18px;
    line-height: 1;
}

.hoga-filters-subtitle {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.hoga-filters-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hoga-filter-option {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: #111827;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.hoga-filter-option:hover {
    color: #7c3aed;
}

.hoga-filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #7c3aed;
    cursor: pointer;
}

/* A11Y helper */
.screen-reader-text {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Google Places suggestions dropdown */
.pac-container {
    z-index: 999999 !important;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    margin-top: 4px !important;
}

.pac-item {
    padding: 8px 12px !important;
    border: none !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.pac-item:hover {
    background: #f3f4f6 !important;
}

.pac-item-selected {
    background: #f3f4f6 !important;
}

.pac-icon {
    margin-right: 8px !important;
}

/* Loading state */
.hoga-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.hoga-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #7c3aed;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Custom Datalist Styling */
#location-options {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: white;
    z-index: 1000;
}

/* Completely hide datalist arrow in all browsers */
.hoga-search-input::-webkit-calendar-picker-indicator {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    right: -9999px !important;
}

.hoga-search-input::-webkit-list-button {
    display: none !important;
}

.hoga-search-input::-webkit-clear-button {
    display: none !important;
}

.hoga-search-input {
    /* Remove all default dropdown styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none !important;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hoga-store-finder {
        padding: 24px 16px 48px;
    }
    
    .hoga-main-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hoga-sidebar {
        min-height: auto;
        max-height: 400px;
        margin-bottom: 16px;
    }

    .hoga-map-container {
        height: 400px;
        margin-top: 0;
    }

    .hoga-filters-panel {
        border-radius: 16px;
        transform: translateX(-105%);
        width: 90%;
        max-width: 380px;
    }

    .hoga-promo-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hoga-search-row {
        flex-direction: column;
        gap: 8px;
        max-width: 100%;
    }

    .hoga-search-box {
        width: 100%;
    }

    .hoga-store-link {
        position: static;
        margin-top: 8px;
        display: inline-block;
    }

    .hoga-store-iw-title {
        padding-right: 0;
    }

    .hoga-store-iw-link {
        position: static;
        margin-top: 8px;
        display: inline-block;
    }
}

@media (max-width: 600px) {
    .hoga-title {
        font-size: 24px;
    }
    
    .hoga-promo-heading {
        font-size: 18px;
    }
    
    .hoga-sidebar {
        padding: 12px 16px;
    }
    
    .hoga-store-card {
        padding: 12px 16px;
    }
    
    .hoga-filters-panel {
        width: 95%;
        padding: 16px 20px 20px;
    }
    
    .hoga-search-row {
        max-width: 100%;
    }
}

/* Print styles */
@media print {
    .hoga-store-finder {
        padding: 0;
        max-width: none;
    }
    
    .hoga-map-container,
    .hoga-filters-overlay {
        display: none !important;
    }
    
    .hoga-main-layout {
        grid-template-columns: 1fr;
    }
}
/* Custom Dropdown Styles */
.hoga-custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.hoga-dropdown-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.hoga-dropdown-option:last-child {
    border-bottom: none;
}

.hoga-dropdown-option:hover {
    background: #f8fafc;
}

.hoga-location-option-icon {
    display: flex;
    align-items: center;
    color: #7c3aed;
}

.hoga-location-option-text {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* When input is focused, show dropdown */
.hoga-search-box:focus-within .hoga-custom-dropdown {
    display: block !important;
}

/* Hide dropdown when input has value (user is typing) */
.hoga-search-input:not(:placeholder-shown) ~ .hoga-custom-dropdown {
    display: none !important;
}

/* Ensure the dropdown stays below Google Places suggestions */
.pac-container {
    z-index: 1001 !important;
}

.hoga-custom-dropdown {
    z-index: 1000;
}

/* Make sure input has proper border when dropdown is shown */
.hoga-search-input:focus {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: #e5e7eb;
}
.hoga-user-location-label {
    font-weight: 600;
    font-size: 14px;
    color: #be185d;
    background: #ffe4f2;
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
