/* ==========================================================================
   PACKAGES SEARCH & LIST PAGE STYLING (Minimalist Premium Design)
   ========================================================================== */

/* Layout & Grid Configuration */
.packages-wrapper {
    background-color: #f8fafc; /* Slate 50 */
    padding: 30px 0 60px 0;
    min-height: 80vh;
}

.packages-breadcrumb {
    margin-bottom: 24px;
    font-size: 13px;
    color: #64748b;
}

.packages-breadcrumb a {
    color: #475569;
    font-weight: 500;
    transition: color 0.2s ease;
    text-decoration: none;
}

.packages-breadcrumb a:hover {
    color: #24b25a;
}

.packages-breadcrumb span.active {
    color: #94a3b8;
}

/* Header Content area */
.list-header-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.015);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.list-header-info h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px 0;
}

.list-header-info p {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
}

.list-header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sort-select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.sort-select-wrapper label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin: 0;
    white-space: nowrap;
}

.sort-select-wrapper select {
    background: transparent;
    border: none;
    outline: none;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
}

/* Redesigned 2-Column Grid Layout */
.packages-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
}

@media (max-width: 991px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }
    .filter-sidebar-col {
        display: none;
    }
    .filter-sidebar-col.show-mobile {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 75vh;
        max-height: 75dvh;
        z-index: 10005;
        background: #ffffff;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.15);
        overflow: hidden;
        animation: filterSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

@keyframes filterSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Mobile Filter Floating Button */
.mobile-filter-trigger {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 12.5px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
    z-index: 999;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

.mobile-filter-trigger:hover {
    transform: translateX(-50%) scale(1.03);
    background: #24b25a;
}

@media (max-width: 991px) {
    .mobile-filter-trigger {
        display: flex;
    }
}

/* ==========================================================================
   FILTER SIDEBAR WIDGETS
   ========================================================================== */
.filter-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.015);
    padding: 20px;
}

.filter-header {
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.filter-header-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.filter-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    min-width: 0;
    line-height: 1.2;
}

.filter-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(36, 178, 90, 0.1);
    color: #24b25a;
    font-size: 14px;
    flex-shrink: 0;
}

.filter-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.filter-header-reset {
    background: none;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    line-height: 1;
}

.filter-header-reset:hover {
    color: #f43f5e;
    background: #fff1f2;
}

.filter-header-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    line-height: 1;
}

.filter-header-close:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* Legacy class — kept for static HTML pages */
.reset-filter-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-filter-btn:hover {
    color: #f43f5e;
}

.filter-group {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.filter-group-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-group-title i {
    font-size: 10px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.filter-group-title.collapsed i {
    transform: rotate(-90deg);
}

.filter-content {
    transition: max-height 0.3s ease;
    overflow: hidden;
}

/* Range Slider Styling */
.price-slider-wrap {
    padding: 6px 0;
}

.price-range-inputs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 11.5px;
    color: #64748b;
}

.price-val {
    font-weight: 700;
    color: #0f172a;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.custom-range-slider {
    width: 100%;
    accent-color: #24b25a;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    outline: none;
}

.pill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 12px;
}

.pill-filter-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 4px;
    font-size: 10.5px;
    font-weight: 500;
    color: #475569;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pill-filter-btn:hover {
    border-color: #24b25a;
    color: #24b25a;
    background: rgba(36, 178, 90, 0.02);
}

.pill-filter-btn.active {
    background: #24b25a;
    color: #ffffff;
    border-color: #24b25a;
}

/* Checkbox Modern Styling */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 4px;
}

.checkbox-list::-webkit-scrollbar {
    width: 3px;
}

.checkbox-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease;
}

.checkbox-item:hover {
    color: #0f172a;
}

.checkbox-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-left input[type="checkbox"] {
    appearance: none;
    width: 14px;
    height: 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: all 0.15s ease;
    display: grid;
    place-content: center;
}

.checkbox-left input[type="checkbox"]::before {
    content: "\F26E";
    font-family: "bootstrap-icons";
    font-size: 9px;
    font-weight: 900;
    color: #ffffff;
    transform: scale(0);
    transition: transform 0.1s ease-in-out;
}

