/* Main Container */
.pttk-browser-wrapper {
    font-family: 'Inter', sans-serif;
    color: #333;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header & Top Bar */
.pttk-browser-header {
    margin-bottom: 30px;
}
.pttk-browser-header h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 5px;
}
.pttk-browser-header p {
    color: #7f8c8d;
    font-size: 1rem;
}

.pttk-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.pttk-search-input {
    flex-grow: 1;
    min-width: 300px;
    position: relative;
}
.pttk-search-input input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
}
.pttk-search-input::before {
    content: "🔍";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}
.pttk-search-btn {
    background: #347065;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

/* Active Filters Row */
.pttk-active-filters-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}
.pttk-active-filter-tag {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.pttk-active-filter-tag button {
    background: none;
    border: none;
    color: #2e7d32;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
}
.pttk-clear-all {
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
}

/* Layout */
.pttk-browser-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 15px;
}

/* Sidebar */
.pttk-sidebar {
    background: transparent;
}
.pttk-filter-widget {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}
.pttk-filter-widget h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Checkboxes */
.pttk-checkbox-list {
    list-style: none;
    padding: 0 0 0 0.5em;
    margin: 0;
}
.pttk-checkbox-list li {
    margin-bottom: 10px;
}
.pttk-checkbox-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
}
.pttk-checkbox-list input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #347065;
}
.pttk-filter-count {
    margin-left: auto;
    color: #999;
    font-size: 0.85rem;
}

/* Month Grid */
.pttk-month-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.pttk-month-btn {
    border: 1px solid #e0e0e0;
    padding: 8px 5px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
    user-select: none;
}
.pttk-month-btn input {
    display: none;
}
.pttk-month-btn.active {
    background: #e8f5e9;
    border-color: #2e7d32;
    color: #2e7d32;
    font-weight: 500;
}

/* Quick Actions */
.pttk-quick-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 15px;
}
.pttk-qa-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pttk-qa-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}
.pttk-qa-btn {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
    transition: 0.2s;
}
.pttk-qa-btn:hover {
    background: #e0e0e0;
}
.pttk-qa-btn.pttk-active {
    background: #347065;
    color: #fff;
    border-color: #347065;
}

/* Main Content */
.pttk-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #666;
}
.pttk-results-header strong {
    color: #333;
}
.pttk-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
}

/* Card V2 */
.pttk-trip-card-v2 {
    background: #fafaf5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 14px 0px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.pttk-trip-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.pttk-card-image {
    position: relative;
    height: 200px;
    background: #f8f9fa; /* Placeholder bg */
}
.pttk-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}
.pttk-badges-container {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    z-index: 2;
}
.pttk-badge {
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.pttk-badge-warning { background: #ffb300; color: #fff; }
.pttk-badge-danger { background: #e53935; color: #fff; }
.pttk-favorite-btn {
    display: none;
}
.pttk-card-body {
    padding: 15px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.pttk-card-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.pttk-card-tags span {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #555;
    font-weight: 500;
}
.pttk-card-title-link {
    text-decoration: none;
    color: #222;
}
.pttk-card-title {
    font-size: 1.25rem;
    margin: 0 0 8px 0;
    line-height: 1.3;
}
.pttk-card-country {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-weight: 600;
}
.pttk-card-route {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pttk-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 15px;
}
.pttk-rating {
    color: #ffb300;
    font-weight: 600;
}
.pttk-card-terms {
    font-size: 0.85rem;
    margin-bottom: 10px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}
.pttk-other-dates {
    color: #999;
}
.pttk-slots {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 15px;
}
.pttk-slots.warning { color: #f57c00; }
.pttk-slots.danger { color: #d32f2f; }
.pttk-slots.success { color: #388e3c; }

.pttk-card-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: auto;
}
.pttk-card-action {
    text-align: center;
    margin-top: 20px;
    width: 100%;
}
.pttk-card-price-wrap {
    display: flex;
    flex-direction: column;
}
.pttk-price-label {
    font-size: 0.75rem;
    color: #999;
}
.pttk-price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    line-height: 1;
    margin: 5px 0;
}
.pttk-price-sgl {
    font-size: 0.75rem;
    color: #666;
}
.pttk-btn-primary {
    background: #d38a09;
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
}
.pttk-btn-primary:hover {
    background: #b67607;
}

/* Pagination / Load More */
.pttk-pagination-wrap {
    text-align: center;
    margin-top: 40px;
}
.pttk-load-more {
    background: #fff;
    border: 1px solid #ddd;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    color: #555;
    cursor: pointer;
    transition: 0.2s;
}
.pttk-load-more:hover {
    background: #f9f9f9;
}

/* Toggle button – hidden on desktop, shown on mobile via media query */
.pttk-sidebar-toggle { display: none; }

/* Responsive */
@media screen and (max-width: 992px) {
    .pttk-browser-layout {
        grid-template-columns: 1fr;
    }

    /* --- Mobile sidebar toggle --- */
    .pttk-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 16px;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        font-size: 0.95rem;
        font-weight: 600;
        color: #333;
        cursor: pointer;
        margin-bottom: 8px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    }
    .pttk-sidebar-toggle svg {
        transition: transform .25s;
        flex-shrink: 0;
        color: #666;
    }
    .pttk-sidebar-toggle[aria-expanded="true"] svg {
        transform: rotate(180deg);
    }
    .pttk-sidebar-inner {
        overflow: hidden;
        max-height: 0;
        transition: max-height .3s ease;
    }
    .pttk-sidebar-inner.open {
        max-height: 9999px;
    }
}


/* Dual Range Slider */
.pttk-dual-range { position: relative; width: 100%; height: 60px; margin-top: 10px; }
.pttk-dual-range input[type="range"] { position: absolute; width: 100%; -webkit-appearance: none; appearance: none; pointer-events: none; z-index: 2; height: 10px; background: transparent; top: 0; left: 0; outline: none; }
.pttk-dual-range input[type="range"]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 20px; height: 20px; background: var(--pttk-primary, #007bff); border-radius: 50%; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.pttk-dual-range input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; background: var(--pttk-primary, #007bff); border-radius: 50%; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.3); border: none; }
.pttk-slider-track { position: absolute; width: 100%; height: 6px; background: #e2e8f0; top: 7px; border-radius: 3px; z-index: 1; }
.pttk-price-display { position: absolute; top: 35px; width: 100%; text-align: center; font-weight: 600; color: #333; font-size: 14px; }

/* single-content ul padding */
.single-content ul { padding-left: 0.5em; }
