.moxie-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.moxie-location-card {
    position: relative;
    height: 460px;
    perspective: 1200px;
    cursor: pointer;
    outline: none;
}

.moxie-location-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform .65s cubic-bezier(.2,.7,.2,1);
    transform-style: preserve-3d;
}

.moxie-location-card:hover .moxie-location-card-inner,
.moxie-location-card:focus .moxie-location-card-inner,
.moxie-location-card.is-flipped .moxie-location-card-inner {
    transform: rotateY(180deg);
}

.moxie-location-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.moxie-location-front {
    display: flex;
    align-items: flex-end;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #2f3740;
}

.moxie-location-front::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.58) 22%, rgba(0,0,0,.18) 52%, rgba(0,0,0,0) 82%);
}

.moxie-location-front-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 28px 24px;
}

.moxie-location-title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.moxie-location-flip-hint {
    display: inline-block;
    margin-top: 10px;
    color: rgba(255,255,255,.88);
    font-size: .85rem;
}

.moxie-location-front {
    z-index: 2;
    pointer-events: auto;
}

.moxie-location-back {
    z-index: 1;
    transform: rotateY(180deg);
    background: #fff;
    border: 1px solid #e6e6e6;
    color: #7c7c7c;
    pointer-events: none;
}

/* Make the visible face the only hit-testing layer. This avoids transformed
   front faces intercepting clicks on links lower down the back of the card. */
.moxie-location-card:hover .moxie-location-front,
.moxie-location-card:focus-within .moxie-location-front,
.moxie-location-card.is-flipped .moxie-location-front {
    z-index: 1;
    pointer-events: none;
}

.moxie-location-card:hover .moxie-location-back,
.moxie-location-card:focus-within .moxie-location-back,
.moxie-location-card.is-flipped .moxie-location-back {
    z-index: 3;
    pointer-events: auto;
}

.moxie-location-back-scroll {
    pointer-events: auto;
}

.moxie-location-back-scroll {
    position: relative;
    z-index: 5;
    height: 100%;
    overflow-y: auto;
    padding: 22px 22px;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
    font-size: .91rem;
    line-height: 1.38;
    color: #7c7c7c;
}

.moxie-location-back-title {
    margin: 0 0 10px;
    font-size: 1.22rem;
    line-height: 1.18;
    color: #7c7c7c;
}

.moxie-location-row,
.moxie-location-section {
    margin: 0 0 11px;
    line-height: 1.38;
    color: #7c7c7c;
}

.moxie-location-row strong,
.moxie-location-section h4 {
    display: block;
    margin: 0 0 2px;
    color: #7c7c7c;
}

.moxie-location-section h4 {
    font-size: .93rem;
    line-height: 1.3;
}

.moxie-location-holiday {
    margin-bottom: 13px;
    padding-bottom: 11px;
    border-bottom: 1px solid #ececec;
}

.moxie-location-card a.moxie-location-link,
.moxie-location-card a.moxie-location-link:visited {
    position: relative;
    z-index: 4;
    display: inline-block;
    color: #d55759 !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
    cursor: pointer;
    pointer-events: auto;
    transition: opacity .2s ease;
}

.moxie-location-card a.moxie-location-link:hover,
.moxie-location-card a.moxie-location-link:focus {
    color: #d55759 !important;
    opacity: .72;
}

.moxie-location-card:focus-visible {
    border-radius: 14px;
    box-shadow: 0 0 0 3px rgba(0,0,0,.18);
}

@media (max-width: 767px) {
    .moxie-locations-grid {
        grid-template-columns: 1fr;
    }

    .moxie-location-card {
        height: 440px;
    }

    .moxie-location-back-scroll {
        padding: 20px;
        font-size: .9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .moxie-location-card-inner {
        transition: none;
    }
}

/* Location Contact Details accordion */
.moxie-location-contact-accordion {
    width: 100%;
    border-top: 1px solid #e7e7e7;
    color: #7c7c7c;
}

.moxie-location-contact-item {
    border-bottom: 1px solid #e7e7e7;
}

.moxie-location-contact-heading {
    margin: 0;
    padding: 0;
    font: inherit;
}

.moxie-location-contact-trigger {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 18px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #7c7c7c;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: color .2s ease, opacity .2s ease;
}

.moxie-location-contact-trigger:hover,
.moxie-location-contact-trigger:focus-visible,
.moxie-location-contact-trigger[aria-expanded="true"] {
    color: #d55759;
    background: transparent;
}

.moxie-location-contact-trigger:focus-visible {
    outline: 2px solid rgba(213, 87, 89, .45);
    outline-offset: 3px;
}

.moxie-location-contact-name {
    flex: 1 1 auto;
}

.moxie-location-contact-icon {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.moxie-location-contact-icon::before,
.moxie-location-contact-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform .25s ease, opacity .25s ease;
}

.moxie-location-contact-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.moxie-location-contact-trigger[aria-expanded="true"] .moxie-location-contact-icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
}

.moxie-location-contact-panel[hidden] {
    display: none;
}

.moxie-location-contact-panel-inner {
    padding: 0 2px 18px;
}

.moxie-location-contact-detail + .moxie-location-contact-detail {
    margin-top: 8px;
}

.moxie-location-contact-label {
    display: block;
    margin-bottom: 1px;
    color: #7c7c7c;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.35;
}

.moxie-location-contact-link,
.moxie-location-contact-link:visited {
    color: #d55759 !important;
    font-size: .95rem;
    line-height: 1.45;
    text-decoration: none;
    word-break: break-word;
    transition: opacity .2s ease;
}

.moxie-location-contact-link:hover,
.moxie-location-contact-link:focus {
    color: #d55759 !important;
    opacity: .72;
}

.moxie-location-contacts-empty {
    color: #7c7c7c;
}
