/**
 * Anytime Fitness Club Selection Styles
 * Styles for the club selector step
 */

/* ========================================
   CLUBS HEADER (Search + Toggle)
   ======================================== */

.af-registration-wrapper .af-clubs-header-container {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 24px !important;
    margin-bottom: 32px !important;
    padding: 0 20px !important;
    flex-wrap: wrap !important;
}

/* ========================================
   ADDRESS SEARCH
   ======================================== */

.af-registration-wrapper .af-address-search-container {
    flex: 1 !important;
    min-width: 300px !important;
    max-width: 600px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.af-registration-wrapper .af-address-search {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.af-registration-wrapper .af-address-search-field {
    position: relative !important;
    width: 100% !important;
}

.af-registration-wrapper .af-address-search-field label {
    font-family: 'Moon', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 20px !important;
    color: #333333 !important;
    top: calc(16px + 2.5px) !important;
    left: 20px !important;
    position: absolute !important;
    transition: .2s !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.af-registration-wrapper .af-address-search-field label.toggle {
    top: calc(-12px - 7px) !important;
    font-size: 12px !important;
}

.af-registration-wrapper .af-address-search input {
    width: 100% !important;
    padding: 16px 50px 16px 20px !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 50px !important;
    font-size: 18px !important;
    font-family: 'Moon', sans-serif !important;
    background-color: var(--af-white) !important;
    color: var(--af-black) !important;
    outline: none !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.af-registration-wrapper .af-address-search input:focus {
    border-color: var(--af-primary) !important;
}

.af-registration-wrapper .af-address-search input::placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

.af-registration-wrapper .af-address-search input:focus+.af-search-icon {
    color: var(--af-primary) !important;
}

.af-registration-wrapper .af-search-icon {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    color: var(--af-gray) !important;
    padding: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s ease !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

.af-registration-wrapper .af-search-icon svg {
    width: 18px !important;
    height: 18px !important;
}

/* ========================================
   QUICK ACTIONS (Cities + Use Location)
   ======================================== */

.af-registration-wrapper .af-clubs-quick-actions {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 10px 20px !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}

.af-registration-wrapper .af-quick-cities {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
}

.af-registration-wrapper .af-quick-cities-label {
    font-family: 'Moon', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.4em !important;
    font-weight: 400 !important;
    color: #333333 !important;
}

.af-registration-wrapper .af-quick-cities-list {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    flex-wrap: wrap !important;
}

#et-boc .et-l .af-registration-wrapper a.af-quick-city-link,
.af-registration-wrapper .af-quick-city-link {
    font-family: 'Moon', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.4em !important;
    font-weight: 400 !important;
    color: #333 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
    padding-bottom: 0 !important;
}

.af-registration-wrapper .af-quick-city-link:hover {
    color: var(--af-purple-highlight) !important;
    text-decoration: underline !important;
}

.af-registration-wrapper .af-quick-cities-separator {
    color: #333333 !important;
    margin: 0 4px 0 0 !important;
}

#et-boc .et-l .af-registration-wrapper button.af-use-location-btn,
.af-registration-wrapper .af-use-location-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: none !important;
    border: none !important;
    text-decoration: underline !important;
    padding: 0 !important;
    cursor: pointer !important;
    font-family: 'Moon', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #333 !important;
    transition: color 0.2s ease !important;
    -webkit-transition: color 0.2s ease !important;
    -moz-transition: color 0.2s ease !important;
    -ms-transition: color 0.2s ease !important;
    -o-transition: color 0.2s ease !important;
}

.af-registration-wrapper .af-use-location-btn:hover {
    color: var(--af-purple-highlight) !important;
}

.af-registration-wrapper .af-use-location-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.af-registration-wrapper .af-use-location-btn svg {
    width: 16px !important;
    height: 16px !important;
    color: #333 !important;
}

/* ========================================
   MAP CONTAINER
   ======================================== */

.af-registration-wrapper .af-map-container {
    margin: 0 20px 32px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, 0.12) !important;
    min-height: 600px !important;
    height: 600px !important;
}

.af-registration-wrapper .af-clubs-map {
    width: 100% !important;
    height: 600px !important;
    background-color: var(--af-gray-light) !important;
}

/* Google Maps InfoWindow Styling (matches club card) */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 10px !important;
    max-width: 300px !important;
    position: relative !important;
    overflow: visible !important;
}

.gm-style .gm-style-iw-d {
    overflow: visible !important;
    max-height: none !important;
}

.gm-style .gm-style-iw-t {
    bottom: 0 !important;
    position: static !important;
}

/* Position close button absolutely over the image */
.gm-style .gm-style-iw-chr {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
    pointer-events: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gm-style .gm-ui-hover-effect {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 11 !important;
    pointer-events: auto !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transition: .2s !important;
    -webkit-transition: .2s !important;
    -moz-transition: .2s !important;
    -ms-transition: .2s !important;
    -o-transition: .2s !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.gm-style .gm-ui-hover-effect:hover {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

.gm-style .gm-ui-hover-effect span {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    background-color: #333 !important;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22/%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22/%3E%3C/svg%3E") !important;
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22/%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22/%3E%3C/svg%3E") !important;
}

/* Ensure club card styles apply inside info window */
.gm-style .af-club-card {
    background: var(--af-white) !important;
    border-radius: 10px !important;
    box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, 0.12) !important;
    margin: 0 !important;
    overflow: visible !important;
    width: 330px !important;
    max-width: 330px !important;
    position: relative !important;
    /* Remove hover effect for info window */
    transform: none !important;
    box-sizing: border-box !important;
}

/* Remove hover effect for info window cards */
.af-registration-wrapper .gm-style .af-club-card:hover {
    transform: none !important;
    box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, 0.12) !important;
}

.gm-style .af-club-card-image {
    width: 100% !important;
    height: 180px !important;
    background: linear-gradient(135deg, #440099 0%, #7049aa 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    position: relative !important;
    min-height: 180px !important;
}

.gm-style .af-club-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: block !important;
    will-change: transform !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
}

.gm-style .af-club-card-image img.af-club-card-placeholder {
    width: 150px !important;
    height: auto !important;
    object-fit: contain !important;
    opacity: 0.5 !important;
}

.gm-style .af-club-card-content {
    padding: 20px !important;
}

.gm-style .af-club-card-promotion {
    background: linear-gradient(90deg, #d222d4, #f17d00) !important;
    color: var(--af-white) !important;
    padding: 10px 20px !important;
    font-family: 'Moon', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.gm-style .af-club-card-city {
    font-family: 'Moon', sans-serif !important;
    font-weight: 900 !important;
    font-size: 36px !important;
    color: var(--af-primary) !important;
    line-height: 1.2 !important;
}

.gm-style .af-club-card-address {
    font-family: 'Moon', sans-serif !important;
    font-size: 18px !important;
    color: var(--af-dark-gray) !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.gm-style .af-club-card-distance {
    font-family: 'Moon', sans-serif !important;
    font-size: 14px !important;
    color: var(--af-primary) !important;
    font-weight: 700 !important;
    margin-top: 8px !important;
}

.gm-style .af-club-card-distance.visible {
    display: block !important;
}

.af-registration-wrapper .gm-style .af-club-card-btn {
    width: 100% !important;
    margin-top: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* ========================================
   CLUB CARDS GRID
   ======================================== */

.af-registration-wrapper .af-clubs-cards-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    padding: 0 20px !important;
    transition: opacity 0.2s ease !important;
}

.af-registration-wrapper .af-clubs-cards-container.af-view-hidden {
    display: none !important;
}

.af-registration-wrapper .af-map-container {
    transition: opacity 0.2s ease !important;
}

.af-registration-wrapper .af-map-container.af-view-hidden {
    display: none !important;
}

.af-registration-wrapper .af-load-more-container {
    transition: opacity 0.2s ease !important;
}

.af-registration-wrapper .af-load-more-container.af-view-hidden {
    display: none !important;
}

/* ========================================
   LOADING STATE
   ======================================== */

.af-registration-wrapper .af-clubs-loading {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 60px 20px !important;
    color: var(--af-gray) !important;
}

.af-registration-wrapper .af-clubs-loading-spinner {
    width: 40px !important;
    height: 40px !important;
    border: 4px solid var(--af-gray-light) !important;
    border-top-color: var(--af-primary) !important;
    border-radius: 50% !important;
    animation: af-spin 1s linear infinite !important;
    margin-bottom: 16px !important;
}

@keyframes af-spin {
    to {
        transform: rotate(360deg);
    }
}

.af-registration-wrapper .af-clubs-loading p {
    font-family: 'Moon', sans-serif !important;
    font-size: 16px !important;
    margin: 0 !important;
}

/* ========================================
   CLUB CARD
   ======================================== */

.af-registration-wrapper .af-club-card {
    background: var(--af-white) !important;
    border-radius: 10px !important;
    box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, 0.12) !important;
    /* overflow: hidden !important; */
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
}

.af-registration-wrapper .af-club-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 6px 6px 16px 0px rgba(0, 0, 0, 0.16) !important;
}

/* Club Card Image */
.af-registration-wrapper .af-club-card-image {
    width: 100% !important;
    height: 180px !important;
    background: linear-gradient(135deg, #440099 0%, #7049aa 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-radius: 10px 10px 0 0 !important;
    -webkit-border-radius: 10px 10px 0 0 !important;
    -moz-border-radius: 10px 10px 0 0 !important;
    -ms-border-radius: 10px 10px 0 0 !important;
    -o-border-radius: 10px 10px 0 0 !important;
    position: relative !important;
    min-height: 180px !important;
}

.af-registration-wrapper .af-club-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: block !important;
    will-change: transform !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
}

.af-registration-wrapper .af-club-card-image img.af-club-card-placeholder {
    width: 150px !important;
    height: auto !important;
    object-fit: contain !important;
    opacity: 0.5 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
}

/* Club Card Content */
.af-registration-wrapper .af-club-card-content {
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: space-between !important;
    gap: 20px !important;
}

/* Club Card Info (title + address wrapper) */
.af-registration-wrapper .af-club-card-info {
    display: block !important;
}

/* Promotion Badge */
.af-registration-wrapper .af-club-card-promotion {
    background: linear-gradient(90deg, #d222d4, #f17d00) !important;
    color: var(--af-white) !important;
    padding: 10px 20px !important;
    font-family: 'Moon', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    display: block !important;
}

/* Club City Name */
.af-registration-wrapper .af-club-card-city {
    font-family: 'Moon', sans-serif !important;
    font-weight: 900 !important;
    font-size: 36px !important;
    color: var(--af-primary) !important;
    line-height: 1.2 !important;
}

/* Club Address */
.af-registration-wrapper .af-club-card-address {
    font-family: 'Moon', sans-serif !important;
    font-size: 18px !important;
    color: var(--af-dark-gray) !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.4 !important;
}

/* Club Distance */
.af-registration-wrapper .af-club-card-distance {
    font-family: 'Moon', sans-serif !important;
    font-size: 14px !important;
    color: var(--af-primary) !important;
    font-weight: 700 !important;
    display: none !important;
    position: absolute;
    top: -13px;
    background: #fff !important;
    right: 20px;
    padding: 5px 10px !important;
    border-radius: 100px !important;
    -webkit-border-radius: 100px !important;
    -moz-border-radius: 100px !important;
    -ms-border-radius: 100px !important;
    -o-border-radius: 100px !important;
}

.af-registration-wrapper .af-club-card-distance.visible {
    display: block !important;
}

/* Club Card Button */
.af-registration-wrapper .af-club-card-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: auto auto 0 auto !important;
    margin-top: auto !important;
}

.af-registration-wrapper .af-club-card-btn svg {
    flex-shrink: 0 !important;
}

@media (min-width: 768px) {
    .af-registration-wrapper .af-club-card-btn {
        width: 90% !important;
    }
}

/* Club Card CTA Subtext */
.af-registration-wrapper .af-club-card-cta-subtext {
    text-align: center !important;
    font-size: 14px !important;
    color: #666 !important;
    margin: 8px auto 0 auto !important;
    padding: 0 !important;
    font-family: 'Moon', sans-serif !important;
}

/* ========================================
   LOAD MORE CONTAINER
   ======================================== */

.af-registration-wrapper .af-load-more-container {
    text-align: center !important;
    padding: 32px 20px !important;
}

.af-registration-wrapper .af-load-more-container .af-btn-secondary svg {
    margin-left: 10px !important;
    margin-right: 0 !important;
}

.af-registration-wrapper .af-load-more-container .af-btn-secondary {
    box-shadow: 0 0 #0000,
        0 0 #0000,
        0 4px 10px 0 rgba(0, 0, 0, .2) !important;
}

/* ========================================
   ERROR STATE
   ======================================== */

.af-registration-wrapper .af-clubs-error {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    padding: 60px 20px !important;
    color: var(--af-red) !important;
    font-family: 'Moon', sans-serif !important;
}

/* ========================================
   NO RESULTS STATE
   ======================================== */

.af-registration-wrapper .af-clubs-no-results {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    padding: 40px 20px !important;
    color: var(--af-gray) !important;
    font-family: 'Moon', sans-serif !important;
}

/* ========================================
   VIEW TOGGLE (List/Map)
   ======================================== */

.af-registration-wrapper .af-view-toggle-container {
    display: flex !important;
    align-items: center !important;
    font-size: 0 !important;
    background: #fff !important;
    outline: 2px solid var(--af-primary) !important;
    border: 6px solid #fff !important;
    border-radius: 100px !important;
    width: fit-content !important;
    transform: translatey(2px) !important;
    -webkit-transform: translatey(2px) !important;
    -moz-transform: translatey(2px) !important;
    -ms-transform: translatey(2px) !important;
    -o-transform: translatey(2px) !important;
}

.af-registration-wrapper .af-view-toggle {
    background-color: var(--af-white) !important;
    border-radius: 50px !important;
    padding: 10px 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: 200px !important;
    line-height: 1.4em !important;
    font-size: 16px !important;
}

.af-registration-wrapper .af-view-toggle:last-child {
    margin-left: 10px !important;
}

.af-registration-wrapper .af-view-toggle .af-selector-content {
    text-align: center !important;
    flex: 1 1 auto !important;
}

.af-registration-wrapper .af-view-toggle:hover {
    background-color: var(--af-gray-light) !important;
}

.af-registration-wrapper .af-view-toggle.selected {
    background-color: var(--af-primary) !important;
}

.af-registration-wrapper .af-view-toggle.selected .af-selector-content {
    color: var(--af-white) !important;
}

.af-registration-wrapper .af-view-toggle .af-selector-title {
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 1.4em !important;
    color: var(--af-black) !important;
}

.af-registration-wrapper .af-view-toggle.selected .af-selector-title {
    color: var(--af-white) !important;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 980px) {
    .af-registration-wrapper .af-clubs-cards-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .af-registration-wrapper .af-view-toggle-container {
        display: flex !important;
        width: calc(100% - 4px) !important;
        margin: 0 auto !important;
    }

    .af-registration-wrapper .af-view-toggle-container .af-view-toggle {
        flex: 1 0 !important;
        padding: 10px 20px !important;
    }

    .af-registration-wrapper .af-address-search-container {
        max-width: 100% !important;
    }
}

@media (max-width: 600px) {
    .af-registration-wrapper .af-clubs-cards-container {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .af-registration-wrapper .af-map-container,
    .af-registration-wrapper .af-clubs-map {
        min-height: 400px !important;
        height: 400px !important;
    }

    .gm-style .gm-style-iw-c {
        max-width: 280px !important;
    }

    .gm-style .af-club-card-promotion {
        border-radius: 10px 10px 0 0 !important;
        -webkit-border-radius: 10px 10px 0 0 !important;
        -moz-border-radius: 10px 10px 0 0 !important;
        -ms-border-radius: 10px 10px 0 0 !important;
        -o-border-radius: 10px 10px 0 0 !important;
    }

    .af-registration-wrapper .af-address-search input {
        padding: 14px 45px 14px 16px !important;
        font-size: 14px !important;
    }

    .af-registration-wrapper .af-address-search label {
        top: calc(12px + 2.5px) !important;
    }

    .af-registration-wrapper .af-club-card-city {
        font-size: 20px !important;
    }

    .af-registration-wrapper .af-club-card-image {
        height: 150px !important;
    }

    .af-registration-wrapper .af-clubs-header-container {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .af-registration-wrapper .af-address-search-container {
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .af-registration-wrapper .af-view-toggle-container {
        width: calc(100% - 4px) !important;
        justify-content: center !important;
    }

    .af-registration-wrapper .af-view-toggle-container .af-view-toggle {
        padding: 10px !important;
    }

    /* Hide image in map popup below 600px */
    .gm-style .af-club-card-image {
        display: none !important;
    }

    .gm-style .af-club-card {
        width: 280px !important;
        max-width: 280px !important;
    }

    /* Adjust close button position when image is hidden */
    .gm-style .gm-ui-hover-effect {
        top: 4px !important;
        right: 4px !important;
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
    }

    .gm-style .af-club-card-content {
        padding: 16px !important;
    }

    .gm-style .af-club-card-city {
        font-size: 24px !important;
        margin-top: 0 !important;
    }

    .gm-style .af-club-card-address {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .af-registration-wrapper .af-view-toggle-container {
        flex-direction: column !important;
        width: 100% !important;
        border-radius: 25px !important;
    }

    .af-registration-wrapper .af-view-toggle {
        width: 100% !important;
    }

    .af-registration-wrapper .af-view-toggle:last-child {
        margin-left: 0 !important;
        margin-top: 5px !important;
    }

    .af-registration-wrapper .af-clubs-cards-container,
    .af-registration-wrapper .af-clubs-header-container {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .af-registration-wrapper .af-map-container {
        margin-left: 5px !important;
        margin-right: 5px !important;
    }

    .af-registration-wrapper .af-clubs-quick-actions {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

@media (max-width: 340px) {
    .af-registration-wrapper .af-search-icon {
        display: none !important;
    }

    /* Map popup smaller width below 340px */
    .gm-style .gm-style-iw-c {
        max-width: 250px !important;
    }

    .gm-style .af-club-card {
        width: 250px !important;
        max-width: 250px !important;
    }

    /* Ensure close button stays within bounds */
    .gm-style .gm-ui-hover-effect {
        top: 4px !important;
        right: 4px !important;
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
    }
}

/* Hide Google Maps info window arrow/tail */
.gm-style .gm-style-iw-tc::after {
    display: none !important;
}

/* Google Maps gesture handling overlay (ctrl+scroll message) */
.gm-style-moc {
    background-color: rgba(0, 0, 0, .59) !important;
    pointer-events: none;
    text-align: center !important;
    -webkit-transition: opacity ease-in-out !important;
    transition: opacity ease-in-out !important;
}

body.et-db #et-boc .et-l .gm-style-mot,
.gm-style-mot {
    color: white !important;
}