/* HTC Club Gallery Frame */
.htc-club-gallery {
    position: relative;
    overflow: visible !important;
}

.htc-club-gallery::after {
    content: "";
    position: absolute;

    top: -16%;
    left: -5%;
    right: -5%;
    bottom: -9%;

    background-image: url("https://howstheclub.com/wp-content/uploads/2026/10/border.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;

    pointer-events: none;
    z-index: 10;
}
/* Keep carousel arrows above decorative frame */
.htc-club-gallery .elementor-swiper-button {
    z-index: 20 !important;
}
/* Move carousel arrows outside decorative frame */
.htc-club-gallery .elementor-swiper-button-prev {
    left: -45px !important;
}

.htc-club-gallery .elementor-swiper-button-next {
    right: -45px !important;
}
/* Soft pink wash over club photos */
.htc-club-gallery .swiper-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(225, 170, 180, 0.25);
    pointer-events: none;
    z-index: 2;
}

.htc-club-gallery .swiper-slide {
    position: relative;
}

/* HTC - Fix oversized image headings */
.htc-title-image,
.htc-title-image img {
    width: 297px !important;
    max-width: 100% !important;
    height: auto !important;
    flex-grow: 0 !important;
}

/* Keep HTC headings above image borders */
.htc-title-image {
    position: relative !important;
    z-index: 50 !important;
}


/* HOW'S THE CLUB — LOCATION ACCORDION */

/* Overall accordion */
.htc-location-accordion {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual state sections */
.htc-location-state {
    border: 1.5px solid rgba(255,255,255,0.9);
    border-radius: 16px;
    background: rgba(255,240,250,0.35);
    box-shadow: 0 3px 12px rgba(142,46,112,0.10);
    overflow: hidden;
}

/* State heading */
.htc-location-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    list-style: none;
    background: linear-gradient(
        135deg,
        #d996c3 0%,
        #bd75ac 50%,
        #dba5cc 100%
    );
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: background 0.3s ease;
}

.htc-location-heading::-webkit-details-marker {
    display: none;
}

.htc-location-heading:hover {
    background: linear-gradient(
        135deg,
        #c780b5,
        #a85d99,
        #d092bf
    );
}

/* Dropdown arrow */
.htc-location-arrow {
    font-size: 25px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.htc-location-state[open] .htc-location-arrow {
    transform: rotate(180deg);
}

/* Expanded state content */
.htc-location-content {
    padding: 28px;
    background: rgba(255,250,254,0.55);
}

/* City sections */
.htc-location-city {
    margin-bottom: 30px;
}

.htc-location-city:last-child {
    margin-bottom: 0;
}

/* City headings */
.htc-location-city h3 {
    color: #942b78;
    font-size: 25px;
    font-weight: 700;
    margin: 0 0 18px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(170,83,142,0.25);
}

/* Club card grid */
.htc-location-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* Club cards */
.htc-location-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none !important;
    border-radius: 14px;
    background: rgba(255,255,255,0.75);
    border: 2px solid rgba(225,164,205,0.75);
    box-shadow: 0 4px 12px rgba(150,70,125,0.10);
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.htc-location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(150,70,125,0.22);
}

/* Club images */
.htc-location-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Placeholder when no featured image exists */
.htc-location-placeholder {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(240,205,230,0.6);
    color: #a45c91;
    font-size: 14px;
}

/* Club names */
.htc-location-club-name {
    display: block;
    padding: 14px 10px;
    color: #982d7c;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

/* Empty state message */
.htc-location-empty {
    margin: 0;
    padding: 25px;
    text-align: center;
    color: #943776;
    font-size: 16px;
    background: rgba(255,255,255,0.5);
    border: 1px dashed rgba(180,100,155,0.4);
    border-radius: 12px;
}

/* Tablet */
@media (max-width: 1024px) {
    .htc-location-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 767px) {
    .htc-location-accordion {
        gap: 10px;
        margin: 20px auto;
    }

    .htc-location-heading {
        padding: 15px 18px;
        font-size: 17px;
    }

    .htc-location-content {
        padding: 16px;
    }

    .htc-location-city h3 {
        font-size: 21px;
    }

    .htc-location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .htc-location-club-name {
        font-size: 13px;
        padding: 10px 7px;
    }
}
