/* Main Wrapper - High specificity to avoid theme overrides */
.ls-wrapper {
    width: 100% !important;
    margin: 0 auto !important;
    font-family: 'Manrope', sans-serif !important;
    color: var(--ls-text, #1A1A1A) !important;
    box-sizing: border-box !important;
    line-height: normal !important;
}

.ls-wrapper * {
    box-sizing: border-box !important;
}

.ls-wrapper a:hover {
    color: var(--ls-link-hover, #333333) !important;
}

/* Header & Nav */
.ls-wrapper .ls-header-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 2rem !important;
    padding: 0 !important;
}

.ls-wrapper .ls-section-title {
    font-size: 2rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--ls-section-title, #000000) !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
    border: none !important;
}

.ls-wrapper .ls-arrows {
    display: flex !important;
    gap: 0.5rem !important;
}

.ls-wrapper .ls-nav-btn {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    border: none !important;
    background-color: var(--ls-nav-bg, #f0f0f0) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    color: var(--ls-nav-arrow, #1a1a1a) !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.ls-wrapper .ls-nav-btn:hover {
    filter: brightness(0.95) !important;
    transform: translateY(-2px) !important;
    background-color: var(--ls-nav-bg, #f0f0f0) !important;
}

/* Navigation Container (Tabs + Arrows) */
.ls-wrapper .ls-nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Scrollable Tabs List */
.ls-wrapper .ls-tabs-list {
    display: flex !important;
    gap: 0.75rem !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 4px !important;
    margin: 0 !important;
    list-style: none !important;

    /* Hide scrollbar */
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.ls-wrapper .ls-tabs-list::-webkit-scrollbar {
    display: none !important;
}

.ls-wrapper .ls-tab-pill {
    padding: 0.5rem 1.25rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background-color: var(--ls-tab-inactive-bg, transparent) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    color: var(--ls-tab-inactive-text, var(--ls-text)) !important;
    transition: all 0.2s ease !important;
    font-family: 'Manrope', sans-serif !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-transform: none !important;
}

.ls-wrapper .ls-tab-pill:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.ls-wrapper .ls-tab-pill.ls-active {
    background-color: var(--ls-tab-active-bg, #ffffff) !important;
    color: var(--ls-tab-active-text, #000000) !important;
    border-color: var(--ls-tab-active-bg, #ffffff) !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Content Container */
.ls-wrapper .ls-content-container {
    background-color: #F4F4F4 !important;
    position: relative !important;
    width: 100% !important;
}

/* Panel Layout */
.ls-wrapper .ls-location-panel {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    border-radius: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Painéis não-ativos ficam ocultos.
   Necessário porque display:flex !important acima sobrepõe style="display:none"
   inline que o PHP e o jQuery definem para painéis inativos. */
.ls-wrapper .ls-location-panel:not(.ls-active) {
    display: none !important;
}

.ls-wrapper .ls-map-column {
    width: 35% !important;
    position: relative !important;
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    overflow: hidden !important;
    height: auto !important;
    min-height: 300px !important;
}

/* On mobile */
@media (max-width: 900px) {
    .ls-wrapper .ls-location-panel {
        flex-direction: column-reverse !important;
    }

    .ls-wrapper .ls-map-column {
        width: 100% !important;
        height: 200px !important;
        min-height: 200px !important;
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
        border-bottom-left-radius: 8px !important;
        border-bottom-right-radius: 8px !important;
    }
}

.ls-wrapper .ls-map-frame {
    height: 100% !important;
    width: 100% !important;
    background: #E0E0E0 !important;
}

.ls-wrapper .ls-map-frame iframe {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: none !important;
    margin: 0 !important;
}

/* Info Column */
.ls-wrapper .ls-info-column {
    flex: 1 !important;
    padding: 24px 32px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
}

.ls-wrapper .ls-info-header-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 16px !important;
}

.ls-wrapper .ls-header-left {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.ls-wrapper .ls-small-brand {
    font-size: 0.875rem !important;
    color: var(--ls-brand, #4d4d4d) !important;
    font-weight: 500 !important;
    display: block !important;
}

.ls-wrapper .ls-location-title {
    margin: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: var(--ls-text) !important;
    text-transform: uppercase !important;
    padding: 0 !important;
}

.ls-wrapper .ls-location-title a {
    color: inherit !important;
    text-decoration: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.ls-wrapper .ls-location-title a:hover {
    color: var(--ls-link-hover) !important;
}

/* Get Directions Button */
.ls-wrapper .ls-directions-pill-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    height: 40px !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    border: 1px solid #d6d6d6 !important;
    background-color: var(--ls-btn-dir-bg, #ffffff) !important;
    color: var(--ls-btn-dir-text, #0d0d0d) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.ls-wrapper .ls-directions-pill-btn:hover {
    color: var(--ls-link-hover, #333333) !important;
    border-color: var(--ls-link-hover, #333333) !important;
    background-color: #f9f9f9 !important;
}

/* Details Grid */
.ls-wrapper .ls-details-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
}

@media (min-width: 640px) {
    .ls-wrapper .ls-details-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 24px !important;
    }
}

.ls-wrapper .ls-detail-block {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.ls-wrapper .ls-label {
    font-size: 0.875rem !important;
    color: var(--ls-label, #4d4d4d) !important;
    font-weight: 500 !important;
    display: block !important;
    margin: 0 !important;
}

.ls-wrapper .ls-address-text {
    font-size: 0.875rem !important;
    color: var(--ls-text) !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    font-style: normal !important;
    margin: 0 !important;
}

.ls-wrapper .ls-address-text a {
    color: var(--ls-text) !important;
    text-decoration: none !important;
    display: inline !important;
    padding: 0 !important;
}

.ls-wrapper .ls-address-text a:hover {
    color: var(--ls-link-hover) !important;
    text-decoration: underline !important;
}

.ls-wrapper .ls-contacts-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.ls-wrapper .ls-contact-link {
    font-size: 0.875rem !important;
    color: var(--ls-text) !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    display: inline-flex !important;
    align-items: center !important;
    background: transparent !important;
    padding: 0 !important;
}

.ls-wrapper .ls-contact-link:hover {
    color: var(--ls-link-hover) !important;
    text-decoration: underline !important;
}

/* Divider */
.ls-wrapper .ls-divider {
    height: 1px !important;
    background-color: #d6d6d6 !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Footer / Hours */
.ls-wrapper .ls-info-footer {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin-top: auto !important;
}

@media (min-width: 640px) {
    .ls-wrapper .ls-info-footer {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
}

.ls-wrapper .ls-hours-block {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.ls-wrapper .ls-hours-text {
    font-size: 0.875rem !important;
    color: var(--ls-text) !important;
    line-height: 1.5 !important;
}

/* Actions */
.ls-wrapper .ls-actions {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex-direction: column !important;
}

@media (min-width: 640px) {
    .ls-wrapper .ls-actions {
        flex-direction: row !important;
        width: auto !important;
    }
}

.ls-wrapper .ls-text-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.875rem !important;
    color: var(--ls-link-order, #4d4d4d) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    padding: 12px 24px !important;
    border: 1px solid var(--ls-link-order, #4d4d4d) !important;
    border-radius: 6px !important;
    width: 100% !important;
}

@media (min-width: 640px) {
    .ls-wrapper .ls-text-link {
        width: auto !important;
        padding: 0 !important;
        border: none !important;
    }
}

.ls-wrapper .ls-text-link:hover {
    color: var(--ls-link-hover) !important;
    border-color: var(--ls-link-hover) !important;
}

.ls-wrapper .ls-primary-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background-color: var(--ls-primary) !important;
    color: var(--ls-btn-res-text, #ffffff) !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    width: 100% !important;
    border: none !important;
}

@media (min-width: 768px) {
    .ls-wrapper .ls-primary-btn {
        width: auto !important;
        min-width: 120px !important;
    }
}

.ls-wrapper .ls-primary-btn:hover {
    background-color: var(--ls-btn-res-hover-bg, #e67373) !important;
    color: var(--ls-btn-res-hover-text, #ffffff) !important;
}

/* Accessibility Focus Styles */
.ls-wrapper .ls-tab-pill:focus-visible,
.ls-wrapper .ls-nav-btn:focus-visible,
.ls-wrapper .ls-directions-pill-btn:focus-visible,
.ls-wrapper .ls-contact-link:focus-visible,
.ls-wrapper .ls-text-link:focus-visible,
.ls-wrapper .ls-primary-btn:focus-visible,
.ls-wrapper a:focus-visible,
.ls-wrapper button:focus-visible {
    outline: 2px solid #000 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1) !important;
}