/**
 * Single Location Styles
 * Synergy Health Theme
 * Contains styles for single location pages
 */

/* ========================================
   LOCATION GALLERY SCROLL
   ======================================== */

.location-gallery-scroll {
    width: 100%;
    overflow: hidden;
    background-color: var(--off-white);
    padding: var(--spacing-lg) 0;
    position: relative;
}

.location-gallery-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Gallery Pagination Dots */
.location-gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
    padding: 0 var(--spacing-lg);
}

.location-gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray-medium);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.location-gallery-dot:hover {
    background-color: var(--gray-dark);
    transform: scale(1.2);
}

.location-gallery-dot.active {
    background-color: var(--red);
    transform: scale(1.3);
}

.location-gallery-scroll-track {
    display: flex;
    gap: 24px;
    animation: scroll-gallery 60s linear infinite;
    will-change: transform;
}

/* Single image - no animation, centered */
.location-gallery-scroll.single-image .location-gallery-scroll-track {
    animation: none;
    justify-content: center;
}

/* Pause animation on hover */
.location-gallery-scroll-track:hover {
    animation-play-state: paused;
}

.location-gallery-item {
    flex: 0 0 auto;
    width: 450px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Scroll animation - moves exactly half the distance since we duplicated images */
@keyframes scroll-gallery {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ========================================
   SINGLE LOCATION HERO ADJUSTMENTS
   ======================================== */

.single-location-hero {
    margin-bottom: 0;
}

/* ========================================
   FEATURED IMAGE
   ======================================== */

.single-post-featured-image-container {
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-lg) 0;
    background: var(--off-white);
}

.single-post-featured-image-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.single-post-featured-image {
    width: 100%;
    max-height: 500px;
    border-radius: var(--radius-lg);
    display: block;
    object-fit: cover;
}

/* ========================================
   HOURS SECTION
   ======================================== */

.location-hours-section {
    width: 100%;
    padding: 10px 0;
}

.location-hours-container {
    max-width: 1440px;
    background: var(--light-green);
    border-radius: 10px;
    margin: 20px auto;
    padding: 40px 20px;
}

.location-hours-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 20px;
}

.location-hours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 20px;
}

.location-hours-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.location-hours-column {
    padding: 0;
    min-width: 0;
}

.location-hours-column-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--red);
    margin: 0 0 var(--spacing-lg) 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-divider);
}

.location-hours-list {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dark);
}

.location-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--gray-divider);
}

.location-hours-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.location-hours-row strong {
    font-weight: 600;
    color: var(--text-dark);
    flex: 0 0 auto;
    margin-right: var(--spacing-sm);
}

.location-hours-row span {
    text-align: right;
    color: var(--text-dark);
}

/* ========================================
   HOURS & WHAT TO EXPECT COMBINED (1 hour set)
   ======================================== */

.location-hours-expect-combined {
    width: 100%;
    padding: 10px 0;
}

.location-hours-expect-container {
    max-width: 1440px;
    margin: 20px auto;
    padding: 40px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.location-hours-expect-left {
    min-width: 0;
}

.location-hours-expect-right {
    min-width: 0;
}

.location-hours-container-sidebar {
    margin: 0;
    border-radius: 10px;
}

/* ========================================
   WHAT TO EXPECT SECTION (standalone, 2+ hour sets)
   ======================================== */

.location-what-to-expect-section {
    width: 100%;
    padding: 10px 0;
}

.location-what-to-expect-container {
    max-width: 1440px;
    margin: 20px auto;
    padding: 40px 40px;
}

/* ========================================
   WHAT TO EXPECT SHARED STYLES
   ======================================== */

.location-what-to-expect-title {
    color: var(--text-dark);
    margin: 0 0 20px 0;
}

.location-what-to-expect-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.location-what-to-expect-content h2,
.location-what-to-expect-content h3,
.location-what-to-expect-content h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.location-what-to-expect-content p {
    margin-bottom: 16px;
}

.location-what-to-expect-content ul,
.location-what-to-expect-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.location-what-to-expect-content li {
    margin-bottom: 8px;
}

.location-what-to-expect-content a {
    color: var(--teal);
    text-decoration: underline;
}

.location-what-to-expect-content a:hover {
    color: var(--red);
}

/* ========================================
   LOCATION CONTENT LAYOUT
   ======================================== */

.single-location-content {
    padding: 60px 0;
}

.single-location-content-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
}

/* ========================================
   SIDEBAR STYLES
   ======================================== */

.location-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    order: 2;
}

.location-contact-card,
.location-hours-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.location-contact-card h3,
.location-hours-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--teal);
}

.location-contact-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.location-contact-item:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.location-contact-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light, #666);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-contact-value {
    display: block;
    font-size: 16px;
    color: var(--text-dark, #333);
    text-decoration: none;
}

.location-contact-value:hover {
    color: var(--teal);
}

address.location-contact-value {
    font-style: normal;
}

