/* Custom Styles for Savaari Website */

:root {
    --primary-blue: #0066cc;
    --orange-accent: #ff6600;
    --dark-blue: #003d7a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Top Bar */
.top-bar {
    background-color: #ff6600 !important;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 2px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    position: relative;
    color: #fff;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: url(/assets/images/main.jpeg);
    min-height: 600px;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-size: clamp(1.5rem, 5vw, 3rem);
}

/* Booking Form */
.card {
    border: none;
    border-radius: 10px;
}

.nav-pills .nav-link {
    color: #333;
    background-color: #f8f9fa;
    border-radius: 0;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-blue);
    color: white;
}

.form-label {
    color: #333;
    font-size: 0.9rem;
}

.form-control,
.input-group-text {
    border-color: #ddd;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.btn-warning {
    background-color: var(--orange-accent);
    border-color: var(--orange-accent);
    color: white;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-warning:hover {
    background-color: #e55a00;
    border-color: #e55a00;
    color: white;
}

.swap-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Rating Cards */
.rating-card {
    transition: transform 0.3s ease;
}

.rating-card:hover {
    transform: translateY(-5px);
}

/* Promotional Banners */
.promo-card {
    background-color: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255, 102, 0, 0.35) !important;
    border: 2px solid #ff6600;
}

.promo-icon {
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
}

/* Features Section */
.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(to bottom, #FF9933 0%, #FF9933 21%, #138808 112%);
}

@media (max-width: 768px) {
    .feature-icon {
        width: 80px;
        height: 80px;
    }

    .feature-icon i {
        font-size: 2rem !important;
    }
}

/* Services Section */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.service-image {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-features .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
}

/* Section Headers */
.section-header {
    border-radius: 5px;
}

/* Content Sections */
.content-section {
    background-color: white;
}

.content-image {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Service Lists */
.service-lists a {
    color: #fff;
    transition: color 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.service-lists a:hover {
    color: var(--primary-blue);
}

.service-lists h5 {
    color: #fff;
}

/* Footer */
footer {
    background-color: var(--dark-blue) !important;
}

footer a:hover {
    text-decoration: underline !important;
    opacity: 0.8;
}

.social-icons a {
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .card-body {
        padding: 1.5rem !important;
    }

    .nav-pills .nav-link {
        font-size: 0.75rem;
        padding: 0.5rem 0.5rem;
    }

    .btn-warning {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }

    .promo-icon {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .promo-card h5 {
        font-size: 0.9rem;
    }

    .service-image {
        min-height: 120px;
    }

    .content-image {
        min-height: 200px;
        margin-top: 1.5rem;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .nav-pills .nav-link {
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {

    .top-bar,
    .navbar,
    footer {
        display: none;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Modern Card Enhancements */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Modern Button Styles */
.btn {
    transition: all 0.3s ease;
    border-radius: 6px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

/* Modern Input Styles */
.form-control {
    transition: all 0.3s ease;
}

.form-control:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.2);
}

/* Loading Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.bg-primary {
    --bs-bg-opacity: 1;
    background-color: rgb(13 51 107 / 87%) !important;
}

section.service-lists.py-5.bg-light {
    background: linear-gradient(135deg, #ff6600, #ff6600de);
    color: #fff;
}

.features-section-box {
    background: linear-gradient(to bottom, #FF9933 0%, #FF9933 21%, #FFFFFF 52%, #138808 112%);
}

/* Page Header Banner */
.page-header-banner {
    background: #0d336b;
    background-image:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.page-header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px);
    opacity: 0.5;
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.breadcrumb-nav {
    display: flex;
    justify-content: center;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    list-style: none;
    align-items: center;
}

.breadcrumb-item {
    color: #fff;
    font-size: 0.95rem;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: ">";
    color: #fff;
    padding: 0 10px;
}

.breadcrumb-item a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb-item a:hover {
    opacity: 0.8;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

/* Main Content */
.main-content {
    padding: 60px 0;
    background: transparent;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Service Card */
.service-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Service Card Top (Blue Section) */
.service-card-top {
    background: linear-gradient(to bottom, #FF9933 0%, #FF9933 21%, #FFFFFF 52%, #138808 112%);
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.service-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.service-logo i {
    font-size: 2.5rem;
    color: #ffc107;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-primary-text-emphasis);
}

/* Service Card Bottom (White Section) */
.service-card-bottom {
    background: #fff;
    padding: 25px 20px;
    text-align: center;
}

.service-card-bottom h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0066cc;
    margin: 0;
    line-height: 1.4;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    padding: 30px 0;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 5px;
    padding: 0;
    margin: 0;
    align-items: center;
}

.page-item {
    margin: 0;
}

.page-link {
    display: block;
    padding: 10px 15px;
    color: #0066cc;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s;
    background: #fff;
    font-weight: 500;
}

.page-link:hover {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.page-item.active .page-link {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background: #fff;
    border-color: #dee2e6;
}

/* Footer */
.main-footer {
    background: #0d336b;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column h5 i {
    font-size: 1rem;
    color: #ff6600;
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s;
}

.footer-column ul li a:hover {
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #ff6600;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    margin: 0;
    color: #fff;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card-top {
        min-height: 100px;
        padding: 20px 15px;
    }

    .service-logo i {
        font-size: 2rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .service-card-bottom {
        padding: 20px 15px;
    }

    .service-card-bottom h3 {
        font-size: 1rem;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .header-contact {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }

    .breadcrumb-item {
        font-size: 0.85rem;
    }

    .service-logo {
        flex-direction: column;
        gap: 5px;
    }

    .service-logo i {
        font-size: 1.8rem;
    }

    .logo-text {
        font-size: 1rem;
    }
}

.city-dropdown {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0 10px;
    margin-top: 39px;
}

.city-dropdown li {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 0.5px solid lightgray;
}

/* Cab Card */
.cab-card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.cab-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.cab-image {
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cab-type-badge {
    margin-top: 0.5rem;
}

.cab-features .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    font-weight: 500;
}

.cab-info {
    margin-top: 1rem;
}

.cab-price h3 {
    font-size: 2rem;
    color: var(--primary-blue);
}

.cab-price small {
    font-size: 0.85rem;
}