/* Travel Global Holidays - Custom Styles */

/* CSS Variables for Brand Colors */
:root {
    --primary-blue: #1E3A8A;
    --secondary-blue: #0EA5E9;
    --accent-gold: #F59E0B;
    --bg-light: #F8FAFC;
    --text-navy: #1E293B;
    --success-green: #10B981;
    --white: #FFFFFF;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
}

/* Typography */
body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-navy);
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-navy);
}

/* Bootstrap Color Overrides */
.bg-primary {
    background-color: var(--primary-blue) !important;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 500;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #1E40AF;
    border-color: #1E40AF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    color: white;
    font-weight: 500;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #0284C7;
    border-color: #0284C7;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-accent {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: white;
    font-weight: 600;
}

.btn-accent:hover, .btn-accent:focus {
    background-color: #D97706;
    border-color: #D97706;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.text-accent {
    color: var(--accent-gold) !important;
}

.text-navy {
    color: var(--text-navy) !important;
}

.text-success {
    color: var(--success-green) !important;
}

.bg-success {
    background-color: var(--success-green) !important;
}

/* Navigation Styles */
.navbar {
    background: linear-gradient(135deg, var(--primary-blue), #1E40AF);
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-gold) !important;
    transform: translateY(-1px);
}

.navbar-text {
    font-weight: 600;
    color: white !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(14, 165, 233, 0.8)),
                url('https://pixabay.com/get/g8370c4d9d8c13213cb12008e34e7a6837856eddd896f604bfd4d290de5c04f59debb1a05c929be94b76dbe0e895132fce7a0267546d6cdc9f2edef1b5d859c2c_1280.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85), rgba(14, 165, 233, 0.75));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.search-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.search-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Page Headers */
.search-header, .results-header, .contact-header, .about-header, .terms-header, .privacy-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
}

/* Cruise Cards */
.cruise-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.cruise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

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

.cruise-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.cruise-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
}

.cruise-type-badge .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Results Page Styles */
.cruise-result-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.cruise-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.cruise-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.cruise-result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cruise-result-card:hover .cruise-result-image {
    transform: scale(1.05);
}

.cruise-type-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
}

/* Form Styles */
.form-control, .form-select {
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--text-navy);
    margin-bottom: 0.5rem;
}

/* Trust Indicators */
.trust-indicator {
    padding: 2rem 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.trust-indicator:hover {
    transform: translateY(-2px);
}

.trust-indicator i {
    margin-bottom: 1rem;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

/* Contact Cards */
.contact-form-card, .contact-info-card {
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.contact-form-card:hover, .contact-info-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
}

.contact-method {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 1rem;
}

.contact-method:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    border-radius: 12px 12px 0 0;
}

.cruise-summary {
    border: 1px solid var(--gray-200);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    width: 90%;
    max-width: 500px;
}

.alert {
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
}

/* Feature Items */
.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Why Choose Image */
.why-choose-image img {
    border-radius: 12px;
}

/* Success States */
.success-icon {
    width: 100px;
    height: 100px;
    font-size: 3rem;
}

.step-number {
    width: 30px;
    height: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Price Display */
.price-display .h4 {
    line-height: 1;
}

/* Accordion Styles */
.accordion-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background: white;
    border: none;
    font-weight: 600;
    color: var(--text-navy);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-blue);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.15);
}

/* Destination Cards */
.destination-card {
    padding: 2rem;
    transition: transform 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        background-attachment: scroll;
    }
    
    .search-card {
        margin: 1rem 0;
    }
    
    .cruise-card {
        margin-bottom: 2rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .cruise-result-card .row {
        margin: 0;
    }
    
    .cruise-image-container {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 60vh;
        padding-top: 70px;
    }
    
    .search-card {
        padding: 1.5rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .success-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .flash-messages, footer {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .btn {
        display: none !important;
    }
    
    .cruise-card, .contact-form-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Accessibility Improvements */
.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 States */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .cruise-card,
    .service-card,
    .contact-form-card {
        border: 2px solid var(--text-navy);
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-accent {
        border: 2px solid var(--text-navy);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
}
