/* Circuit Detail Page Styles - Travel Theme */
:root {
    --primary-blue: #1a78bc;
    --primary-blue-dark: #1f1b72;
    --primary-blue-light: #1EC6D9;
    --primary-blue-lighter: #6685D9;
    --primary-blue-accent: #f19925;
    
    /* Fonts */
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Source Sans Pro', sans-serif;
}

/* Global Typography */
body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: #212529;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-blue);
}

h1, .h1 {
    font-weight: 700;
}

h2, .h2 {
    font-weight: 600;
}

h3, .h3 {
    font-weight: 600;
}

/* Card Styles with Travel Theme */
.circuit-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

/* Ensure cards with h-100 have flex layout for button positioning */
.card.h-100 {
    display: flex;
    flex-direction: column;
}

.card.h-100 .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card.h-100 .card-body .btn-view-circuit {
    margin-top: auto;
}

/* Clickable card images and titles */
.card a {
    display: block;
    transition: opacity 0.3s ease;
}

.card a:hover {
    opacity: 0.85;
}

.card-img-top {
    transition: opacity 0.3s ease;
}

.card-title a {
    color: inherit;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--primary-blue-accent);
}

.circuit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light), var(--primary-blue-accent), var(--primary-blue));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.circuit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(30, 139, 217, 0.15);
}

/* Card Header Styles */
.circuit-card .card-header {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

.circuit-card .card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.circuit-card .card-header h5 {
    margin: 0;
    color: white;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* All card headers h5 on circuit page should be white */
.card-header h5 {
    color: white !important;
}

/* Step Card Styles */
.step-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    background: white;
    overflow: hidden;
    border-left: 4px solid var(--primary-blue);
}

.step-card:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 25px rgba(30, 139, 217, 0.12);
    border-left-color: var(--primary-blue-light);
}

.step-card .card-header {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 600;
    border-radius: 12px 12px 0 0;
}

.step-card .card-header strong {
    color: white;
    font-size: 1.1rem;
}

.step-card .card-header .circuit-badge {
    background: white !important;
    color: var(--primary-blue) !important;
    border-color: white !important;
    margin: 0;
    flex-shrink: 0;
}

.step-card .card-body {
    padding: 1.25rem;
    background: white;
}

/* Info Card Styles */
.info-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    background: white;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(30, 139, 217, 0.12);
}

.info-card .card-header {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 600;
    border-radius: 16px 16px 0 0;
}

.info-card .card-body {
    padding: 1.5rem;
}

.info-card .card-body p {
    margin-bottom: 0.75rem;
    color: #495057;
    display: flex;
    align-items: center;
}

.info-card .card-body p strong {
    color: var(--primary-blue);
    min-width: 100px;
    margin-right: 0.5rem;
}

/* Agency Card Styles */
.agency-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    background: white;
    overflow: hidden;
}

.agency-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(30, 139, 217, 0.12);
}

.agency-card .card-header {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 600;
    border-radius: 16px 16px 0 0;
}

.agency-card .card-body {
    padding: 1.5rem;
    text-align: center;
}

.agency-card .card-body img {
    transition: transform 0.3s ease;
}

.agency-card:hover .card-body img {
    transform: scale(1.05);
}

/* Contact Card Styles */
.contact-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    background: var(--primary-blue);
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(30, 139, 217, 0.3);
}

.contact-card .card-body {
    padding: 1.5rem;
}

.contact-card .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Landscape Image Card */
.landscape-image-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    overflow: hidden;
    background: white;
}

.landscape-image-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(30, 139, 217, 0.12);
}

.landscape-image-card .card-body {
    padding: 0;
}

.landscape-image-card img {
    transition: transform 0.5s ease;
    width: 100%;
    height: auto;
    display: block;
}

.landscape-image-card:hover img {
    transform: scale(1.05);
}

/* To Know Section */
.to-know-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-blue);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.to-know-section h3 {
    color: #495057;
    margin-bottom: 1rem;
    font-weight: 600;
}

