/* Passolution Travel Information Module Styles */
/* Colors: Primary #007a33 (green), Secondary #f7ac1b (orange) */

.passolution-travel-info {
    width: 100%;
    margin: 1.5rem 0;
}

/* Selectors Row */
.passolution-selectors-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    background-color: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

/* Individual Selector */
.passolution-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.passolution-selector label {
    font-weight: 600;
    color: black;
    font-size: 0.9rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.passolution-dropdown {
    padding: 0.6rem 2.25rem 0.6rem 0.875rem;
    font-size: 0.95rem;
    border: 1px solid #007a33;
    border-radius: 4px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23007a33' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px 6px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    min-width: 200px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    color: #333;
}

.passolution-dropdown:hover {
    border-color: #005a25;
}

.passolution-dropdown:focus {
    outline: none;
    border-color: #007a33;
    box-shadow: 0 0 0 2px rgba(0, 122, 51, 0.15);
}

/* Message States */
.passolution-empty,
.passolution-error,
.passolution-partial-error {
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.passolution-empty {
    background-color: #f0f0f0;
    color: #666;
    border-left: 4px solid #999;
}

.passolution-error {
    background-color: #fef5f5;
    color: #c33;
    border-left: 4px solid #c33;
}

.passolution-partial-error {
    background-color: #fffbf0;
    color: #b8860b;
    border-left: 4px solid #ffa500;
}

/* Tab Navigation */
.passolution-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 0;
    border-bottom: none;
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
}

.passolution-tab-button {
    padding: 0.75rem 1.5rem;
    border: none;
    background-color: #e8e8e8;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    transition: all 0.2s ease;
    outline: none;
    position: relative;
    margin-right: 2px;
}

.passolution-tab-button:hover {
    background-color: #d0d0d0;
    color: #333;
}

.passolution-tab-button:focus {
    outline: none;
}

.passolution-tab-button.active {
    background-color: #007a33;
    color: #fff;
}

/* Tab Content Area */
.passolution-tabs-content {
    position: relative;
    background-color: #fff;
    border: none;
    border-radius: 0;
    padding: 0;
}

.passolution-tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.passolution-tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Panel Header */
.passolution-header {
    padding: 0.75rem 1rem;
    background-color: #007a33;
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    border-radius: 0;
    border-bottom: none;
}

/* Sections within Panels */
.passolution-section {
    margin-bottom: 0;
    padding: 1.25rem 1rem;
    border-left: 4px solid #f7ac1b;
    border-bottom: none;
    background-color: #fff;
}

.passolution-section:last-of-type {
    border-bottom: none;
}

.passolution-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #007a33;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f7ac1b;
}

.passolution-section-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

.passolution-section-content p {
    margin: 0 0 1rem 0;
}

.passolution-section-content p:last-child {
    margin-bottom: 0;
}

.passolution-subheading {
    font-size: 1rem;
    font-weight: 600;
    color: #007a33;
    margin: 1.5rem 0 0.5rem 0;
    padding: 0;
    padding-left: 0.75rem;
    border-left: 3px solid #f7ac1b;
}

.passolution-subheading:first-child {
    margin-top: 0;
}

.passolution-section-content ul,
.passolution-section-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.passolution-section-content li {
    margin: 0.25rem 0;
}

.passolution-section-content strong {
    color: #333;
    font-weight: 600;
}

/* Data Source */
.passolution-source {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    text-align: right;
    color: #999;
    font-size: 0.85rem;
}

/* Style Variations */

/* Minimal Style */
.passolution-style-minimal .passolution-tabs-nav {
    background-color: transparent;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 0;
}

.passolution-style-minimal .passolution-tab-button {
    background-color: transparent;
    color: #555;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 0.75rem 1.25rem;
}

.passolution-style-minimal .passolution-tab-button:hover {
    background-color: transparent;
    color: #007a33;
}

.passolution-style-minimal .passolution-tab-button.active {
    background-color: transparent;
    border-bottom-color: #f7ac1b;
    color: #007a33;
}

.passolution-style-minimal .passolution-tabs-content {
    border: none;
    padding: 1.5rem 0;
}

.passolution-style-minimal .passolution-header {
    margin: 0 0 1.5rem 0;
    border-radius: 8px;
}

/* Pills Style */
.passolution-style-pills .passolution-tabs-nav {
    background-color: transparent;
    border-radius: 0;
    gap: 0.5rem;
}

.passolution-style-pills .passolution-tab-button {
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    border: 2px solid #007a33;
    background-color: white;
    color: #007a33;
}

.passolution-style-pills .passolution-tab-button:hover {
    background-color: rgba(0, 122, 51, 0.1);
}

.passolution-style-pills .passolution-tab-button.active {
    border-color: #007a33;
    background-color: #007a33;
    color: white;
}

.passolution-style-pills .passolution-tabs-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.passolution-style-pills .passolution-header {
    border-radius: 8px 8px 0 0;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .passolution-tabs-nav {
        gap: 0.25rem;
    }

    .passolution-tab-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .passolution-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .passolution-section-title {
        font-size: 1rem;
    }

    .passolution-section-content {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .passolution-selectors-row {
        flex-direction: column;
        gap: 1rem;
    }

    .passolution-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }

    .passolution-dropdown {
        width: 100%;
    }

    .passolution-tabs-nav {
        flex-direction: column;
    }

    .passolution-tab-button {
        width: 100%;
        border-radius: 4px;
        text-align: left;
    }

    .passolution-tab-button.active {
        border-bottom: none;
    }

    .passolution-style-minimal .passolution-tab-button {
        border-radius: 4px;
        border: 1px solid #ddd;
    }

    .passolution-style-minimal .passolution-tab-button.active {
        border: 1px solid #007a33;
    }
}

/* Accessibility */
.passolution-tab-button:focus-visible {
    outline: 2px solid #f7ac1b;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .passolution-tabs-nav,
    .passolution-selectors-row {
        display: none;
    }

    .passolution-tab-panel {
        display: block !important;
        page-break-inside: avoid;
    }
}
