/* ===== VARIABLES ===== */
:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --secondary: #6c757d;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    --gradient-warning: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
    --transition: all 0.3s ease;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.display-4 {
    font-size: 3.5rem;
    font-weight: 800;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

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

.min-vh-80 {
    min-height: 80vh;
}

/* Search Form Card */
.hero-section .card {
    border: none;
    border-radius: var(--border-radius-xl);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.hero-section .card-body {
    padding: 2rem;
}

/* Nav Pills Customization */
.nav-pills .nav-link {
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.nav-pills .nav-link.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.nav-pills .nav-link:not(.active) {
    background: rgba(255, 255, 255, 0.8);
    color: var(--dark);
}

.nav-pills .nav-link:not(.active):hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Form Controls */
.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    transform: translateY(-1px);
}

.btn {
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ===== TRUST INDICATORS ===== */
.bg-light {
    background-color: var(--light) !important;
}

/* ===== DESTINATION CARDS ===== */
.destination-card {
    transition: var(--transition);
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.destination-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.destination-image {
    position: relative;
    overflow: hidden;
}

.destination-image img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.destination-info {
    padding: 1rem;
}

/* ===== OFFER CARDS ===== */
.offer-card {
    border: 2px solid var(--warning);
    border-radius: var(--border-radius-xl);
    transition: var(--transition);
    background: var(--white);
}

.offer-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.offer-badge {
    font-size: 0.875rem;
    font-weight: 700;
}

.promo-code {
    font-family: 'Courier New', Courier, monospace;
    border-radius: var(--border-radius);
}

/* ===== HOW IT WORKS ===== */
.step-card {
    padding: 2rem 1rem;
    text-align: center;
    transition: var(--transition);
}

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

.step-number {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    font-weight: 700;
    transition: var(--transition);
}

.step-card:hover .step-number {
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.rating {
    color: var(--warning);
}

/* ===== TRAVEL GUIDES ===== */
.guide-card {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.guide-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

/* ===== PARTNER LOGOS ===== */
.partner-logo {
    transition: var(--transition);
    border: 1px solid #e9ecef;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.partner-logo:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* ===== MOBILE APP SECTION ===== */
.mobile-app-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle fill="rgba(255,255,255,0.1)" cx="200" cy="200" r="100"/><circle fill="rgba(255,255,255,0.05)" cx="800" cy="800" r="150"/></svg>');
}

.newsletter-section .container {
    position: relative;
    z-index: 2;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .hero-section .card-body {
        padding: 1.5rem;
    }
    
    .min-vh-80 {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-section .card-body {
        padding: 1rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: var(--gradient-primary) 1;
}

.shadow-hover {
    transition: var(--transition);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg) !important;
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== PRINT STYLES ===== */
@media print {
    .btn, .nav-pills, .hero-section::before {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* ===== 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: 0;
}

/* Focus styles for better accessibility */
a:focus, button:focus, .form-control:focus, .form-select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== ICON STYLES ===== */
.fas, .fab {
    line-height: inherit;
}

/* Custom icon sizes */
.icon-lg {
    font-size: 1.5rem;
}

.icon-xl {
    font-size: 2rem;
}

.icon-2xl {
    font-size: 3rem;
}

/* ===== BADGE STYLES ===== */
.badge {
    font-weight: 600;
    padding: 0.5em 0.75em;
}

.badge-pill {
    border-radius: 50rem;
}

/* ===== CARD ENHANCEMENTS ===== */
.card {
    border: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    background: var(--white);
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* ===== FORM ENHANCEMENTS ===== */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.input-group-text {
    background: var(--light);
    border: 2px solid #e9ecef;
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

/* ===== BUTTON VARIANTS ===== */
.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--gradient-warning);
    border: none;
    color: var(--dark);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, #007bff, #0056b3, #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}