.to-know-section p {
    color: #6c757d;
    line-height: 1.8;
    margin: 0;
}

/* Itinerary Section */
.itinerary-section h3 {
    color: #495057;
    margin-bottom: 1.5rem;
    font-weight: 600;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-blue);
    display: inline-block;
}

/* Badges Enhancement */
.circuit-badge {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid #495057 !important;
    background: white !important;
    color: #212529 !important;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0.25rem;
}

.circuit-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #212529 !important;
}

/* Small badges for circuit cards */
.circuit-badge-small {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #495057 !important;
    background: white !important;
    color: #212529 !important;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    margin-right: 0.375rem;
    margin-bottom: 0.375rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Badge container in cards */
.card-body > .mb-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
    width: 100%;
}

.circuit-badge-small:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #212529 !important;
}

/* Clickable badges */
a.circuit-badge-small {
    text-decoration: none;
    cursor: pointer;
}

a.circuit-badge-small:hover {
    background: var(--primary-blue-accent) !important;
    color: white !important;
    border-color: var(--primary-blue-accent) !important;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(241, 153, 37, 0.3);
}

/* Featured circuits card background - Applied to all circuit cards */
.featured-circuits .card,
.circuits-section .card,
.top-circuits .card,
.circuits-list .card {
    background-color: rgba(26, 120, 188, 0.05); /* Very pale blue */
    border: 1px solid rgba(26, 120, 188, 0.1);
}

/* Destination badge in featured circuits - Applied to all circuit cards */
.featured-circuits .card-body .mb-2 > a:first-child.circuit-badge-small,
.featured-circuits .card-body .mb-2 > span:first-child.circuit-badge-small,
.circuits-section .card-body .mb-2 > a:first-child.circuit-badge-small,
.circuits-section .card-body .mb-2 > span:first-child.circuit-badge-small,
.top-circuits .card-body .mb-2 > a:first-child.circuit-badge-small,
.top-circuits .card-body .mb-2 > span:first-child.circuit-badge-small,
.circuits-list .card-body .mb-2 > a:first-child.circuit-badge-small,
.circuits-list .card-body .mb-2 > span:first-child.circuit-badge-small {
    background: rgba(241, 153, 37, 1) !important; /* Pale orange */
    color: #212529 !important;
    border: 1px solid #000000 !important;
    font-weight: 600;
    color: white !important;
}

/* Price badge in featured circuits - Applied to all circuit cards */
.featured-circuits .circuit-badge-price,
.circuits-section .circuit-badge-price,
.top-circuits .circuit-badge-price,
.circuits-list .circuit-badge-price {
    background: var(--primary-blue) !important;
    color: white !important;
    border: 1px solid #000000 !important;
    font-weight: 600;
}

/* Circuit detail page badges - same style as cards */
.circuit-detail-badges .circuit-badge-destination {
    background: rgba(241, 153, 37, 1) !important; /* Orange */
    color: white !important;
    border: 1px solid #000000 !important;
    font-weight: 600;
}

.circuit-detail-badges .circuit-badge-price {
    background: var(--primary-blue) !important;
    color: white !important;
    border: 1px solid #000000 !important;
    font-weight: 600;
}

/* Title Section */
.circuit-title-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.circuit-title-section h1 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Summary and Description Sections */
.circuit-summary,
.circuit-description {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.circuit-summary h3,
.circuit-description h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-blue);
    display: inline-block;
}

.circuit-summary p,
.circuit-description p {
    color: #6c757d;
    line-height: 1.8;
    margin: 0;
}

/* Button Styles - Contact and View Circuit */
.btn-contact,
.btn-view-circuit {
    background: var(--primary-blue-accent) !important;
    border: none !important;
    color: white !important;
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(241, 153, 37, 0.3);
    display: inline-block;
    text-decoration: none;
}

.btn-contact:hover,
.btn-view-circuit:hover {
    background: var(--primary-blue-lighter) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 133, 217, 0.4);
    color: white !important;
    text-decoration: none;
}

