/* ============================================
   SAFARVIBE - UAE DESERT SAFARI BOOKING SYSTEM
   Main Stylesheet
   Colors: #1E3A8A (Blue), #0D9488 (Teal), #F97316 (Orange)
   ============================================ */

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #F3F4F6;
    color: #1F2937;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1E3A8A;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #F97316;
    border-radius: 2px;
}

/* ========== NAVBAR ========== */
.navbar {
    background: #1E3A8A;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-brand {
    font-size: 1.75rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-brand a {
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: #0D9488;
}

.phone-btn {
    background: #F97316;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: bold;
}

.phone-btn:hover {
    background: #ea580c;
    color: white !important;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 0;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.search-box {
    background: white;
    display: inline-flex;
    padding: 0.5rem;
    border-radius: 50px;
    gap: 0.5rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.search-box select,
.search-box button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
}

.search-box select {
    background: #f3f4f6;
    cursor: pointer;
}

.search-box button {
    background: #F97316;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #ea580c;
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-block;
    background: #F97316;
    color: white;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(249,115,22,0.3);
}

.btn-secondary {
    display: inline-block;
    background: #0D9488;
    color: white;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #0f766e;
    transform: translateY(-2px);
}

.btn-book {
    display: inline-block;
    background: #0D9488;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-book:hover {
    background: #0f766e;
    transform: translateY(-2px);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: #F97316;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

/* ========== SAFARI CARDS GRID ========== */
.safari-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.safari-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.safari-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.safari-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.safari-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #F97316;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
}

.safari-card-content {
    padding: 1.5rem;
}

.safari-card-content h3 {
    font-size: 1.25rem;
    color: #1E3A8A;
    margin-bottom: 0.5rem;
}

.city {
    color: #6B7280;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.duration, .max-people {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.price {
    font-size: 1.75rem;
    font-weight: bold;
    color: #F97316;
    margin: 1rem 0;
}

.old-price {
    font-size: 0.875rem;
    color: #9CA3AF;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.child-price {
    font-size: 0.875rem;
    color: #6B7280;
    display: block;
}

/* ========== FEATURES SECTION ========== */
.features {
    background: white;
    padding: 4rem 0;
    margin: 2rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature {
    padding: 1.5rem;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    color: #1E3A8A;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature p {
    color: #6B7280;
    font-size: 0.875rem;
}

/* ========== BOOKING PAGE ========== */
.booking-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    margin: 3rem 0;
}

.booking-summary {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.booking-summary img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin: 1rem 0;
}

.booking-summary h3 {
    color: #1E3A8A;
    margin: 0.5rem 0;
}

.price-breakdown {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

.price-breakdown p {
    margin: 0.5rem 0;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #F97316;
    margin-top: 1rem;
    text-align: center;
}

.booking-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.booking-form h2 {
    color: #1E3A8A;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ========== SUCCESS PAGE ========== */
.success-container {
    max-width: 600px;
    margin: 4rem auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.success-icon {
    font-size: 5rem;
    color: #10B981;
    margin-bottom: 1.5rem;
}

.success-container h1 {
    color: #1E3A8A;
    margin-bottom: 0.5rem;
}

.booking-details {
    background: #F3F4F6;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: left;
}

.booking-details p {
    margin: 0.75rem 0;
}

.booking-details strong {
    color: #1E3A8A;
}

.total {
    font-size: 1.5rem;
    color: #F97316;
    font-weight: bold;
}

.status {
    color: #10B981;
    font-weight: bold;
}

.email-note {
    color: #6B7280;
    margin: 1rem 0;
}

.success-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-home {
    background: #1E3A8A;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.btn-home:hover {
    background: #152c6b;
}

.btn-book-another {
    background: #0D9488;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.btn-book-another:hover {
    background: #0f766e;
}

/* ========== FILTERS ========== */
.filters {
    text-align: center;
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.filter-btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background: white;
    color: #1E3A8A;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    font-weight: 500;
    border: 1px solid #E5E7EB;
}

.filter-btn.active,
.filter-btn:hover {
    background: #1E3A8A;
    color: white;
    border-color: #1E3A8A;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination a {
    padding: 0.5rem 1rem;
    background: white;
    color: #1E3A8A;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.pagination a.active,
.pagination a:hover {
    background: #1E3A8A;
    color: white;
}

/* ========== FOOTER ========== */
.footer {
    background: #1E3A8A;
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ========== LOADING SPINNER ========== */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #F97316;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== ALERTS & NOTIFICATIONS ========== */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid #10B981;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border-left: 4px solid #F59E0B;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 992px) {
    .booking-container {
        grid-template-columns: 1fr;
    }
    
    .booking-summary {
        position: static;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .navbar .container {
        flex-direction: column;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 12px;
        width: 90%;
        margin: 0 auto;
    }
    
    .search-box select,
    .search-box button {
        width: 100%;
        border-radius: 8px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .safari-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .success-container {
        margin: 2rem;
        padding: 1.5rem;
    }
    
    .success-buttons {
        flex-direction: column;
    }
    
    .filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .booking-form,
    .booking-summary {
        padding: 1rem;
    }
}