/* Frontend Styles for Locations Display Plugin */

.ldp-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Tabs */
.ldp-tabs-wrapper {
    position: relative;
    margin-bottom: 0;
}

.ldp-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.ldp-scroll-indicator {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 12px;
    pointer-events: none;
    z-index: 10;
    display: none;
    animation: pulse 2s infinite;
}

/* Only show on mobile */
@media (max-width: 480px) {
    .ldp-scroll-indicator.active {
        display: flex;
        align-items: center;
        gap: 3px;
    }
}

.ldp-sidebar-scroll-indicator {
    display: none;
}

/* Only show on mobile and tablet */
@media (max-width: 768px) {
    .ldp-sidebar-scroll-indicator.active {
        display: flex;
        align-items: center;
        gap: 3px;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) translateX(-3px);
    }
}

.ldp-tab {
    flex: 1;
    min-width: 120px;
    padding: 15px 25px;
    background: var(--ldp-tab-bg);
    color: var(--ldp-tab-text);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.ldp-tab:hover {
    opacity: 0.8;
}

.ldp-tab.active {
    background: var(--ldp-tab-active-bg);
    color: var(--ldp-tab-active-text);
}

/* Content Wrapper */
.ldp-content-wrapper {
    display: flex;
    min-height: 400px;
    border-radius: 0 8px 8px 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Sidebar Navigation */
.ldp-sidebar-nav {
    width: 250px;
    background: var(--ldp-sidebar-bg);
    padding: 20px 0;
    overflow-y: auto;
    position: relative;
}

.ldp-centers-nav {
    display: none !important;
}

.ldp-centers-nav.active {
    display: flex !important;
    flex-direction: column;
}

.ldp-center-btn {
    width: 100%;
    padding: 15px 25px;
    background: transparent;
    color: var(--ldp-sidebar-text);
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.ldp-center-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ldp-center-btn.active {
    background: var(--ldp-sidebar-active-bg);
    color: var(--ldp-sidebar-active-text);
    border-left-color: var(--ldp-sidebar-active-text);
}

/* No Centers Message */
.ldp-no-centers {
    padding: 20px;
    text-align: center;
    color: var(--ldp-sidebar-text);
    font-size: 14px;
    font-style: italic;
    opacity: 0.8;
}

/* Details Panel */
.ldp-details-panel {
    flex: 1;
    background: var(--ldp-content-bg);
    color: var(--ldp-content-text);
    padding: 30px;
    overflow-y: auto;
}

.ldp-center-details {
    display: none;
    animation: fadeIn 0.4s ease;
}

.ldp-center-details.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ldp-center-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--ldp-tab-active-bg);
}

/* Address Display */
.ldp-address-display {
    margin-bottom: 25px;
}

.ldp-address-display p {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.6;
}

/* Text Display */
.ldp-text-display {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.ldp-text-display p {
    margin: 0 0 15px 0;
}

/* Map Container */
.ldp-map-container {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ldp-map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

/* Button */
.ldp-button-container {
    margin-top: 25px;
}

.ldp-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--ldp-button-bg);
    color: var(--ldp-button-text);
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ldp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 768px) {
    .ldp-tabs {
        gap: 5px;
    }
    
    .ldp-tab {
        min-width: 100px;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .ldp-content-wrapper {
        flex-direction: column;
    }
    
    .ldp-sidebar-nav {
        width: 100%;
        padding: 15px 0;
        max-height: 200px;
        position: relative;
    }
    
    .ldp-centers-nav,
    .ldp-centers-nav.active {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 5px;
        padding: 0 15px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .ldp-centers-nav:not(.active) {
        display: none;
    }
    
    .ldp-centers-nav::-webkit-scrollbar {
        display: none;
    }
    
    .ldp-center-btn {
        flex: 0 0 auto;
        width: auto;
        min-width: 120px;
        padding: 10px 15px;
        font-size: 14px;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 4px;
        white-space: nowrap;
    }
    
    .ldp-center-btn.active {
        border-left: none;
        border-bottom-color: var(--ldp-sidebar-active-text);
    }
    
    .ldp-details-panel {
        padding: 20px;
    }
    
    .ldp-center-title {
        font-size: 24px;
    }
    
    .ldp-map-container iframe {
        height: 300px;
    }
    
    .ldp-sidebar-scroll-indicator {
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 5px 8px;
        border-radius: 20px;
        font-size: 11px;
        pointer-events: none;
        z-index: 10;
        display: none;
        animation: pulse 2s infinite;
    }
    
    .ldp-sidebar-scroll-indicator.active {
        display: flex;
        align-items: center;
        gap: 3px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .ldp-tabs-wrapper {
        position: relative;
        border-radius: 8px 8px 0 0;
        overflow: hidden;
    }
    
    .ldp-tabs {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 5px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 5px;
        background: var(--ldp-tab-bg);
    }
    
    .ldp-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .ldp-tab {
        flex: 0 0 auto;
        min-width: 100px;
        width: auto;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 6px;
        white-space: nowrap;
    }
    
    .ldp-content-wrapper {
        border-radius: 0 0 8px 8px;
    }
    
    .ldp-sidebar-nav {
        position: relative;
        width: 100%;
        max-height: 80px;
        padding: 10px 0;
        overflow: hidden;
    }
    
    .ldp-centers-nav,
    .ldp-centers-nav.active {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding: 10px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .ldp-centers-nav:not(.active) {
        display: none !important;
    }
    
    .ldp-centers-nav::-webkit-scrollbar {
        display: none;
    }
    
    .ldp-center-btn {
        flex: 0 0 auto !important;
        min-width: 120px !important;
        width: auto !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
        border-left: none !important;
        border-bottom: 3px solid transparent !important;
        white-space: nowrap !important;
    }
    
    .ldp-center-btn.active {
        border-left: none !important;
        border-bottom-color: var(--ldp-sidebar-active-text) !important;
    }
    
    .ldp-sidebar-scroll-indicator {
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 5px 8px;
        border-radius: 20px;
        font-size: 11px;
        pointer-events: none;
        z-index: 10;
        display: none;
        animation: pulse 2s infinite;
    }
    
    .ldp-sidebar-scroll-indicator.active {
        display: flex;
        align-items: center;
        gap: 3px;
    }
    
    .ldp-details-panel {
        padding: 15px;
    }
    
    .ldp-center-title {
        font-size: 20px;
    }
    
    .ldp-address-display p,
    .ldp-text-display {
        font-size: 14px;
    }
    
    .ldp-map-container iframe {
        height: 250px;
    }
    
    .ldp-button {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .ldp-center-title {
        font-size: 18px;
    }
    
    .ldp-map-container iframe {
        height: 200px;
    }
}

/* Print Styles */
@media print {
    .ldp-tabs,
    .ldp-sidebar-nav {
        display: none;
    }
    
    .ldp-details-panel {
        padding: 0;
    }
    
    .ldp-center-details {
        display: block !important;
        page-break-after: always;
    }
    
    .ldp-button {
        display: none;
    }
}