.checkbox-left input[type="checkbox"]:checked {
    background-color: #24b25a;
    border-color: #24b25a;
}

.checkbox-left input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.checkbox-count {
    font-size: 10px;
    color: #94a3b8;
    background: #f8fafc;
    padding: 1px 6px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

/* ==========================================================================
   MINIMALIST PREMIUM PACKAGE CARDS
   ========================================================================== */
.packages-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.package-card-premium {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: 220px 1fr 190px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.package-card-premium:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    border-color: #cbd5e1;
}

/* Image Side */
.card-img-side {
    position: relative;
    height: 100%;
    min-height: 200px;
    overflow: hidden;
}

.card-img-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.package-card-premium:hover .card-img-side img {
    transform: scale(1.03);
}

.card-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.card-wishlist-btn:hover {
    background: #ffffff;
    color: #f43f5e;
    transform: scale(1.05);
}

.card-wishlist-btn.active {
    background: #ffffff;
    color: #f43f5e;
    border-color: #fbcfe8;
}

/* Details Middle (Minimalist Layout) */
.card-details-side {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.tag-badge {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 6px;
    border-radius: 4px;
}

.tag-badge.filled {
    background: rgba(36, 178, 90, 0.06);
    color: #15803d; /* Deeper minimal green */
}

.tag-badge.outline {
    background: rgba(139, 92, 246, 0.04);
    color: #6d28d9;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.card-details-side h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.35;
    transition: color 0.15s ease;
}

.card-details-side h3 a {
    text-decoration: none;
    color: inherit;
}

.card-details-side h3 a:hover {
    color: #24b25a;
}

.card-ratings {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    margin-bottom: 10px;
}

.rating-stars {
    color: #f59e0b;
}

.review-count {
    color: #64748b;
}

/* Inclusions Row */
.inclusions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
    margin-bottom: 12px;
    max-height: 40px;
    overflow: hidden;
}

.inclusion-item {
    font-size: 11px;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.35;
}

.inclusion-item i {
    font-size: 13px;
    color: #24b25a;
    flex-shrink: 0;
    margin-top: 1px;
}

.card-duration-info {
    font-size: 12px;
    color: #334155;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-duration-info span {
    color: #64748b;
    font-weight: 400;
}

.card-highlights {
    font-size: 11.5px;
    line-height: 1.45;
    color: #64748b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pricing Side (Fully Integrated, Faint Dividers) */
.card-price-side {
    background: #f8fafc;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-left: 1px solid #f1f5f9;
    gap: 16px;
}

.price-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 4px;
}

.price-subtitle {
    font-size: 11px;
    color: #64748b;
    display: block;
    margin-bottom: 0;
}

.price-emi {
    font-size: 11px;
    color: #16a34a;
    font-weight: 500;
    background: #f0fdf4;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 6px;
    display: inline-block;
}

.card-actions-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-btn-primary {
    width: 100%;
    background: #24b25a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 6px rgba(36, 178, 90, 0.15);
}

.action-btn-primary:hover {
    background: #1d9448;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(36, 178, 90, 0.3);
    transform: translateY(-1px);
}

.action-btn-secondary {
    width: 100%;
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    text-align: center;
}

.action-btn-secondary:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.card-bottom-links {
    display: flex;
    gap: 12px;
    font-size: 10.5px;
}

.bottom-link-item {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}

.bottom-link-item:hover {
    color: #24b25a;
}

.bottom-link-item i {
    font-size: 11px;
}

/* Empty State */
.packages-empty-state {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 40px;
    text-align: center;
}

.packages-empty-state i {
    font-size: 40px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.packages-empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.packages-empty-state p {
    font-size: 12.5px;
    color: #64748b;
}

/* Ribbon on Image */
.card-ribbon {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    z-index: 5;
}

.card-ribbon.orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

/* Compact Specs Row & Pills */
.card-specs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.spec-pill {
    font-size: 10.5px;
    font-weight: 500;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.spec-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.spec-pill i {
    font-size: 11.5px;
}

/* Responsive Overrides for Cards */
@media (max-width: 1199px) {
    .package-card-premium {
        grid-template-columns: 200px 1fr;
    }
    .card-price-side {
        grid-column: span 2;
        border-left: none !important;
        border-top: 1px solid #f1f5f9;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
        padding: 12px 20px !important;
    }
    .card-price-side .card-actions-stack {
        flex-direction: row !important;
        width: auto !important;
        margin-top: 0 !important;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .package-card-premium {
        grid-template-columns: 1fr;
    }
    .card-img-side {
        height: 180px;
    }
    .card-price-side {
        grid-column: span 1;
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center !important;
        padding: 20px !important;
    }
    .card-price-side .card-actions-stack {
        flex-direction: column !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   INLINE ADVERTISING CARDS (Feeds Interspersed)
   ========================================================================== */
.inline-ad-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 180px;
    transition: all 0.25s ease;
}

.inline-ad-card:hover {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.ad-inline-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ad-inline-label {
    font-size: 8.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 10px;
}

.ad-inline-body h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.35;
}

.ad-inline-body p {
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 14px;
    line-height: 1.45;
}

.ad-inline-btn {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ad-inline-visual {
    background-size: cover;
    background-position: center;
    position: relative;
}

.ad-inline-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #ffffff, transparent);
    z-index: 1;
}

/* Theme variations for Ads */
/* variation 1: Blue Flight Ad */
.ad-theme-blue {
    background: #f0f7ff;
    border-color: #bfdbfe;
}
.ad-theme-blue .ad-inline-label {
    background: #dbeafe;
    color: #1d4ed8;
}
.ad-theme-blue h4 {
    color: #1e3a8a;
}
.ad-theme-blue .ad-inline-btn {
    background: #1d4ed8;
    color: #ffffff;
    border: none;
}
.ad-theme-blue .ad-inline-btn:hover {
    background: #1e40af;
}

/* variation 2: Slate MICE Ad */
.ad-theme-slate {
    background: #0f172a;
    border-color: #334155;
    color: #ffffff;
}
.ad-theme-slate .ad-inline-label {
    background: #334155;
    color: #94a3b8;
}
.ad-theme-slate h4 {
    color: #ffffff;
}
.ad-theme-slate .ad-inline-btn {
    background: #24b25a;
    color: #ffffff;
    border: none;
}
.ad-theme-slate .ad-inline-btn:hover {
    background: #1d9448;
}
.ad-theme-slate .ad-inline-visual::before {
    background: linear-gradient(to right, #0f172a, transparent);
}

/* variation 3: Rose Promo Ad */
.ad-theme-rose {
    background: #fdf2f8;
    border-color: #fbcfe8;
}
.ad-theme-rose .ad-inline-label {
    background: #fce7f3;
    color: #be185d;
}
.ad-theme-rose h4 {
    color: #831843;
}
.ad-theme-rose .ad-inline-btn {
    background: #db2777;
    color: #ffffff;
    border: none;
}
.ad-theme-rose .ad-inline-btn:hover {
    background: #be185d;
}

@media (max-width: 576px) {
    .inline-ad-card {
        grid-template-columns: 1fr;
    }
    .ad-inline-visual {
        height: 100px;
    }
    .ad-inline-visual::before {
        background: linear-gradient(to top, #ffffff, transparent);
    }
    .ad-theme-slate .ad-inline-visual::before {
        background: linear-gradient(to top, #0f172a, transparent);
    }
}

/* Comparison Sticky Drawer Bar */
.comparison-drawer {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
    border-top: 1px solid #e2e8f0;
    z-index: 10002;
    padding: 12px 0;
    transition: bottom 0.25s ease;
}

.comparison-drawer.active {
    bottom: 0;
}

.compare-drawer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.compare-items-list {
    display: flex;
    align-items: center;
    gap: 12px;
}

.compare-item-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 500;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

.compare-item-pill span {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-item-pill button {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 11px;
    display: inline-flex;
    padding: 0;
}

.compare-item-pill button:hover {
    color: #f43f5e;
}

.compare-actions-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.compare-actions-bar span {
    font-size: 11.5px;
    color: #64748b;
}

.btn-compare-run {
    background: #24b25a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}

.btn-compare-run:hover {
    background: #1d9448;
}

.btn-compare-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}

.btn-compare-close:hover {
    color: #0f172a;
}

/* ==========================================================================
   MOBILE-FOCUSED RESPONSIVE OVERRIDES FOR FT-LIST-CARD & FILTERS
   Bottom drawer (75vh) — matches search / enquiry modals on mobile
   ========================================================================== */
@media (max-width: 991px) {
    .filter-sidebar-mobile {
        position: fixed !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: 75vh !important;
        max-height: 75dvh !important;
        background: #ffffff !important;
        z-index: 1050 !important;
        border-radius: 18px 18px 0 0 !important;
        box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.15) !important;
        transform: translateY(100%) !important;
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .filter-sidebar-mobile.show {
        transform: translateY(0) !important;
    }

    .filter-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.55);
        backdrop-filter: blur(4px);
        z-index: 1040;
        animation: filterBackdropFade 0.2s ease;
    }

    @keyframes filterBackdropFade {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .filter-sidebar-mobile .filter-card {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        min-height: 0 !important;
        height: 100% !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        position: static !important;
        top: auto !important;
        overflow: hidden !important;
        background: #ffffff !important;
    }

    .filter-sidebar-mobile .filter-header {
        flex-shrink: 0;
        margin-bottom: 0 !important;
        padding: 8px 16px 14px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        background: #ffffff !important;
    }

    .filter-sidebar-mobile .filter-header::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: #e2e8f0;
        border-radius: 4px;
        margin: 0 auto 14px;
    }

    .filter-sidebar-mobile .filter-header-toolbar {
        min-height: 40px;
    }

    .filter-sidebar-mobile .filter-header-title {
        font-size: 16px;
        font-weight: 700;
        letter-spacing: -0.01em;
    }

    .filter-sidebar-mobile .filter-header-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 15px;
    }

    .filter-sidebar-mobile .filter-header-reset {
        font-size: 13px;
        padding: 7px 12px;
        color: #64748b;
    }

    .filter-sidebar-mobile .filter-header-close {
        width: 36px;
        height: 36px;
    }

    .filter-drawer-body {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 16px 20px 8px;
    }

    .filter-drawer-footer {
        flex-shrink: 0;
        padding: 14px 20px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        border-top: 1px solid #f1f5f9;
        background: #ffffff;
    }

    .filter-drawer-apply-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 14px 20px;
        background: linear-gradient(135deg, #24b25a 0%, #1a9a4a 100%);
        border: none;
        border-radius: 12px;
        color: #ffffff;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 4px 14px rgba(36, 178, 90, 0.35);
        transition: transform 0.2s ease;
    }

    .filter-drawer-apply-btn:active {
        transform: scale(0.98);
    }
}

@media (max-width: 767px) {
    .ft-list-card {
        flex-direction: column !important;
        margin-bottom: 20px;
        border-radius: 16px !important;
    }
    
    .card-visual {
        width: 100% !important;
        height: 200px !important;
    }
    
    .card-info-side {
        padding: 16px !important;
    }
    
    .card-info-side h3 {
        font-size: 16px !important;
        line-height: 1.4;
        margin-bottom: 8px !important;
    }
    
    .card-price-side {
        width: 100% !important;
        border-left: none !important;
        border-top: 1px solid #f1f5f9 !important;
        padding: 16px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: left !important;
    }
    
    /* Price display row on mobile */
    .card-price-side > div:first-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 12px;
    }
    
    .card-price-side > div:first-child .text-muted {
        font-size: 11px !important;
    }
    
    .card-price-side .h4 {
        margin: 0 !important;
        font-size: 20px !important;
    }
    
    /* Actions row on mobile */
    .card-price-side .w-100 {
        flex-direction: row !important;
        gap: 12px !important;
        margin-top: 0 !important;
    }
    
    .card-price-side .w-100 a,
    .card-price-side .w-100 button {
        flex: 1;
        padding: 10px !important;
        font-size: 12px !important;
        border-radius: 30px !important;
    }
    
    /* Clean text display on mobile */
    .card-info-side .text-truncate-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: auto !important;
        margin-bottom: 12px !important;
    }

    .list-header-card {
        padding: 16px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        text-align: center;
    }
    
    .list-header-info h1 {
        font-size: 18px !important;
    }
    
    .sort-select-wrapper {
        justify-content: center;
        width: 100%;
    }
}

