/* ===== LOCATION PAGES (locations/*.html) =====
   Shared by all four gym pages. Moved out of per-page inline <style> blocks
   so the pages stop drifting apart; the refresh + embedded-checkout styles
   live at the bottom. Base location components (hero, info cards, trial card)
   are still in css/styles.css. */

/* Enhanced Tour Form Styling */
.location-tour {
    background: #0f0f0f;
    padding: 80px 0;
}

.tour-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.tour-text h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 900;
}

.tour-text p {
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.tour-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tour-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 500;
}

.tour-feature i {
    color: #e01f26;
    font-size: 1.2rem;
    width: 20px;
}

.tour-form {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(224, 31, 38, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tour-form h3 {
    color: #e01f26;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.tour-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.tour-form .form-group {
    margin-bottom: 20px;
}

.tour-form .form-group input,
.tour-form .form-group select,
.tour-form .form-group textarea {
    width: 100%;
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.tour-form .form-group input:focus,
.tour-form .form-group select:focus,
.tour-form .form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: #e01f26;
    box-shadow: 0 0 0 3px rgba(224, 31, 38, 0.2);
}

.tour-form .form-group input::placeholder,
.tour-form .form-group textarea::placeholder {
    color: #888;
    font-weight: 400;
}

.tour-form .form-group select {
    cursor: pointer;
}

.tour-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.tour-form .btn-full {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #e01f26, #c01a20);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(224, 31, 38, 0.3);
}

.tour-form .btn-full:hover {
    background: linear-gradient(135deg, #c01a20, #a01218);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 31, 38, 0.4);
}

.tour-form .btn-full:active {
    transform: translateY(0);
}

/* Date input styling for better visibility */
.tour-form input[type="date"] {
    color-scheme: dark;
}

.tour-form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}


/* Mobile responsive */
@media (max-width: 768px) {
    .tour-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tour-features {
        grid-template-columns: 1fr;
    }

    .tour-form {
        padding: 30px 20px;
    }

    .tour-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tour-text h2 {
        font-size: 2rem;
    }

    .map-image {
        height: 250px;
    }

    .map-content h4 {
        font-size: 1.2rem;
    }

    .map-content p {
        font-size: 0.9rem;
    }
}

/* Testimonials Section Styling */
.testimonials-section {
    background: #0f0f0f;
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-video-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(224, 31, 38, 0.2);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%; /* 9:16 aspect ratio for YouTube Shorts */
    background: #000;
    overflow: hidden;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.video-placeholder:hover img {
    opacity: 0.8;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(224, 31, 38, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
    background: #e01f26;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button i {
    margin-left: 5px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.testimonial-video-card h3 {
    color: white;
    font-size: 1.3rem;
    margin: 20px 20px 10px;
}

.testimonial-video-card p {
    color: #999;
    padding: 0 20px 20px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .play-button {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/* Photo Gallery Carousel Styles */
.location-gallery {
    background: #1a1a1a;
    padding: 80px 0;
}

.location-gallery .section-title {
    text-align: center;
    color: white;
    margin-bottom: 10px;
}

.location-gallery .section-subtitle {
    text-align: center;
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.gallery-carousel {
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    width: 100%;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: 15px;
    background: #000;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 30px 20px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(224, 31, 38, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.carousel-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #444;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.carousel-indicator.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

.carousel-indicator:hover {
    background: #666;
}

@media (max-width: 768px) {
    .carousel-slide img {
        height: 400px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-nav.prev {
        left: 10px;
    }

    .carousel-nav.next {
        right: 10px;
    }

    .slide-caption {
        font-size: 1rem;
        padding: 20px 15px 15px;
    }
}

/* ===== REFRESH + EMBEDDED CHECKOUT ===== */

/* Hero: each gym shows its own photo instead of the shared default. */
.location-hero { min-height: 72vh; }
.location-hero.hero-everett::before { background-image: url('../img/locations/Everett.webp'); }
.location-hero.hero-renton::before { background-image: url('../img/locations/Renton.webp'); }
.location-hero.hero-marysville::before { background-image: url('../img/locations/Marysville.webp'); }
.location-hero.hero-seattle::before { background-image: url('../img/locations/Seattle.webp'); }
.location-hero::before { opacity: 0.38; }
.location-hero .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.35) 0%, rgba(8, 8, 8, 0.85) 100%);
}

.location-hero .highlight-item {
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.5rem 1rem;
}

.location-hero .highlight-item.highlight-access {
    border-color: rgba(224, 31, 38, 0.6);
    background: rgba(224, 31, 38, 0.15);
}

.location-cta .hero-tour-link {
    flex-basis: 100%;
    margin-top: 0.75rem;
    color: var(--light-gray);
    font-size: 0.95rem;
}

.location-cta .hero-tour-link a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Embedded checkout: same engine as /join-now, tighter vertical rhythm. */
.checkout-page.location-join {
    background: var(--bg-darker);
    padding: 4.5rem 0;
    min-height: 0;
    scroll-margin-top: 1rem;
}

.location-join .checkout-header h2 {
    color: var(--white);
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.location-join .checkout-noscript {
    color: var(--light-gray);
    text-align: center;
}

.location-join .checkout-noscript a { color: #ffb3b1; }

/* 3-Day Free Pass: its own section right under the checkout. */
.location-free-pass {
    background: var(--bg-dark);
    padding: 4.5rem 0;
}

.location-free-pass .section-header { margin-bottom: 2rem; }

.free-pass-wrap {
    max-width: 640px;
    margin: 0 auto;
}

.free-pass-wrap .trial-title {
    font-size: 1.5rem;
    line-height: 1.3;
}

.day-pass-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--light-gray);
}

.day-pass-row strong { color: var(--white); }
.day-pass-row i { color: var(--primary-color); margin-right: 0.5rem; }

/* Benefits, now part of About. */
.location-benefits {
    margin-top: 3.5rem;
}

.location-benefits h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.location-benefits .membership-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.location-benefits .benefit-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 1.5rem;
}

/* Renton community photos (was inline styles). */
.location-community { padding: 80px 0; }

.community-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.community-photos img { width: 100%; border-radius: 12px; }

@media (max-width: 991px) {
    .location-benefits .membership-benefits { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .location-hero { min-height: 0; padding: 4rem 0 3rem; }
    .location-hero .location-title { font-size: 2.1rem; }
    .location-hero .location-highlights { gap: 0.6rem; }
    .location-hero .highlight-item { font-size: 0.85rem; padding: 0.4rem 0.8rem; }
    .location-join .checkout-header h2 { font-size: 1.6rem; }
    .checkout-page.location-join,
    .location-free-pass { padding: 3rem 0; }
    .location-benefits .membership-benefits { grid-template-columns: 1fr; }
    .community-photos { grid-template-columns: 1fr; }

    /* Quick info compact: address + phone side by side, hours + email full width, so the checkout isn't
       four stacked cards below the hero on phones. */
    .location-quick-info { padding: 1.5rem 0; }
    .location-quick-info .quick-info-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .location-quick-info .info-card { padding: 1rem 0.75rem; }
    .location-quick-info .info-card:nth-child(n+3) { grid-column: 1 / -1; }
    .location-quick-info .info-icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
    .location-quick-info .info-card h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
    .location-quick-info .info-card p { font-size: 0.85rem; margin-bottom: 0.4rem; overflow-wrap: anywhere; }
    .location-quick-info .info-link { font-size: 0.85rem; }
}
