/**
 * PkBuses Modern Hero Section Styles
 * Clean, modern design with dark gradient background
 */

/* Modern Header Styles */
.header-modern {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Text Logo Styles */
.site-logo {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
}

.site-logo:hover {
    text-decoration: none !important;
}

.logo-pk,
.site-logo .logo-pk,
.header-modern .logo-pk,
.header-area .logo-pk {
    color: #28a745 !important;
}

.logo-buses,
.site-logo .logo-buses,
.header-modern .logo-buses {
    color: #1a1f3c !important;
}

/* Sticky header - BUSES becomes white on dark bg */
.header-area.sticky .logo-buses {
    color: #fff !important;
}

/* Dark mode logo */
body.dark-mode .logo-buses {
    color: #fff !important;
}

/* Desktop navigation - flex layout */
@media (min-width: 992px) {
    .header-modern .main-menu-content nav ul {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .header-modern .main-menu-content nav ul li {
        margin: 0 8px;
    }
}

/* Mobile navigation - vertical dropdown */
@media (max-width: 991px) {
    .header-modern .main-menu-content nav ul {
        display: block;
        padding: 0;
    }

    .header-modern .main-menu-content nav ul li {
        display: block;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .header-modern .main-menu-content nav ul li a {
        display: block;
        padding: 12px 15px;
    }
}

.header-modern .main-menu-content nav ul li.active>a,
.header-modern .main-menu-content nav ul li>a:hover {
    color: #287eff;
}

.header-modern .main-menu-content nav ul li.active>a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background: #287eff;
}

.header-modern .main-menu-content nav ul li>a {
    position: relative;
    color: #333;
    font-weight: 500;
    padding: 8px 5px;
    transition: color 0.3s ease;
}

.header-modern .nav-btn .theme-btn {
    background: linear-gradient(135deg, #28a745 0%, #20903b 100%);
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.header-modern .nav-btn .theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

/* User Profile Dropdown */
.user-profile-dropdown {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #e0e5ec;
}

.profile-btn:hover {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745 0%, #20903b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.profile-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-btn .la-angle-down {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.user-profile-dropdown.open .profile-btn .la-angle-down {
    transform: rotate(180deg);
}

.profile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    width: 250px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-profile-dropdown.open .profile-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-header {
    padding: 16px;
    background: linear-gradient(135deg, #28a745 0%, #20903b 100%);
    color: #fff;
}

.profile-info strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.profile-info span {
    font-size: 12px;
    opacity: 0.9;
}

.profile-dropdown-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.profile-dropdown-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

.profile-dropdown-list li a:hover {
    background: #f8f9fa;
    color: #28a745;
}

.profile-dropdown-list li a i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.profile-dropdown-list li.divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

/* Dark mode profile dropdown */
body.dark-mode .profile-btn {
    background: #252545;
    border-color: #3a3a5e;
    color: #eaeaea;
}

body.dark-mode .profile-btn:hover {
    background: #2a2a4e;
    color: #fff;
}

body.dark-mode .profile-dropdown-menu {
    background: #1f1f3a;
}

body.dark-mode .profile-dropdown-list li a {
    color: #eaeaea;
}

body.dark-mode .profile-dropdown-list li a:hover {
    background: #252545;
}

body.dark-mode .profile-dropdown-list li.divider {
    background: #3a3a5e;
}

/* Hero Section Wrapper */
.modern-hero {
    background: linear-gradient(135deg, #1a1f3c 0%, #0f1628 50%, #0a0e17 100%);
    min-height: 500px;
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(40, 167, 69, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(45, 55, 95, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

/* Service Tabs */
.service-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.service-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-tab:first-child {
    border-radius: 25px 0 0 25px;
}

.service-tab:last-child {
    border-radius: 0 25px 25px 0;
}

.service-tab.active {
    background: #fff;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.service-tab i {
    font-size: 18px;
}

.service-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Search Card */
.search-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.search-card-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1f3c;
    margin-bottom: 8px;
    text-align: center;
}

.search-card-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

/* Search Fields */
.search-fields {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 180px;
}

.search-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.search-field-label i {
    font-size: 14px;
    color: #28a745;
}

.search-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e5ec;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.search-select:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

.search-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e5ec;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

.search-input::placeholder {
    color: #999;
}

/* Date Input with Icon */
.date-input-wrapper {
    position: relative;
}

.date-input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
    font-size: 16px;
    pointer-events: none;
}

.date-input-wrapper .search-input {
    padding-left: 42px;
}

/* Search Button */
.search-btn {
    background: linear-gradient(135deg, #28a745 0%, #20903b 100%);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 150px;
    justify-content: center;
}

.search-btn:hover {
    background: linear-gradient(135deg, #229a3e 0%, #1a7a32 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.search-btn i {
    font-size: 16px;
}

/* Popular Routes */
.popular-routes {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.popular-routes-label {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.popular-routes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-route {
    background: #f5f7fa;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.popular-route:hover {
    background: #e8f5e9;
    color: #28a745;
    border-color: #28a745;
}

.popular-route span {
    color: #28a745;
    margin: 0 4px;
}

/* Rent A Car Panel (Hidden by default) */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .modern-hero {
        padding: 40px 0 60px;
    }

    .search-card {
        padding: 25px 20px;
        border-radius: 15px;
        margin: 0 15px;
    }

    .search-card-title {
        font-size: 22px;
    }

    .search-fields {
        flex-direction: column;
        gap: 15px;
    }

    .search-field {
        width: 100%;
    }

    .search-btn {
        width: 100%;
    }

    .popular-routes-list {
        justify-content: center;
    }

    .service-tabs {
        margin-bottom: 20px;
    }

    .service-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Dark mode support */
body.dark-mode .search-card {
    background: #1f1f3a;
}

body.dark-mode .search-card-title {
    color: #eaeaea;
}

body.dark-mode .search-card-subtitle {
    color: #aaa;
}

body.dark-mode .search-select,
body.dark-mode .search-input {
    background: #252545;
    border-color: #3a3a5e;
    color: #eaeaea;
}

body.dark-mode .popular-route {
    background: #252545;
    color: #aaa;
}

body.dark-mode .popular-routes {
    border-top-color: #3a3a5e;
}

/* Rental Type Toggle */
.rental-type-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e5ec;
    max-width: 280px;
}

.rental-type-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: #fff;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rental-type-btn.active {
    background: linear-gradient(135deg, #28a745 0%, #20903b 100%);
    color: #fff;
}

.rental-type-btn:hover:not(.active) {
    background: #f5f7fa;
    color: #333;
}

/* Responsive for rental toggle */
@media (max-width: 768px) {
    .rental-type-toggle {
        margin-bottom: 15px;
        max-width: 100%;
    }

    .rental-type-btn {
        padding: 10px 16px;
        font-size: 12px;
    }

    .header-modern .main-menu-content nav ul {
        gap: 5px;
    }

    .header-modern .main-menu-content nav ul li {
        margin: 0 3px;
    }
}

/* Rent-a-car page button styling */
.rental-type-buttons {
    display: flex;
    gap: 10px;
}

.rental-type-buttons .rental-type-select {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.rental-type-buttons .rental-type-select.active {
    background: linear-gradient(135deg, #28a745 0%, #20903b 100%);
    border-color: #28a745;
}

.rental-type-buttons .rental-type-select:hover:not(.active) {
    background: #f5f7fa;
    border-color: #28a745;
    color: #28a745;
}

/* ================================
   BUS SERVICES PAGE STYLES
================================= */

/* Bus Services Section */
.bus-services-area {
    background: #f8f9fa;
}

/* Service Card */
.bus-service-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.bus-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.bus-service-card.hovered {
    transform: translateY(-8px);
}

/* Service Image */
.bus-service-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1f3c 0%, #2d3656 100%);
}

.bus-service-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s ease;
}

.bus-service-card:hover .bus-service-image img {
    transform: scale(1.05);
}

/* Image Overlay */
.bus-service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 31, 60, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bus-service-card:hover .bus-service-overlay {
    opacity: 1;
}

.view-btn {
    color: #fff;
    background: linear-gradient(135deg, #28a745 0%, #20903b 100%);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-btn:hover {
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

/* Service Content */
.bus-service-content {
    padding: 20px;
}

.bus-service-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1f3c;
    margin-bottom: 10px;
}

.bus-service-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Service Actions */
.bus-service-actions {
    display: flex;
    gap: 10px;
}

.btn-book {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #28a745 0%, #20903b 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-book:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.btn-coming-soon {
    display: inline-flex;
    align-items: center;
    background: #e9ecef;
    color: #6c757d;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* Info Section */
.info-area {
    background: linear-gradient(135deg, #1a1f3c 0%, #0f1628 100%);
}

.info-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #28a745 0%, #20903b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.info-icon i {
    font-size: 30px;
    color: #fff;
}

.info-card h4 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.info-card p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .bus-service-image {
        height: 150px;
    }

    .bus-service-content {
        padding: 15px;
    }

    .bus-service-title {
        font-size: 16px;
    }

    .info-card {
        margin-bottom: 20px;
    }
}

/* ================================
   HOMEPAGE INFO SECTIONS FIX
   Fix for light mode styling
================================= */

/* Safe Travel section - light gray background */
section.info-area.info-bg.bg-gray {
    background: #f8f9fa !important;
}

section.info-area.info-bg.bg-gray::before {
    display: none;
}

section.info-area.info-bg.bg-gray .icon-box .info-icon {
    color: #28a745;
}

section.info-area.info-bg.bg-gray .icon-box .info__title {
    color: #1a1f3c;
}

section.info-area.info-bg.bg-gray .icon-box p {
    color: #666;
}

/* Why Book with us section - clean white background */
section.info-area.info-bg:not(.bg-gray) {
    background: #fff !important;
}

section.info-area.info-bg:not(.bg-gray)::before {
    display: none;
}

section.info-area.info-bg:not(.bg-gray) .sec__title {
    color: #1a1f3c;
}

section.info-area.info-bg:not(.bg-gray) .icon-box .info-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

section.info-area.info-bg:not(.bg-gray) .icon-box .info-icon.bg-rgb {
    background: rgba(40, 167, 69, 0.1) !important;
    color: #28a745 !important;
}

section.info-area.info-bg:not(.bg-gray) .icon-box .info-icon.bg-rgb-2 {
    background: rgba(40, 127, 250, 0.1) !important;
    color: #287dfa !important;
}

section.info-area.info-bg:not(.bg-gray) .icon-box .info-icon.bg-rgb-3 {
    background: rgba(255, 165, 0, 0.1) !important;
    color: #ffa500 !important;
}

section.info-area.info-bg:not(.bg-gray) .icon-box .info__title {
    color: #1a1f3c;
    font-size: 18px;
    font-weight: 700;
}

section.info-area.info-bg:not(.bg-gray) .icon-box .info__desc {
    color: #666;
}

/* Dark mode support for info sections */
body.dark-mode section.info-area.info-bg.bg-gray {
    background: #1a1f3c !important;
}

body.dark-mode section.info-area.info-bg.bg-gray .icon-box .info__title {
    color: #fff;
}

body.dark-mode section.info-area.info-bg.bg-gray .icon-box p {
    color: #aaa;
}

body.dark-mode section.info-area.info-bg:not(.bg-gray) {
    background: #0f1628 !important;
}

body.dark-mode section.info-area.info-bg:not(.bg-gray) .sec__title {
    color: #fff;
}

body.dark-mode section.info-area.info-bg:not(.bg-gray) .icon-box .info__title {
    color: #fff;
}

body.dark-mode section.info-area.info-bg:not(.bg-gray) .icon-box .info__desc {
    color: #aaa;
}