/* ===================================
   FRANCHISE CONTACT MAP BLOCK STYLES
   =================================== */

/* WordPress Block Wrapper - Layer 1 (handles WordPress integration) */
.wp-block-acf-atax-franchise-contact-map .franchise-contact-map-section {
    width: 100%;
    max-width: 100vw;
}

/* Main Section Container - Layer 2 (handles design constraints) */
.franchise-contact-map-section {
    background-color: var(--white);
    width: 100%;
    position: relative;
    padding: 32px 20px 80px 20px; /* Desktop: top 80px, sides 20px, bottom 0px */
    font-family: 'Montserrat', sans-serif;
}

/* Content Container - Layer 3 (handles width constraints) */
.franchise-contact-map-container {
    max-width: 1200px; /* Desktop container width - as requested */
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch; /* Ensure both columns have equal height */
    gap: 93px; 
    padding: 0;
    justify-content: space-between;
    font-family: 'Montserrat', sans-serif;
}

/* Franchise Contact Map Layout - 50/50 Split */
.franchise-contact-map-content-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0; /* Allow flex item to shrink */
    font-family: 'Montserrat', sans-serif;
    width: 50%; /* Force 50% width */
}

.franchise-contact-map-testimonials-right {
    flex: 1; /* Take equal space as content column */
    flex-shrink: 0;
    display: flex; /* Enable flexbox for testimonials stretching */
    align-items: stretch; /* Stretch testimonials to fill container height */
    min-height: 0; /* Allow flex item to shrink */
    font-family: 'Montserrat', sans-serif;
    width: 50%; /* Force 50% width */
}

/* Mascot above title */
.franchise-contact-map-mascot {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 0;
}

.franchise-contact-map-mascot-image {
    max-width: 60px; /* Reasonable mascot size */
    height: auto;
    display: block;
}

/* Franchise Contact Map Typography */
.franchise-contact-map-h1 {
    font-size: 48px; /* Desktop default - main title */
    font-weight: 700;
    line-height: 1.2;
    margin: 0; /* No margin - gap handles spacing */
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

.franchise-contact-map-body-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0; /* No margin - gap handles spacing */
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

/* City Name Styling */
.city-name {
    position: relative;
    display: inline-block;
}

.yellow-underline {
    position: absolute;
    bottom: -8px;
    left: -4px;
    right: -4px;
    height: 4px;
    background: var(--yellow-color);
    border-radius: 50px;
    transform: rotate(-1deg);
    z-index: 1;
    display: block;
}

/* Button container */
.franchise-contact-map-button {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
}

/* Contact Information Section */
.franchise-contact-map-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    font-family: 'Montserrat', sans-serif;
}

.franchise-contact-map-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.franchise-contact-map-contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.franchise-contact-map-contact-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

