.store-card a[href^="tel"],
.store-card a[href^="mailto"] {
    color: inherit !important;
    text-decoration: none !important;
}

button,
input[type="submit"],
input[type="reset"] {
    -webkit-appearance: none;
    appearance: none;
}

.cosselie-stores-wrapper {
    display: flex;
    width: 100%;
    min-height: 600px;
    background: #fff;
    gap: 20px;
}

.cosselie-stores-controls {
    width: 20%;
    padding: 20px;
    border-right: 1px solid #eee;
}

.cosselie-stores-map-wrapper {
    width: 80%;
    display: flex;
    flex-direction: column;
}

.cosselie-stores-map {
    width: 100%;
    height: 600px;
    position: relative;
}

#cosselie-map {
    width: 100%;
    height: 100%;
    min-height: 600px;
    z-index: 5;
}

.cosselie-store-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cosselie-store-card {
    padding: 12px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cosselie-store-card:hover {
    background: #f8f8f8;
}

.cosselie-store-card strong {
    display: block;
}

.cosselie-store-card.active {
    border-color: #111;
    background: #f4f4f4;
}

.cosselie-store-card:hover {
    cursor: pointer;
    background: #f7f7f7;
}

.cosselie-store-info {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
}

.store-card {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.store-middle {
    flex: 1;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.store-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    min-width: 120px;
}

.store-socials a {
    display: flex;
    align-items: center;
    gap: 6px;
    width: calc(50% - 10px);
    text-decoration: none;
    color: inherit;
    font-weight: bold;
}

.store-socials a img {
    width: 20px;
    height: 20px;
    display: block;
}

.store-summary {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    max-width: 405px;
}

.store-social-media {
    margin-top: 50px;
}

.store-card h3 {
    margin: 0 0 10px;
    font-size: 1.3em;
    color: #111;
}

.store-main-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
    position: relative;
}

.store-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.store-gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.75);
}

.store-gallery-arrow:active {
    transform: translateY(-50%) scale(0.96);
}

.store-gallery-arrow-prev {
    left: 10px;
}

.store-gallery-arrow-next {
    right: 10px;
}

.store-gallery-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.store-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-drag: none;
}

.store-thumbs {
    display: flex;
    gap: 10px;
    border-radius: 10px !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.store-thumb {
    width: 80px;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.store-thumb:hover,
.store-thumb.active {
    opacity: 1;
    transform: scale(1.05);
}

.swipe-arrow {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.store-card p {
    margin: 5px 0;
    font-size: 0.95em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-card a {
    color: #000;
    text-decoration: none;
}

.store-card a:hover {
    text-decoration: underline;
}

.icon {
    font-size: 1.1em;
    display: inline-block;
}

.distance {
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
}

.directions-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 14px;
    background: #111;
    color: #fff !important;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9em;
}

.directions-btn:hover {
    background: #ff7600;
}

.store-filter,
.stores-reset {
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    opacity: 1;
}

.store-filter {
    width: 100%;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23111%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px auto;
}

.stores-reset {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid #111;
    color: #111;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s;
}

.stores-reset:hover {
    background: #f0f0f0;
}

.cosselie-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

img.cosselie-pin {
    transform-origin: bottom center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    /* Force these to be visible even if Leaflet styles conflict */
    display: block !important;
}

img.cosselie-pin.hover {
    transform: scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(255, 118, 0, 0.5));
    z-index: 1000 !important;
}

img.cosselie-pin.active {
    transform: scale(1.3);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
    z-index: 1000 !important;
}


img.cosselie-pin.bounce {
    animation: markerBounce 0.6s ease;
}

.cosselie-map-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    border-radius: 12px;
}

.cosselie-map-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cosselie-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #eee;
    border-top: 4px solid #111;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.store-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #fafafa;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

.store-empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.store-empty-state h4 {
    margin: 0 0 8px;
    color: #333;
    font-size: 1.1em;
}

.empty-reset-btn {
    margin-top: 15px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #111;
    border-radius: 6px;
    color: #111;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: 0.2s;
}

.empty-reset-btn:hover {
    background: #111;
    color: #fff;
}

.store-hours-wrapper {
    margin: 10px 0 15px 0;
}

.store-hours-wrapper details>summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 0.95em;
    user-select: none;
}

.store-hours-wrapper details>summary::-webkit-details-marker {
    display: none;
}

.open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 0.95em;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.open.now {
    color: #27ae60;
}

.open.closed {
    color: #c0392b;
}

.open.now::before,
.open.closed::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.open.now::before {
    background-color: #27ae60;
}

.open.closed::before {
    background-color: #c0392b;
}

.arrow {
    font-size: 0.8em;
    transition: transform 0.2s ease;
}

.store-hours-wrapper details[open] .arrow {
    transform: rotate(180deg);
}

.hours-dropdown {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    list-style: none;
    font-size: 0.9em;
    border: 1px solid #eee;
    animation: fadeIn 0.3s ease;
}

.hours-dropdown li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    color: #555;
    border-bottom: 1px dashed #eee;
}

.hours-dropdown li:last-child {
    border-bottom: none;
}

.hours-dropdown li.today {
    font-weight: bold;
    color: #111;
}

.store-search-wrapper {
    margin-bottom: 10px;
    position: relative;
}

.store-search-input {
    width: 100%;
    padding: 12px;
    padding-left: 35px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes markerBounce {

    0%,
    100% {
        transform: translateY(0) scale(1.3);
    }

    50% {
        transform: translateY(-15px) scale(1.3);
    }
}

@media (min-width: 769px) {
    .cosselie-stores-controls {
        position: sticky;
        top: 70px;
        align-self: flex-start;
    }

    .store-media {
        flex: 0 0 46%;
    }

    .store-info {
        flex: 0 0 24%;
    }

    .store-thumbs {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {

    .cosselie-stores-wrapper {
        flex-direction: column;
        display: flex;
    }

    .cosselie-stores-controls,
    .cosselie-stores-map-wrapper,
    .cosselie-stores-map {
        width: 100% !important;
        min-width: 100%;
    }

    .cosselie-stores-map,
    #cosselie-map {
        height: 400px;
        min-height: 400px;
    }

    .store-card {
        flex-direction: column;
    }

    .store-middle {
        flex-direction: column;
    }

    .hours-dropdown {
        margin: 0;
    }

    .store-info {
        width: 100%;
    }

    .store-thumbs {
        justify-content: space-between;
    }

    .store-gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .store-gallery-arrow-prev {
        left: 8px;
    }

    .store-gallery-arrow-next {
        right: 8px;
    }
}