/* Global Premium Dark Theme Overrides - Ultra Modern */
body {
    background-color: #000 !important;
    color: #e0e0e0;
    font-family: 'DM Sans', sans-serif !important;
    letter-spacing: -0.2px;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
    font-weight: 700;
}

p, span, div, li, a {
    color: #cccccc;
}

/* Base Sections */
.search-section, .listing, .popular-city, .testimonial, .ad-section {
    background-color: transparent !important;
    position: relative;
    z-index: 1;
}

.heading h2 {
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.heading h3 {
    color: #888888 !important;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Glassmorphic Search Hero */
.search-section .bg {
    background: linear-gradient(135deg, rgba(8,8,10,0.95) 0%, rgba(15,15,20,0.85) 100%) !important;
}

.search-section .box {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modern-input-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.modern-input-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #00d4ff !important;
    font-size: 20px;
    z-index: 5 !important;
    pointer-events: none;
}

.modern-input-wrapper .form-control,
.modern-input-wrapper select.form-control,
.modern-input-wrapper .select2-container--default .select2-selection--single {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 16px !important;
    height: 56px !important;
    padding-left: 55px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.modern-input-wrapper .form-control:focus,
.modern-input-wrapper select.form-control:focus,
.modern-input-wrapper .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #00d4ff !important;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15) !important;
    background: rgba(0, 0, 0, 0.7) !important;
}

.modern-btn {
    height: 56px;
    border-radius: 16px !important;
    background: linear-gradient(45deg, #007bff, #00d4ff) !important;
    border: none !important;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}

.modern-btn:hover {
    box-shadow: 0 15px 25px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

/* Ultra Modern Listing Cards */
.listing-item {
    background: linear-gradient(145deg, #1a1a1f, #131316) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.listing-item:hover {
    transform: translateY(-12px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6) !important;
}

.listing-item .photo {
    position: relative;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    aspect-ratio: 16/10;
}

.listing-item .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.listing-item:hover .photo img {
    transform: scale(1.12);
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.badge-new {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.badge-used {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge-featured {
    top: 15px;
    right: 15px;
    left: auto;
    background: rgba(255, 0, 128, 0.2);
    color: #ff0080;
    border: 1px solid rgba(255, 0, 128, 0.3);
}

/* Card Text */
.listing-item .text {
    padding: 20px;
    background: transparent !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.listing-item .text .car-title {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
    text-decoration: none;
    line-height: 1.4;
}

.listing-item .text .car-title:hover {
    color: #00d4ff !important;
}

.listing-item .text .car-price {
    font-size: 1.5rem !important;
    color: #fff !important;
    font-weight: 800;
    display: block;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.listing-item .text .car-price span {
    color: #00d4ff !important;
}

.listing-item .text .car-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 15px;
}

.listing-item .text .car-meta-item {
    color: #999;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.listing-item .text .car-meta-item i {
    color: #00d4ff;
}

/* Wishlist Button */
.ag-wishlist-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px);
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
}

.ag-wishlist-btn:hover {
    background: #ff0080 !important;
    border-color: #ff0080;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.4);
}

.ag-wishlist-btn i {
    font-size: 20px;
}

/* Popular Brands & Locations (Circular/Pill) */
.popular-city-carousel .item {
    padding: 15px;
}

.brand-avatar-card {
    background: #131316 !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.brand-avatar-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.brand-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.brand-avatar img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-avatar-card h4 {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.brand-avatar-card p {
    color: #888 !important;
    font-size: 0.85rem;
    margin: 0;
}

/* Location Cards */
.location-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    display: block;
    text-decoration: none;
}

.location-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.location-card:hover img {
    transform: scale(1.1);
}

.location-card .location-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.location-card h4 {
    color: #fff !important;
    font-weight: 700;
    margin-bottom: 5px;
}

.location-card p {
    color: #00d4ff !important;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}


/* Testimonials */
.testimonial-bg {
    background: linear-gradient(135deg, rgba(8,8,10,0.95) 0%, rgba(15,15,20,0.9) 100%) !important;
}

.testimonial-item {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
}

.testimonial-item p {
    color: #ccc !important;
    font-style: normal;
    font-size: 16px;
    line-height: 1.6;
}

.testimonial-item h3 {
    color: #fff !important;
    font-weight: bold;
}

.testimonial-item h4 {
    color: #888 !important;
}

/* Select2 Dropdowns in Dark Mode - Overhauled */
.select2-container .select2-selection--single,
.select2-container--default .select2-selection--single,
.select2-container--bootstrap .select2-selection--single {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    height: 56px !important;
    transition: all 0.3s ease;
}
.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #00d4ff !important;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15) !important;
    background: rgba(0, 0, 0, 0.7) !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
    line-height: 56px !important;
    padding-left: 55px !important; 
    font-size: 16px !important;
    font-weight: 500 !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    padding-left: 55px !important;
    display: block !important;
}

/* Mega Aggressive Homepage Overrides */
.modern-input-wrapper .select2-container,
.modern-input-wrapper .select2-container--default .select2-selection--single,
.modern-input-wrapper .select2-selection,
.modern-input-wrapper .select2-selection__rendered {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 16px !important;
}

.modern-input-wrapper .select2-selection__rendered,
.modern-input-wrapper .select2-selection__placeholder {
    padding-left: 55px !important;
}

.modern-input-wrapper select.form-control {
    padding-left: 55px !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    color: #fff !important;
    border-radius: 16px !important;
    height: 56px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent !important;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #00d4ff transparent !important;
}
.select2-dropdown {
    background-color: #131316 !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6) !important;
    margin-top: 5px;
    z-index: 9999 !important;
}
.select2-search--dropdown .select2-search__field {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border-radius: 8px !important;
}
.select2-container--default .select2-results__option {
    color: #ccc !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgba(0, 212, 255, 0.15) !important;
    color: #00d4ff !important;
}

/* Section specific padding */
.search-section { padding: 120px 0; }
.popular-city { padding: 100px 0; background: #08080a !important; }
.listing { padding: 100px 0; background: #0c0c0f !important; }
.testimonial { padding: 120px 0; }

.ag-text-gradient {
    background: linear-gradient(90deg, #00d4ff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* =========================================================================
   Ultra Modern Sidebar Filter (Search Results Page)
   ========================================================================= */
.listing-filter {
    background: rgba(15, 15, 20, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    padding: 30px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    color: #fff !important;
    margin-bottom: 30px !important;
}

.listing-filter .lf-heading {
    color: #00d4ff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    background: transparent !important;
}

.search-section .box {
    background: rgba(15, 15, 20, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5) !important;
}

.modern-input-wrapper select.form-control {
    background: rgba(0, 0, 0, 0.5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z' fill='rgba(255,255,255,0.7)'/%3E%3C/svg%3E") no-repeat right 15px center !important;
    background-size: 20px !important;
    padding-right: 40px !important;
}

.listing-filter .lf-widget {
    margin-bottom: 25px !important;
    border-bottom: none !important;
    padding: 24px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}

.listing-filter .lf-widget h2 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-bottom: 10px !important;
}

.listing-filter .lf-widget h2 {
    font-size: 1.1rem !important;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff !important;
    text-transform: none;
    letter-spacing: 0;
}

.listing-filter .lf-widget h2 a {
    color: #fff !important;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.listing-filter .lf-widget h2 a .arrow {
    font-size: 0.8rem;
    color: #00d4ff;
    transition: transform 0.3s ease;
}

.modern-sidebar-input {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 12px !important;
    height: 50px !important;
    padding-left: 20px !important;
}

.modern-sidebar-input:focus {
    border-color: #00d4ff !important;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15);
}

.listing-filter select.form-control {
    background: rgba(0, 0, 0, 0.5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z' fill='rgba(255,255,255,0.7)'/%3E%3C/svg%3E") no-repeat right 15px center !important;
    background-size: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 12px !important;
    height: 50px !important;
    padding-left: 15px !important;
    padding-right: 40px !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.listing-filter select.form-control:focus {
    border-color: #00d4ff !important;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15) !important;
}

/* =========================================================================
   Paginator (AJAX Search Listing)
   ========================================================================= */
.pagination {
    margin-top: 30px;
    gap: 10px;
}
.page-item .page-link {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 10px 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.page-item .page-link:hover {
    background: rgba(0, 212, 255, 0.1) !important;
    border-color: #00d4ff !important;
    color: #00d4ff !important;
}
.page-item.active .page-link {
    background: linear-gradient(45deg, #007bff, #00d4ff) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

/* Pill Checkboxes */
.form-check {
    margin-bottom: 10px;
    padding-left: 0;
}

.form-check-input {
    display: none; /* Hide default checkbox */
}

.form-check-label {
    display: block;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-check-input:checked + .form-check-label {
    background: rgba(0, 212, 255, 0.15);
    border-color: #00d4ff;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.filter-button {
    height: 50px !important;
    border-radius: 12px !important;
    background: linear-gradient(45deg, #007bff, #00d4ff) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
    cursor: pointer;
}

.filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 212, 255, 0.4);
}

/* =========================================================================
   Proportional Photo Gallery (Listing Detail Page)
   ========================================================================= */
.photo-all .item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.photo-all .item a {
    display: block;
    width: 100%;
    height: 100%;
}

.photo-all .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-all .item:hover img {
    transform: scale(1.1);
}

.photo-all .item .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.photo-all .item:hover .icon {
    opacity: 1;
}

.photo-all .item .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 212, 255, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.photo-all .item:hover .bg {
    opacity: 1;
}

/* =========================================================================
   Phase 3: Global Button Polish
   ========================================================================= */
.btn-primary, .btn-success {
    background: linear-gradient(45deg, #007bff, #00d4ff) !important;
    border: none !important;
    border-radius: 50px !important; /* Pill shape */
    color: #fff !important;
    font-weight: 700 !important;
    padding: 12px 24px !important; /* Slightly adjusted padding */
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2) !important;
    white-space: nowrap !important; /* Prevent text wrapping */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.btn-primary:hover, .btn-success:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.4) !important;
    background: linear-gradient(45deg, #00d4ff, #007bff) !important;
}

/* =========================================================================
   Phase 3: Pricing Page Cards
   ========================================================================= */
.pricing .row {
    display: flex !important;
    flex-wrap: wrap !important;
}

.pricing .col-lg-4 {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 30px !important;
}

.pricing .card {
    background: linear-gradient(145deg, rgba(20,20,25,0.95), rgba(10,10,15,0.9)) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 32px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    color: #fff !important;
    padding: 40px 15px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex !important;
    flex-direction: column !important;
    flex: 1 0 auto !important; /* Force equal height */
}

.pricing .card-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 0 auto !important; /* Fill card height */
    padding: 0 !important;
}

.pricing .card:hover {
    transform: translateY(-15px) scale(1.02) !important;
    border-color: rgba(0, 212, 255, 0.5) !important;
    box-shadow: 0 40px 80px rgba(0, 212, 255, 0.2) !important;
}

.pricing .card-title {
    color: #00d4ff !important;
    letter-spacing: 2px;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    margin-bottom: 25px !important;
}

.pricing .card-price {
    color: #fff !important;
    font-size: 2.8rem !important;
    font-weight: 900 !important;
    margin-bottom: 30px !important;
}

.pricing .card-price span {
    color: #00d4ff !important;
}

.pricing .period {
    font-size: 1rem !important;
    color: #888 !important;
    font-weight: 400 !important;
}

.pricing ul.fa-ul li {
    color: #e0e0e0 !important;
    margin-bottom: 18px !important;
    font-size: 1.05rem !important;
}

.pricing ul.fa-ul li i {
    color: #00d4ff !important;
}

.pricing hr {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 25px 0 !important;
}

.pricing .btn {
    margin-top: auto !important; /* Push button to the bottom */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem !important;
    width: 100% !important;
}

/* =========================================================================
   Phase 3: FAQ Panels
   ========================================================================= */
.faq .panel {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    margin-bottom: 20px !important;
    overflow: hidden;
}

.faq .panel-heading {
    background: rgba(255, 255, 255, 0.03) !important;
    padding: 20px !important;
    border-bottom: none !important;
}

.faq .panel-title a {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1.1rem;
}

.faq .panel-body {
    background: rgba(0, 0, 0, 0.4) !important;
    color: #ccc !important;
    padding: 20px !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
}

/* =========================================================================
   Phase 3: Car Features Grid (Listing Detail)
   ========================================================================= */
.car-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.3);
}

.feature-card .f-label {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-card .f-value {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

/* =========================================================================
   Phase 3: Sidebar Widgets (Listing Detail)
   ========================================================================= */
.ls-widget {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
}

.ls-widget h2 {
    font-size: 1.3rem !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.ls-widget .table, .ls-widget .table td {
    background: transparent !important;
    border: none !important;
    color: #ccc !important;
}

.ls-widget .table td {
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
/* =========================================================================
   Phase 4: Modern Premium Footer & WhatsApp
   ========================================================================= */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #000 !important;
    height: auto !important; /* Allow content to define height */
}

.modern-footer {
    background: #000 !important;
    padding: 100px 0 0 !important;
    color: #888;
    position: relative;
    overflow: hidden;
    margin-bottom: 0 !important;
}

.footer-logo {
    height: 40px;
    margin-right: 15px;
    background-color: rgba(255, 255, 255, 0.95); /* Light background to make logo visible */
    padding: 6px 12px;
    border-radius: 12px; /* Small 'ghera' or outline */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.footer-brand-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.footer-description {
    line-height: 1.8;
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-title {
    color: #fff !important;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
    display: inline-block;
}

.social-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-circle:hover {
    background: #fff;
    color: #000;
    transform: translateY(-5px);
}

.footer-newsletter-text {
    line-height: 1.6;
}

.newsletter-pill {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.newsletter-pill input {
    background: transparent;
    border: none;
    color: #fff !important;
    width: 100%;
}

.newsletter-pill input::placeholder {
    color: #555;
}

.btn-subscribe {
    background: #fff !important;
    color: #000 !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 10px 25px !important;
    font-weight: 800 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
}

.btn-subscribe:hover {
    background: #00d4ff !important;
    color: #fff !important;
}

/* Footer Bottom Section */
.footer-bottom-wrapper {
    position: relative;
    padding: 40px 0 40px; /* Standardized padding for clean termination */
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bg-text {
    position: absolute;
    bottom: 0; /* Changed from -5px to 0 to prevent any possible overflow */
    left: 50%;
    transform: translateX(-50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(255,255,255,0.012); 
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    line-height: 0.8; /* Tighter line height */
}

.footer-bottom-content {
    position: relative;
    z-index: 1;
}

.copyright-text {
    font-size: 0.9rem;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 25px;
    justify-content: flex-end;
}

.footer-bottom-links li a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-bottom-links li a:hover {
    color: #fff;
}

/* WhatsApp Floating Button - Premium Refined */
.modern-whatsapp {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
    background: #1ebe57;
}

.modern-whatsapp i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

@media (max-width: 768px) {
    /* Footer columns — center everything */
    .modern-footer .col-lg-4,
    .modern-footer .col-lg-2,
    .modern-footer .col-md-6 {
        text-align: center;
    }

    /* Brand logo + name row */
    .footer-brand {
        justify-content: center;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    /* Address / email / phone block */
    .footer-description {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    /* Social icons row */
    .footer-socials {
        justify-content: center;
    }

    /* Links lists */
    .footer-links {
        text-align: center;
    }

    /* Newsletter pill stretches full width */
    .newsletter-pill {
        max-width: 100%;
    }

    /* Bottom bar links */
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    /* Copyright text */
    .copyright-text {
        text-align: center;
    }

    /* WhatsApp button size on mobile */
    .modern-whatsapp {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}

/* =========================================================================
   Phase 5: Modern Page Designs (FAQ, About, Privacy, Terms, Auth)
   ========================================================================= */

/* Hero Banner Override */
.page-banner {
    padding: 120px 0 !important;
    background-size: cover !important;
    background-position: center !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
}

.page-banner-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(8, 8, 10, 0.95) 0%, rgba(0, 212, 255, 0.2) 100%) !important;
    z-index: 1 !important;
}

.page-banner h1 {
    position: relative !important;
    z-index: 2 !important;
    font-size: 4rem !important;
    font-weight: 900 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: -2px !important;
    margin-bottom: 15px !important;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

.page-banner .breadcrumb {
    position: relative !important;
    z-index: 2 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
}

.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a {
    color: rgba(255,255,255,0.6) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 1.5px !important;
    text-decoration: none !important;
}

.page-banner .breadcrumb-item.active {
    color: #00d4ff !important;
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.3) !important;
}

/* Glass Card Global */
.ag-glass-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 32px !important;
    padding: 50px !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4) !important;
    color: #fff !important;
}

/* FAQ Redesign */
.ag-faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.ag-faq-item {
    margin-bottom: 20px !important;
    border-radius: 20px !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.ag-faq-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 212, 255, 0.2);
}

.ag-faq-header {
    padding: 25px 35px !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.ag-faq-header h4 {
    margin: 0 !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #fff !important;
}

.ag-faq-header .icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ag-faq-item.active .ag-faq-header .icon {
    transform: rotate(180deg);
    background: #00d4ff;
    color: #fff;
}

.ag-faq-content {
    padding: 0 35px 30px !important;
    color: #aaa !important;
    line-height: 1.8 !important;
    font-size: 1.05rem !important;
    display: none;
}

.ag-faq-item.active .ag-faq-content {
    display: block;
}

/* Auth Pages (Login/Register) */
.ag-auth-section {
    background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(0, 123, 255, 0.05), transparent);
    padding: 80px 0;
}

.ag-auth-card {
    max-width: 550px;
    margin: 0 auto;
}

.ag-auth-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: -1px;
}

.ag-auth-subtitle {
    color: #888;
    text-align: center;
    margin-bottom: 45px;
    font-size: 1.1rem;
}

.ag-input-group {
    position: relative;
    margin-bottom: 25px;
}

.ag-input-group i {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #00d4ff;
    font-size: 1.3rem;
    z-index: 5;
}

.ag-input-group .form-control {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    height: 64px !important;
    border-radius: 20px !important;
    padding-left: 60px !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ag-input-group .form-control:focus {
    background: rgba(0, 0, 0, 0.7) !important;
    border-color: #00d4ff !important;
    box-shadow: 0 0 0 5px rgba(0, 212, 255, 0.15) !important;
}

.ag-auth-btn {
    width: 100%;
    height: 64px;
    border-radius: 20px !important;
    background: linear-gradient(45deg, #007bff, #00d4ff) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.3) !important;
    transition: all 0.3s ease !important;
    margin-top: 15px;
}

.ag-auth-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.5) !important;
}

.ag-auth-footer {
    text-align: center;
    margin-top: 35px;
    color: #888;
    font-size: 1rem;
}

.ag-auth-footer a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 700;
    margin-left: 5px;
}

/* About & Legal Layout */
.ag-page-section {
    padding: 100px 0;
}

.ag-legal-text {
    line-height: 2.2;
    color: #bbb !important;
    font-size: 1.15rem;
}

.ag-legal-text h2, .ag-legal-text h3 {
    color: #fff !important;
    font-weight: 800;
    margin: 50px 0 25px;
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.ag-legal-text p {
    margin-bottom: 30px;
}

.ag-legal-text ul {
    padding-left: 0;
    margin-bottom: 40px;
}

.ag-legal-text ul li {
    margin-bottom: 18px;
    list-style: none;
    padding-left: 35px;
    position: relative;
}

.ag-legal-text ul li::before {
    content: "\F64C"; /* remixicon arrow */
    font-family: 'remixicon';
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-size: 1.2rem;
}

/* About Specific Grid */
.ag-about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.ag-about-card {
    padding: 45px;
    text-align: center;
}

.ag-about-card i {
    font-size: 3.5rem;
    color: #00d4ff;
    margin-bottom: 25px;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.3));
}

.ag-about-card h3 {
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
}

.ag-about-card p {
    color: #888;
    line-height: 1.7;

}

/* =========================================================================
   Ultra Modern WhatsApp Enquiry Button
   ========================================================================= */
.whatsapp-btn {
    background: #25D366 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 18px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2) !important;
    text-decoration: none !important;
    text-align: center;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.2;
    height: auto !important;
    min-height: 44px;
    font-size: 14px !important;
    max-width: 100%;
}

.whatsapp-btn.w-100 {
    display: flex !important;
    width: 100% !important;
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4) !important;
    background: #20ba5a !important;
    color: #fff !important;
}

.whatsapp-btn i {
    font-size: 20px;
}

/* Modal Styling for Dark Theme */
#whatsappEnquiryModal .modal-content {
    background: #131316 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

#whatsappEnquiryModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 30px;
}

#whatsappEnquiryModal .modal-title {
    color: #25D366 !important;
    font-weight: 800;
}

#whatsappEnquiryModal .modal-body {
    padding: 30px;
}

#whatsappEnquiryModal .form-control {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border-radius: 12px !important;
    height: 50px !important;
    padding-left: 20px !important;
}

#whatsappEnquiryModal .form-control:focus {
    border-color: #25D366 !important;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.15);
}

#whatsappEnquiryModal .btn-whatsapp-submit {
    background: linear-gradient(45deg, #25D366, #128C7E) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700;
    width: 100%;
    height: 50px;
    border-radius: 12px;
    margin-top: 10px;
}

#whatsappEnquiryModal label {
    color: rgba(255,255,255,0.6) !important;
    margin-bottom: 8px;
    display: block;
}

#whatsappEnquiryModal .close {
    color: #fff !important;
    text-shadow: none;
    opacity: 0.5;
}

#whatsappEnquiryModal .close:hover {
    opacity: 1;
}

.listing-card-whatsapp {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 10;
}

.listing-card-whatsapp a {
    background: rgba(37, 211, 102, 0.2);
    backdrop-filter: blur(10px);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.listing-card-whatsapp a:hover {
    background: #25D366;
    color: #fff;
    transform: scale(1.1);
}

/* =========================================================================
   Customer Panel & Form Visibility Fixes
   ========================================================================= */

/* Global Label Visibility */
label {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
}

/* Form Control Visibility */
.form-control, 
select.form-control, 
textarea.form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    height: 50px;
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #00d4ff !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2) !important;
    outline: none !important;
}

/* Dashboard Box Fixes */
.dashboard-box-3 {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    color: #fff !important;
}

.dashboard-box-3 table tr td {
    color: #ccc !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    padding: 15px 20px !important;
}

.dashboard-box-3 table tr td:first-child {
    color: #fff !important;
    font-weight: 600;
}

/* Sidebar Fixes */
.user-sidebar .btn-dark {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    margin-bottom: 10px !important;
    border-radius: 12px !important;
    text-align: left !important;
    padding: 12px 20px !important;
}

.user-sidebar .btn-dark:hover {
    background: linear-gradient(45deg, #007bff, #00d4ff) !important;
    border-color: transparent !important;
}

/* Pricing Button Fixes */
.pricing .btn-primary {
    background: linear-gradient(45deg, #007bff, #00d4ff) !important;
    border: none !important;
    border-radius: 100px !important;
    color: #fff !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 14px 20px !important;
    margin-top: 15px !important;
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3) !important;
    transition: all 0.3s ease !important;
}

.pricing .btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.5) !important;
    background: linear-gradient(45deg, #00d4ff, #007bff) !important;
}

.pricing .card {
    padding: 0 !important;
}

.pricing .card-body {
    padding: 2.5rem 2rem !important;
}