.franchise-contact-map-address-text,
.franchise-contact-map-hours-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.franchise-contact-map-address-text div,
.franchise-contact-map-hours-text div {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

/* Franchise Contact Map Container */
.franchise-contact-map-map-container {
    width: 100%;
    height: 450px; /* Fixed height for map */
    display: flex;
    align-items: stretch; /* Stretch to fill container height */
    background-color: var(--white, #ffffff);
    border-radius: 12px;
    overflow: hidden;
}

.franchise-contact-map-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Franchise Contact Testimonials Container */
.franchise-contact-map-testimonials-container {
    width: 100%;
    height: 100%; /* Full height of parent */
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Stretch to fill container height */
    background-color: var(--white, #ffffff);
    border-radius: 12px;
    padding: 20px;
    gap: 20px;
}

/* ===================================
   FRANCHISE TESTIMONIALS CAROUSEL STYLES
   =================================== */


/* Carousel Container */
.franchise-testimonials-carousel {
    width: 100%;
    flex: 1; /* Take remaining space */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-family: 'Montserrat', sans-serif;
}

.franchise-carousel-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px; /* Smaller gap for compact layout */
}

.franchise-carousel-viewport {
    overflow: hidden;
    width: 100%;
    flex: 1;
}

.franchise-carousel-track {
    display: flex;
    transition: opacity 300ms ease;
    list-style: none;
    padding: 0;
    margin: 0;
}

.franchise-carousel-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Smaller gap for compact layout */
    align-items: center;
    padding: 0 8px; /* Small padding for better spacing */
}

.franchise-carousel-stars {
    color: #FFC845;
    display: flex;
    gap: 3px; /* Smaller gap for compact layout */
    justify-content: center;
}

.franchise-carousel-quote {
    font-size: 22px; /* Updated to match design */
    line-height: 1.4;
    color: #354477;
    text-align: center;
    max-width: 100%;
    font-weight: 600;
}

.franchise-carousel-meta {
    display: flex;
    align-items: center;
    gap: 12px; /* Smaller gap for compact layout */
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.franchise-carousel-avatar {
    width: 40px; /* Smaller avatar for compact layout */
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.franchise-carousel-name {
    font-weight: 700;
    color: #354477;
    font-size: 14px; /* Smaller font for compact layout */
}

.franchise-carousel-position {
    color: #666;
    font-size: 13px; /* Smaller font for compact layout */
}

.franchise-carousel-divider {
    display: inline-block;
    width: 1px;
    height: 30px; /* Smaller divider for compact layout */
    background: #354477;
    margin: 0 12px; /* Smaller margin for compact layout */
}

.franchise-carousel-logo {
    height: 30px; /* Smaller logo for compact layout */
    max-width: 80px;
    object-fit: contain;
}

/* Carousel Navigation */
.franchise-carousel-arrow {
    width: 32px; /* Smaller arrows for compact layout */
    height: 32px;
    border-radius: 50%;
    border: 2px solid #354477;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.franchise-carousel-arrow:hover {
    background: #FFC845;
    border-color: #FFC845;
}

.franchise-carousel-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.franchise-arrow {
    display: inline-block;
    width: 12px; /* Smaller arrows for compact layout */
    height: 12px;
    background-size: contain;
    background-repeat: no-repeat;
}

.franchise-arrow-left { 
    background-image: url('../../assets/images/arrowleft.svg'); 
}

.franchise-arrow-right { 
    background-image: url('../../assets/images/arrowright.svg'); 
}

.franchise-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px; /* Smaller gap for compact layout */
    margin-top: 8px;
}

.franchise-carousel-dots button {
    width: 5px; /* Smaller dots for compact layout */
    height: 5px;
    border-radius: 50%;
    background: #C9CFDD;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.franchise-carousel-dots button[aria-selected="true"] {
    background: #354477;
}

/* Placeholder text */
.franchise-placeholder-text {
    text-align: center;
    color: #666;
    font-style: italic;
    font-size: 14px;
    margin: 20px 0;
}

/* ===================================
   FRANCHISE CONTACT MAP RESPONSIVE DESIGN - GOLDEN STANDARD
   =================================== */

/* ===================================
   LAPTOP BREAKPOINT (1151px-1600px)
   ===================================
   NO font size changes - same fonts as desktop
   NO layout changes - same layout as desktop
   Only spacing adjustments (gaps, padding)
   =================================== */
@media (max-width: 1600px) {
    .franchise-contact-map-container {
        /* Reduce gaps only - maintain same layout */
        gap: 60px; /* Reduced from 80px */
    }
    
    .franchise-contact-map-content-left {
        /* Adjust max-width for reduced gap */
        max-width: calc(1200px - 561px - 60px - 40px);
    }
}

/* ===================================
   TABLET BREAKPOINT (768px-1150px)
   ===================================
   Columns stack (flex-direction: column)
   Reduced gaps and spacing
   NO font size changes - same fonts as desktop
   Layout transformation happens here
   =================================== */
@media (max-width: 1150px) {
    .franchise-contact-map-section {
        /* Maintain main container spacing control */
        padding: 60px 20px 0px 20px; /* Reduced top padding */
    }
    
    .franchise-contact-map-container {
        /* Stack columns on tablet */
        flex-direction: column;
        gap: 40px; /* Reduced gap between stacked elements */
    }
    
    .franchise-contact-map-content-left {
        /* Full width when stacked */
        max-width: 100%;
        width: 100%; /* Full width on tablet */
        order: 1; /* Content first on tablet */
    }
    
    .franchise-contact-map-testimonials-right {
        /* Adjust testimonials for tablet layout */
        width: 100%; /* Full width on tablet */
        max-width: 100%;
        height: auto;
        order: 2; /* Testimonials second on tablet */
    }
    
    /* Franchise testimonials carousel tablet adjustments */
    .franchise-carousel-quote {
        font-size: 20px; /* Slightly smaller for tablet */
    }
    
    .franchise-carousel-meta {
        gap: 10px; /* Reduced gap for tablet */
    }
    
    .franchise-carousel-avatar {
        width: 36px; /* Slightly smaller for tablet */
        height: 36px;
    }
    
    .franchise-carousel-name {
        font-size: 13px; /* Slightly smaller for tablet */
    }
    
    .franchise-carousel-position {
        font-size: 12px; /* Slightly smaller for tablet */
    }
}

/* ===================================
   MOBILE BREAKPOINT (0px-767px)
   ===================================
   Stacked layout maintained
   Reduced padding and spacing
   Main titles only: 48px → 36px for mobile readability
   =================================== */
@media (max-width: 767px) {
    .franchise-contact-map-section {
        /* Mobile main container spacing control */
        padding: 60px 16px 30px 16px; /* Reduced sides, added bottom */
    }
    
    .franchise-contact-map-container {
        /* Maintain stacked layout */
        flex-direction: column;
        gap: 32px; /* Further reduced gap on mobile */
    }
    
    .franchise-contact-map-content-left,
    .franchise-contact-map-testimonials-right {
        /* Full width on mobile */
        max-width: 100%;
        width: 100%; /* Full width on mobile */
    }
    
    /* Main title exception - 48px → 36px for mobile readability */
    .franchise-contact-map-h1 {
        font-size: 36px; /* Mobile title scaling */
    }
    
    /* Franchise testimonials carousel mobile adjustments */
    .franchise-carousel-row {
        gap: 8px; /* Reduced gap for mobile */
    }
    
    .franchise-carousel-quote {
        font-size: 18px; /* Mobile quote scaling */
        line-height: 1.4;
        padding: 0 4px; /* Small padding for mobile */
    }
    
    .franchise-carousel-meta {
        flex-direction: column; /* Stack on mobile */
        gap: 8px;
        text-align: center;
    }
    
    .franchise-carousel-divider {
        display: none; /* Hide divider on mobile */
    }
    
    .franchise-carousel-avatar {
        width: 32px; /* Smaller avatar for mobile */
        height: 32px;
    }
    
    .franchise-carousel-name {
        font-size: 12px; /* Mobile name scaling */
        text-align: center;
    }
    
    .franchise-carousel-position {
        font-size: 11px; /* Mobile position scaling */
        text-align: center;
    }
    
    .franchise-carousel-arrow {
        width: 28px; /* Smaller arrows for mobile */
        height: 28px;
    }
    
    .franchise-arrow {
        width: 10px; /* Smaller arrow icons for mobile */
        height: 10px;
    }
    
    .franchise-carousel-dots {
        margin-top: 6px; /* Reduced margin for mobile */
        gap: 4px;
    }
    
    .franchise-carousel-dots button {
        width: 4px; /* Smaller dots for mobile */
        height: 4px;
    }
    
    .franchise-carousel-logo {
        height: 24px; /* Smaller logo for mobile */
        max-width: 60px;
    }
}
