/* ==========================================================================
   SHOP LOCATOR STYLES
   Beautiful design /* Shop Details Section - Refactored Layout */
.shop-list-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 500px;
    overflow-y: auto;
    width: 100%;
    border: 2px solid #D2691E;
}

/* Direct Imker Container */
.direct-imker-container, .farm-shops-container, .retail-partners-container {
    margin-bottom: 30px;
}

.direct-imker-container h3, .farm-shops-container h3, .retail-partners-container h3 {
    color: #D2691E;
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #D2691E;
    display: flex;
    align-items: center;
    gap: 10px;
}

#permanent-shops-list, #farm-shops-list, #retail-partners-list {
    display: grid;
    gap: 12px;
}

/* Legacy permanent shops container - kept for compatibility */
.permanent-shops-container {
    margin-bottom: 30px;
}

.permanent-shops-container h3 {
    color: #D2691E;
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #D2691E;
    display: flex;
    align-items: center;
    gap: 10px;
}

.permanent-shop-item {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.shop-icon {
    background: #D2691E;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.shop-content {
    flex: 1;
}

.permanent-shop-item:hover, .permanent-shop-item.selected {
    background: #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.permanent-shop-item.selected {
    background: #fff3cd;
    border-color: #D2691E;
}

.shop-content h4 {
    color: #333;
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-type-label {
    background: #D2691E;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.permanent-shop-item .shop-address {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.permanent-shop-item .shop-hours {
    color: #888;
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 8px;
}

.shop-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.shop-phone, .shop-email, .shop-website {
    color: #D2691E;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
    min-height: 20px;
    margin: 0;
    padding: 0;
}

.shop-phone a, .shop-email a, .shop-website a {
    color: #D2691E;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

.shop-phone a:hover, .shop-email a:hover, .shop-website a:hover {
    color: #8B4513;
    text-decoration: underline;
}

.shop-phone i, .shop-email i, .shop-website i {
    font-size: 0.8rem;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

/* Market contact styles */
.market-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.market-phone, .market-email, .market-website {
    color: #D2691E;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
    min-height: 18px;
    margin: 0;
    padding: 0;
}

.market-phone a, .market-email a, .market-website a {
    color: #D2691E;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

.market-phone a:hover, .market-email a:hover, .market-website a:hover {
    color: #8B4513;
    text-decoration: underline;
}

.market-phone i, .market-email i, .market-website i {
    font-size: 0.75rem;
    width: 12px;
    text-align: center;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

/* Event contact styles */
.event-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.event-phone, .event-email, .event-website {
    color: #D2691E;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
    min-height: 18px;
    margin: 0;
    padding: 0;
}

.event-phone a, .event-email a, .event-website a {
    color: #D2691E;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

.event-phone a:hover, .event-email a:hover, .event-website a:hover {
    color: #8B4513;
    text-decoration: underline;
}

.event-phone i, .event-email i, .event-website i {
    font-size: 0.75rem;
    width: 12px;
    text-align: center;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

/* Legacy styles - kept for compatibility */
.shop-website, .market-website, .event-website {
    color: #D2691E;
    font-size: 0.85rem;
    margin-top: 8px;
}

.shop-website a, .market-website a, .event-website a {
    color: #D2691E;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.shop-website a:hover, .market-website a:hover, .event-website a:hover {
    color: #8B4513;
    text-decoration: underline;
}

.shop-website i, .market-website i, .event-website i {
    margin-right: 5px;
    font-size: 0.8rem;
}

/* Markets & Events Section */
.markets-events-container {
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
}

.markets-section, .events-section {
    margin-bottom: 25px;
}

.markets-section h4, .events-section h4 {
    color: #D2691E;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Markets Table */
.markets-table {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.market-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
    cursor: pointer;
    gap: 15px;
}

.market-icon {
    background: #D2691E;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.market-item:last-child {
    border-bottom: none;
}

.market-item:hover, .market-item.selected {
    background: #e9ecef;
}

.market-item.selected {
    background: #fff3cd;
    border-left: 4px solid #D2691E;
}

.market-info {
    flex: 1;
}

.market-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.market-time {
    color: #666;
    font-size: 0.9rem;
}

.market-location {
    color: #888;
    font-size: 0.85rem;
}

/* Events Calendar */
.events-calendar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #ddd;
}

.event-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    margin-bottom: 12px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #D2691E;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Event items without dates get a calendar icon instead */
.event-item.no-date {
    align-items: center;
}

.event-item.no-date::before {
    content: "\f073"; /* FontAwesome calendar icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    background: #D2691E;
    color: white;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    margin-right: 15px;
    min-width: 46px;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.event-item:hover, .event-item.selected {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateX(2px);
}

.event-item.selected {
    background: #fff3cd;
    border-left-color: #D2691E;
    border-left-width: 6px;
}

.event-item:last-child {
    margin-bottom: 0;
}

.event-date {
    background: #D2691E;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    margin-right: 15px;
    min-width: 70px;
    flex-shrink: 0;
}

.event-date .day {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
}

.event-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.event-info {
    flex: 1;
}

.event-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.event-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.event-time {
    color: #888;
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .shop-list-section {
        height: 400px;
        padding: 15px;
    }
    
    .direct-imker-container h3, .farm-shops-container h3, .retail-partners-container h3 {
        font-size: 1.2rem;
    }
    
    .markets-section h4, .events-section h4 {
        font-size: 1.1rem;
    }
    
    .market-item {
        padding: 10px 12px;
        gap: 12px;
    }
    
    .market-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .shop-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .permanent-shop-item {
        padding: 12px;
        gap: 12px;
    }
    
    .shop-contact {
        margin-top: 6px;
        gap: 3px;
    }
    
    .shop-phone, .shop-email, .shop-website {
        font-size: 0.8rem;
    }
    
    .market-contact, .event-contact {
        gap: 8px;
        font-size: 0.8rem;
    }
    
    .event-item {
        padding: 10px;
    }
    
    .event-date {
        min-width: 60px;
        padding: 6px 8px;
        margin-right: 10px;
    }
}

/* No data states */
.no-permanent-shops, .no-farm-shops, .no-retail-partners, .no-markets, .no-events {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.no-permanent-shops i, .no-farm-shops i, .no-retail-partners i, .no-markets i, .no-events i {
    font-size: 2rem;
    color: #ccc;
    margin-bottom: 10px;
    display: block;
}

/* ==========================================================================
   Modern shop locator with interactive map
   ========================================================================== */

/* Main container */
.shop-locator-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    border: 2px solid #D2691E;
    border-radius: 15px;
    margin: 20px;
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.15);
    position: relative;
    overflow: hidden;
}

/* Decorative map icons in corners */
.shop-locator-section::before {
    content: "🗺️";
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 1.5rem;
    opacity: 0.3;
}

.shop-locator-section::after {
    content: "📍";
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    opacity: 0.3;
}

.shop-locator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.shop-locator-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(210, 105, 30, 0.2);
    backdrop-filter: blur(5px);
}

.shop-locator-title {
    font-size: 2.5rem;
    color: #2C5530;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shop-locator-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Global Quick Access Buttons - above both sections */
.shop-quick-access-global {
    margin-bottom: 30px;
    text-align: center;
}

.shop-quick-access-global h4 {
    font-size: 1.2rem;
    color: #2C5530;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Main content layout */
.shop-locator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    min-height: 600px;
}

/* Map container */
.shop-map-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 500px;
    min-height: 500px;
    position: relative;
    z-index: 1;
}

#shop-locator-map {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.map-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    color: #666;
    text-align: center;
    padding: 20px;
}

/* Shop list container */
.shop-list-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 0;
    min-height: 500px;
    max-height: 600px;
    overflow: hidden;
}

/* Shop Buttons Container (used globally now) */
.shop-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-quick-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #D2691E;
    color: #2C5530;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.shop-quick-btn:hover {
    background: linear-gradient(135deg, #D2691E 0%, #B8860B 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.3);
}

.shop-quick-btn.active {
    background: linear-gradient(135deg, #D2691E 0%, #B8860B 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.3);
}

/* Carousel Container */
.shop-carousel-container {
    position: relative;
    background: white; /* Match map background */
    border-radius: 15px; /* Match map border radius */
    padding: 30px;
    margin: 0; /* Remove external margins */
    height: 500px; /* Exact same height as map */
    min-height: 500px; /* Exact same minimum height as map */
    overflow: hidden; /* Match map overflow behavior */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Exact same shadow as map */
    z-index: 1; /* Match map z-index */
}

.shop-carousel-wrapper {
    position: relative;
    height: 100%; /* Fill container height */
    overflow: hidden; /* Handle overflow within fixed height */
}

.shop-carousel-track {
    position: relative;
    height: 100%; /* Fill wrapper height */
    width: 100%;
    overflow-y: auto; /* Allow vertical scrolling if content is too tall */
}

.shop-carousel-slide {
    display: none; /* Hide inactive slides */
    width: 100%;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.shop-carousel-slide.active {
    display: block; /* Show active slide */
    opacity: 1;
    animation: slideIn 0.4s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Buttons - Gallery Style */
.shop-nav {
    position: absolute;
    top: 50%; /* Exact middle height */
    transform: translateY(-50%); /* Perfect vertical centering */
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #D2691E;
}

.shop-nav:hover {
    background: #D2691E;
    transform: translateY(-50%) scale(1.1); /* Keep centering in hover state */
    box-shadow: 0 6px 25px rgba(210, 105, 30, 0.3);
}

.shop-nav:hover::before {
    border-color: white;
}

.shop-nav-prev {
    left: 15px; /* Inside the box */
}

.shop-nav-next {
    right: 15px; /* Inside the box */
}

.shop-nav::before {
    content: '';
    width: 10px;
    height: 10px;
    border-top: 2px solid #D2691E;
    border-right: 2px solid #D2691E;
    transform: rotate(-135deg);
    margin-right: 2px;
    transition: border-color 0.3s ease;
}

.shop-nav-next::before {
    transform: rotate(45deg);
    margin-right: 0;
    margin-left: 2px;
}

/* Carousel Counter */
.shop-carousel-counter {
    position: absolute;
    bottom: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #2C5530;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Shop Card in Carousel */
.shop-carousel-slide .shop-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: 2px solid transparent;
    transition: all 0.4s ease; /* Smooth transitions */
    width: 100%;
    height: 100%; /* Fill available space in fixed container */
    max-height: none;
    overflow-y: auto; /* Allow scrolling within card if content is too tall */
    display: flex;
    flex-direction: column;
}

.shop-carousel-slide.active .shop-card {
    border-color: #B8621E; /* Darker orange for active state */
    box-shadow: 0 8px 25px rgba(184, 98, 30, 0.4); /* Enhanced shadow for active state */
    transform: scale(1.01); /* Subtle scale for prominence */
    transition: all 0.4s ease; /* Smooth transition */
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .shop-locator-section {
        margin: 10px;
        padding: 50px 0; /* More vertical space */
        border-radius: 10px;
        min-height: auto; /* Let content determine height */
        /* iOS Safari optimizations */
        -webkit-overflow-scrolling: touch;
        transform: translateZ(0); /* Force hardware acceleration */
    }
    
    /* Hide decorative icons on mobile - can be too small */
    .shop-locator-section::before,
    .shop-locator-section::after {
        display: none;
    }
    
    .shop-locator-container {
        padding: 0 20px;
    }
    
    .shop-locator-header {
        padding: 15px;
        margin-bottom: 30px;
        /* Better touch optimization */
        touch-action: manipulation;
    }
    
    .shop-locator-title {
        font-size: 2rem;
        line-height: 1.2; /* Better text rendering on mobile */
        /* Prevent text zoom on iOS */
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    .shop-locator-subtitle {
        font-size: 1rem; /* Smaller subtitle on mobile */
        max-width: 100%; /* Full width on mobile */
        padding: 0 10px; /* Small padding for readability */
        line-height: 1.4; /* Tighter line height for mobile */
    }
    
    .shop-locator-content {
        grid-template-columns: 1fr;
        gap: 40px; /* More space between sections */
        min-height: auto; /* Remove height constraints */
    }
    
    /* Mobile map container */
    .shop-map-container {
        height: 400px; /* Reasonable height for mobile */
        min-height: 400px;
        order: 1; /* Map appears first */
    }
    
    /* Mobile shop list section - same size as map */
    .shop-list-section {
        order: 2; /* Shop details appear after map */
        min-height: 400px; /* Same height as map */
    }
    
    .shop-buttons-container {
        justify-content: center;
    }
    
    /* Compact quick access on mobile */
    .shop-quick-access-global {
        margin-bottom: 20px; /* Less margin on mobile */
    }
    
    .shop-quick-access-global h4 {
        font-size: 1.1rem; /* Smaller heading */
        margin-bottom: 15px; /* Less space */
    }
    
    .shop-quick-btn {
        font-size: 0.8rem;
        padding: 8px 12px; /* Larger touch targets */
        min-height: 44px; /* iOS minimum touch target */
        /* Touch optimizations */
        -webkit-tap-highlight-color: rgba(210, 105, 30, 0.3);
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
    }
    
    .shop-nav {
        width: 44px; /* iOS minimum touch target */
        height: 44px;
        /* Better touch response */
        -webkit-tap-highlight-color: rgba(210, 105, 30, 0.3);
        touch-action: manipulation;
    }
    
    .shop-nav-prev {
        left: 10px;
    }
    
    .shop-nav-next {
        right: 10px;
    }
    
    .shop-nav::before {
        width: 8px;
        height: 8px;
    }
    
    .shop-carousel-container {
        padding: 15px;
        min-height: 250px;
        /* iOS Safari smooth scrolling */
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden; /* Prevent horizontal scroll issues */
    }
    
    .shop-carousel-slide .shop-card {
        padding: 20px;
        min-height: auto; /* Dynamic height based on content */
        /* Better touch interaction */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        background: linear-gradient(135deg, #ffffff 0%, #fefcf8 100%);
        border: 3px solid #D2691E; /* Prominent orange border */
        border-radius: 15px;
        box-shadow: 0 8px 25px rgba(210, 105, 30, 0.3); /* Strong shadow */
        overflow: visible; /* No internal scrolling */
        margin-bottom: 25px; /* More space for navigation */
        /* Add inner glow effect */
        position: relative;
        width: 100%; /* Ensure full width */
        box-sizing: border-box; /* Include padding in width calculation */
    }
    
    .shop-carousel-slide .shop-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 12px;
        background: linear-gradient(135deg, rgba(210, 105, 30, 0.1), rgba(222, 184, 135, 0.1));
        pointer-events: none;
        z-index: -1;
    }
    
    /* Ensure shop card content is properly spaced and visible */
    .shop-carousel-slide .shop-card h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        line-height: 1.3;
        color: #2C5530; /* Dark green for better contrast */
        font-weight: 700; /* Bolder font weight */
        text-shadow: 0 1px 2px rgba(0,0,0,0.1); /* Subtle text shadow */
    }
    
    .shop-carousel-slide .shop-card p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 10px;
        color: #333; /* Darker text for better readability */
    }
    
    .shop-carousel-slide .shop-card .shop-details {
        overflow: visible;
        max-height: none;
        background: rgba(210, 105, 30, 0.05); /* Light orange background */
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
    }
    
    .shop-carousel-counter {
        bottom: 10px;
        right: 15px;
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .shop-locator-section {
        margin: 5px;
        padding: 40px 0; /* Good padding for very small screens */
        border-width: 1px; /* Thinner border on small screens */
        min-height: auto; /* Let content expand naturally */
    }
    
    .shop-locator-title {
        font-size: 1.5rem; /* Smaller on very small screens */
    }
    
    .shop-carousel-container {
        padding: 25px 20px; /* Comfortable padding for small screens */
        height: 400px; /* Same height as mobile map */
        min-height: 400px; /* Same minimum height as mobile map */
        background: white; /* Match map background */
        border-radius: 15px; /* Match map border radius */
        box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Match map shadow */
        margin: 25px 0; /* Vertical spacing only */
        overflow: hidden; /* Consistent overflow handling */
    }
    
    .shop-carousel-wrapper {
        height: 100%; /* Fill container height */
        overflow: hidden; /* Consistent overflow handling */
    }
    
    .shop-carousel-track {
        height: 100%; /* Fill wrapper height */
        overflow-y: auto; /* Allow scrolling if needed */
    }
    
    .shop-carousel-slide .shop-card {
        padding: 18px; /* Good padding for small screens */
        margin-bottom: 20px;
        border: 4px solid #D2691E; /* Even more prominent border */
        box-shadow: 0 10px 30px rgba(210, 105, 30, 0.4); /* Very prominent shadow */
        background: linear-gradient(135deg, #ffffff 0%, #fef9f3 100%); /* Warmer background */
    }
    
    .shop-carousel-slide .shop-card h3 {
        font-size: 1.3rem; /* Good size for small screens */
        color: #2C5530;
        font-weight: 700;
        margin-bottom: 12px;
    }
    
    .shop-carousel-slide .shop-card p {
        font-size: 14px; /* Readable text for small screens */
        color: #333;
        font-weight: 500; /* Slightly bolder text */
    }
    
    .shop-quick-access h4 {
        font-size: 1rem;
    }
    
    .shop-quick-btn {
        font-size: 0.75rem;
        padding: 6px 10px; /* Still maintain touch targets */
        min-height: 40px; /* Slightly smaller but still accessible */
    }
    
    .shop-nav {
        width: 50px; /* Larger touch target for mobile */
        height: 50px;
        background: rgba(210, 105, 30, 0.9); /* More prominent background */
        border: 2px solid #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        z-index: 10; /* Ensure buttons stay on top */
        top: 50%; /* Exact middle height - same as desktop */
        transform: translateY(-50%); /* Perfect centering - same as desktop */
    }
    
    .shop-nav:hover {
        transform: translateY(-50%) scale(1.05); /* Maintain centering in hover */
    }
    
    .shop-nav::before {
        font-size: 20px; /* Larger arrow icons */
        color: white;
        font-weight: bold;
    }
    
    .shop-nav-prev {
        left: 15px; /* Inside the box - same as desktop */
    }
    
    .shop-nav-next {
        right: 15px; /* Inside the box - same as desktop */
    }
}

@media (max-width: 768px) {
    .shop-carousel-container {
        padding: 25px 20px; /* More generous padding for mobile */
        height: 400px; /* Same height as mobile map */
        min-height: 400px; /* Same minimum height as mobile map */
        overflow: hidden; /* Consistent with map behavior */
        background: white; /* Match map background */
        border-radius: 15px; /* Match map border radius */
        box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Match map shadow */
        position: relative;
        margin: 20px 0; /* Vertical spacing only */
    }
    
    .shop-carousel-wrapper {
        height: 100%; /* Fill container height */
        position: relative;
        overflow: hidden; /* Consistent overflow handling */
    }
    
    .shop-carousel-track {
        height: 100%; /* Fill wrapper height */
        position: relative;
        width: 100%;
        overflow-y: auto; /* Allow scrolling if needed */
    }
    
    .shop-carousel-slide .shop-card {
        padding: 20px;
        min-height: auto; /* Remove fixed height constraint */
        max-height: none;
        overflow: visible; /* Ensure no internal scrolling */
        background: #ffffff;
        border: 3px solid #D2691E; /* More prominent orange border */
        border-radius: 15px;
        box-shadow: 0 6px 20px rgba(210, 105, 30, 0.25); /* Stronger orange shadow */
        margin: 15px 0;
        /* Add a subtle background gradient for more visibility */
        background: linear-gradient(135deg, #ffffff 0%, #fefcf8 100%);
    }
}

/* Additional mobile optimizations for all screen sizes */
@media (max-width: 768px) {
    /* Map container optimizations */
    #shop-locator-map {
        /* Better touch handling for map */
        touch-action: pan-x pan-y zoom-pinch;
        -webkit-overflow-scrolling: touch;
        /* Prevent iOS bounce scrolling interference */
        overscroll-behavior: contain;
    }
    
    /* Button hover states disabled on touch devices */
    .shop-quick-btn:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(210, 105, 30, 0.2);
    }
    
    .shop-nav:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(210, 105, 30, 0.2);
    }
}

/* iOS Safari specific optimizations */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    .shop-locator-section {
        /* Prevent iOS Safari rendering issues */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        /* Better font rendering on retina displays */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Fix iOS Safari button styling */
    .shop-quick-btn,
    .shop-nav {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px;
    }
}

/* Android Chrome specific optimizations */
@media (max-width: 768px) {
    .shop-locator-section {
        /* Better text rendering on Android */
        text-rendering: optimizeLegibility;
    }
    
    /* Android tap highlight customization */
    .shop-quick-btn,
    .shop-nav,
    .shop-card {
        -webkit-tap-highlight-color: rgba(210, 105, 30, 0.2);
        -moz-tap-highlight-color: rgba(210, 105, 30, 0.2);
    }
}

.shop-list-title {
    font-size: 1.5rem;
    color: #2C5530;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Shop cards */
.shop-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fafafa;
    transition: all 0.3s ease;
    position: relative;
}

.shop-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #D2691E;
}

.shop-card:last-child {
    margin-bottom: 0;
}

.shop-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.shop-type-badge {
    background: linear-gradient(135deg, #D2691E, #DEB887);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.show-on-map-btn {
    background: #2C5530;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-on-map-btn:hover {
    background: #1e3a22;
    transform: scale(1.05);
}

.shop-name {
    font-size: 1.2rem;
    color: #2C5530;
    margin-bottom: 10px;
    font-weight: 600;
}

.shop-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.shop-details a {
    color: #D2691E;
    text-decoration: none;
    font-weight: 500;
}

.shop-details a:hover {
    text-decoration: underline;
}

.shop-opening-hours {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 13px;
    border-left: 4px solid #D2691E;
}

.opening-hours-day {
    display: inline-block;
    margin-right: 10px;
    color: #555;
}

.shop-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0;
    padding: 10px;
    background: #f0f8f0;
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

.shop-special-notes {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
    font-size: 13px;
    color: #856404;
}

/* Info window styles */
.shop-info-window {
    max-width: 300px;
}

.shop-info-window h3 {
    margin: 0 0 10px 0;
    color: #2C5530;
    font-size: 16px;
}

.shop-info-content p {
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.4;
}

.shop-info-content a {
    color: #D2691E;
    text-decoration: none;
}

.shop-info-content a:hover {
    text-decoration: underline;
}

/* Error state */
.shop-locator-error {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.shop-locator-error i {
    font-size: 3rem;
    color: #D2691E;
    margin-bottom: 20px;
}

.shop-locator-error h3 {
    color: #2C5530;
    margin-bottom: 15px;
}

.shop-locator-error button {
    background: #D2691E;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
}

.no-shops {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet */
@media (max-width: 968px) {
    .shop-locator-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .shop-map-container {
        height: 400px;
    }
    
    .shop-list-section {
        max-height: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .shop-locator-section {
        padding: 40px 0;
        margin: 20px 0;
    }
    
    .shop-locator-container {
        padding: 0 15px;
    }
    
    .shop-locator-title {
        font-size: 2rem;
    }
    
    .shop-locator-subtitle {
        font-size: 1rem;
    }
    
    .shop-map-container {
        height: 300px;
    }
    
    .shop-list-section {
        padding: 20px;
    }
    
    .shop-card {
        padding: 15px;
    }
    
    .shop-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .show-on-map-btn {
        align-self: flex-end;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .shop-type-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .shop-name {
        font-size: 1.1rem;
    }
}