/* Button Styles */
.location-booking-btn,
.location-directions-btn,
.location-cta-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.location-booking-btn {
    background-color: var(--red);
    color: var(--white);
    border: 3px solid var(--red);
}

.location-booking-btn:hover {
    background-color: var(--red-dark, #C23B3B);
    border-color: var(--red-dark, #C23B3B);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.location-booking-btn:active {
    transform: translateY(0);
}

.location-booking-btn:focus {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

.location-directions-btn {
    background-color: transparent;
    color: var(--teal);
    border: 3px solid var(--teal);
}

.location-directions-btn:hover {
    background-color: var(--teal);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(98, 164, 152, 0.3);
}

.location-directions-btn:active {
    transform: translateY(0);
}

.location-directions-btn:focus {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
}

.location-cta-btn {
    background-color: var(--teal);
    color: var(--white);
    border: 3px solid var(--teal);
}

.location-cta-btn:hover {
    background-color: var(--teal-dark);
    border-color: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(98, 164, 152, 0.3);
}

.location-cta-btn:active {
    transform: translateY(0);
}

.location-cta-btn:focus {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
}

.location-cta-btn:hover {
    background-color: var(--teal-dark, #4A8E86);
    border-color: var(--teal-dark, #4A8E86);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(98, 164, 152, 0.3);
}

.location-hours-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dark, #333);
}

.location-hours-content p {
    margin: 0 0 8px 0;
}

.location-hours-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   MAIN CONTENT STYLES
   ======================================== */

.location-main-content {
    order: 1;
}

.location-main-content .entry-content {
    margin-bottom: 40px;
}

.location-services-section {
    margin-bottom: 40px;
}

.location-services-section h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--teal);
}

.location-services-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark, #333);
}

.location-map-section {
    margin-top: 40px;
}

.location-map-section h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--teal);
}

.single-location-map {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.location-hours-container {
    margin: 20px auto;
    padding: 40px 20px;
}

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

/* Tablet Landscape */
@media (max-width: 1024px) {
    .location-hours-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .single-location-content-wrapper {
        grid-template-columns: 1fr 280px;
        gap: 40px;
    }
    
    .location-gallery-item {
        width: 400px;
        height: 267px;
    }

}

/* Tablet Portrait */
@media (max-width: 768px) {
    .single-post-featured-image-container {
        padding: 50px 20px 0;
    }
    
    .location-gallery-scroll {
        padding: 40px 0;
    }
    
    .location-gallery-item {
        width: 350px;
        height: 233px;
    }
    
    .location-gallery-nav {
        width: 40px;
        height: 40px;
    }
    
    .location-gallery-nav.prev {
        left: 10px;
    }
    
    .location-gallery-nav.next {
        right: 10px;
    }
    
    .location-hours-expect-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .location-hours-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .location-hours-column {
        padding: 24px;
    }
    
    .single-location-content {
        padding: 40px 0;
    }
    
    .single-location-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .location-sidebar {
        order: 1;
    }
    
    .location-main-content {
        order: 2;
    }
    
    .single-location-map {
        height: 350px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .single-post-featured-image-container {
        padding: 40px 16px 0;
    }
    
    .location-gallery-scroll {
        padding: 30px 0;
    }
    
    .location-gallery-item {
        width: 320px;
        height: 213px;
    }
    
    .location-gallery-nav {
        width: 36px;
        height: 36px;
    }
    
    .location-gallery-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .location-hours-section {
        padding: 0;
    }
    
    .location-hours-title {
        font-size: 20px;
        margin-bottom: 20px;
        margin-left: 20px;
    }
    
    .location-hours-grid {
        gap: 20px;
    }
    
    .location-hours-column {
        padding: 20px;
    }
    
    .location-hours-column-title {
        font-size: 18px;
    }
    
    .location-hours-list {
        font-size: 14px;
    }
    
    .location-hours-expect-combined {
        padding: 0;
    }

    .location-hours-expect-container {
        padding: 20px 16px;
        gap: 24px;
    }
    
    .location-what-to-expect-section {
        padding: 0;
    }
    
    .location-what-to-expect-container {
        padding: 30px 20px;
    }
    
    .location-what-to-expect-title {
        font-size: 22px;
    }
    
    .location-what-to-expect-content {
        font-size: 15px;
    }
    
    .single-location-content {
        padding: 30px 0;
    }
    
    .single-location-content-wrapper {
        padding: 0 16px;
        gap: 30px;
    }
    
    .location-contact-card,
    .location-hours-card {
        padding: 20px;
    }
    
    .location-services-section h2,
    .location-map-section h2 {
        font-size: 24px;
    }
    
    .single-location-map {
        height: 300px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .location-gallery-scroll-track {
        animation: none;
    }
    
    .location-gallery-item {
        transition: none;
    }
    
    .location-gallery-item:hover {
        transform: none;
    }
    
    .location-booking-btn:hover,
    .location-directions-btn:hover,
    .location-cta-btn:hover {
        transform: none;
    }
}