.btn-contact:active,
.btn-view-circuit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(241, 153, 37, 0.2);
}

/* Button sizes */
.btn-view-circuit.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-view-circuit.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Card Styles for all front pages */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(30, 139, 217, 0.12);
}

.card-img-top {
    transition: opacity 0.3s ease;
}

.card-title {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Section Titles */
section h2,
section h3 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Circuit Section Titles - Centered and Styled */
.circuit-section-title {
    text-align: center;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 3rem !important;
    position: relative;
    padding-bottom: 1.5rem;
}

.circuit-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-blue-accent);
    border-radius: 2px;
}

/* Hero Banner with Video Background */
.hero-banner-video {
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.hero-video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Navigation Styles */
.navbar-dark {
    background-color: #212529 !important;
}

/* Hero Search Form Styles */
.hero-search-form {
    position: relative;
    max-width: 600px;
}

.hero-search-form .form-control {
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #212529;
    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.hero-search-form .form-control:focus {
    background-color: #ffffff;
    border-color: var(--primary-blue-light);
    color: #212529;
    box-shadow: 0 0 0 0.2rem rgba(30, 198, 217, 0.25);
}

.hero-search-form .form-control::placeholder {
    color: rgba(33, 37, 41, 0.6);
}

#heroDestinationAutocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    z-index: 1000;
}

/* Responsive hero search */
@media (max-width: 768px) {
    .hero-search-form {
        flex-direction: column;
        max-width: 100%;
    }
    
    .hero-search-form .form-control {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .hero-search-form .btn {
        width: 100%;
        margin-left: 0;
    }
}

/* Search Section Styles */
.search-section {
    background: linear-gradient(135deg, #212529 0%, #1a1a1a 50%, #212529 100%);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(26, 120, 188, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(241, 153, 37, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #212529 0%, #1a1a1a 50%, #212529 100%);
    color: #ffffff;
    border-radius: 12px;
    margin-top: -120px;
    position: relative;
    z-index: 3;
    padding: 2rem !important;
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.search-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(30, 198, 217, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.search-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(241, 153, 37, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

.search-section .form-label {
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
}

.search-section .form-control {
    height: 40px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.search-section .search-input {
    height: 40px;
}

.search-section .dual-range-container {
    margin-top: 0;
    height: 40px;
}

.search-section .search-submit-btn {
    height: 40px;
    font-weight: 600;
    border-radius: 8px;
}

.search-section .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-blue-light);
    color: #ffffff;
}

.search-section .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-section small {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important;
    font-family: var(--font-body);
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary-blue-light) !important;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-direct-trip {
    color: var(--primary-blue);
}

.brand-hub {
    color: var(--primary-blue-accent);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dual Range Container (Single bar with 2 thumbs) */
.dual-range-container {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    margin-top: 0.5 rem;
}

.dual-range-input {
    position: absolute;
    width: 100%;
    height: 8px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    z-index: 2;
}

.dual-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: var(--primary-blue);
    border: 2px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(30, 139, 217, 0.3);
    transition: all 0.2s ease;
    pointer-events: all;
    position: relative;
    z-index: 3;
}

.dual-range-input::-webkit-slider-thumb:hover {
    background: var(--primary-blue-accent);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(30, 139, 217, 0.4);
}

.dual-range-input::-webkit-slider-runnable-track {
    height: 8px;
    background: transparent;
}

.dual-range-input::-moz-range-thumb {
    background: var(--primary-blue);
    border: 2px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(30, 139, 217, 0.3);
    transition: all 0.2s ease;
    pointer-events: all;
    position: relative;
    z-index: 3;
}

.dual-range-input::-moz-range-thumb:hover {
    background: var(--primary-blue-accent);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(30, 139, 217, 0.4);
}

.dual-range-input::-moz-range-track {
    height: 8px;
    background: transparent;
}

/* Background track for dual range */
.dual-range-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 8px;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    z-index: 1;
}

/* Range Input Styles (for duration) */
input[type="range"]:not(.dual-range-input) {
    background: white;
    border-radius: 8px;
    padding: 8px 0;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]:not(.dual-range-input)::-webkit-slider-track {
    background: white;
    border: 1px solid var(--primary-blue);
    border-radius: 8px;
    height: 8px;
}

input[type="range"]:not(.dual-range-input)::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: var(--primary-blue);
    border: 2px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(30, 139, 217, 0.3);
    transition: all 0.2s ease;
}

input[type="range"]:not(.dual-range-input)::-webkit-slider-thumb:hover {
    background: var(--primary-blue-accent);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(30, 139, 217, 0.4);
}

input[type="range"]:not(.dual-range-input)::-moz-range-track {
    background: white;
    border: 1px solid var(--primary-blue);
    border-radius: 8px;
    height: 8px;
}

input[type="range"]:not(.dual-range-input)::-moz-range-thumb {
    background: var(--primary-blue);
    border: 2px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(30, 139, 217, 0.3);
    transition: all 0.2s ease;
}

input[type="range"]:not(.dual-range-input)::-moz-range-thumb:hover {
    background: var(--primary-blue-accent);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(30, 139, 217, 0.4);
}

/* Autocomplete Styles */
.autocomplete-dropdown {
    position: absolute;
    z-index: 1000;
    background: white;
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    width: 100%;
    box-shadow: 0 8px 30px rgba(30, 139, 217, 0.15);
    margin-top: 4px;
    font-family: var(--font-body);
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
    color: #212529;
    font-weight: 500;
}

.autocomplete-item:hover {
    background: linear-gradient(90deg, var(--primary-blue-light), var(--primary-blue));
    color: white;
    transform: translateX(4px);
}

.autocomplete-item:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.autocomplete-item:first-child {
    border-radius: 10px 10px 0 0;
}

/* Card Image Carousel Styles */
.card-image-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.card-image-carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.card-image-carousel-item {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
    margin: 0;
    padding: 0;
}

.card-image-carousel-item > a {
    display: block;
    width: 100%;
    height: 100%;
}

.card-image-carousel-item img,
.card-image-carousel-item picture {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s, background 0.3s;
    opacity: 0;
    pointer-events: auto;
}

.card-image-carousel:hover .card-carousel-nav {
    opacity: 1;
}

.card-carousel-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.card-carousel-prev {
    left: 8px;
}

.card-carousel-next {
    right: 8px;
}

.card-carousel-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 10;
}

.card-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.card-carousel-dot.active {
    background: white;
}

.card-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .circuit-card,
    .info-card,
    .agency-card,
    .contact-card,
    .landscape-image-card {
        margin-bottom: 1rem;
    }
    
    .step-card {
        margin-bottom: 1rem;
    }
    
    .circuit-title-section h1 {
        font-size: 1.75rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    h3, .h3 {
        font-size: 1.5rem;
    }
}

/* Agency description styling */
.agency-description {
    line-height: 1.6;
}

.agency-description h1,
.agency-description h2,
.agency-description h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.agency-description p {
    margin-bottom: 1rem;
}

.agency-description ul,
.agency-description ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.agency-description a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.agency-description a:hover {
    color: var(--primary-orange);
}

.agency-description table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.agency-description table td,
.agency-description table th {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
}

.agency-description blockquote {
    border-left: 4px solid var(--primary-blue);
    padding-left: 1rem;
    margin-left: 0;
    font-style: italic;
    color: #6c757d;
}

/* SEO Content styling */
.seo-content {
    line-height: 1.6;
    color: #333;
}

.seo-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.seo-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-orange);
}

.seo-content p {
    margin-bottom: 1rem;
}

.seo-content ul,
.seo-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.seo-content li {
    margin-bottom: 0.5rem;
}

.seo-content table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.seo-content table th,
.seo-content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.seo-content table th {
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
}

.seo-content table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.seo-content a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.seo-content a:hover {
    color: var(--primary-orange);
}

.seo-content div[style*="border"] {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border: 1px solid #ccc !important;
    border-radius: 0.25rem;
}

