/* ==========================================================================
   SKYTUNISIA PREMIUM INTERNAL THEME - ADAPTED STYLE
   Designed to match index_new.html while fitting internal page structures.
   ========================================================================== */

/* Import Core Variables & Fonts */
@import url('sky-premium-complete.css');

:root {
    /* Core Palette matching index_new.html */
    --primary-blue: #0770E3;
    --primary-dark: #054A9F;
    --primary-light: #E8F2FF;
    --accent-purple: #7B61FF;
    --accent-pink: #FF4D8D;

    /* Semantic Colors */
    --bg-page: #F9FAFB;
    --bg-card: #FFFFFF;
    --text-main: #111827;
    --text-muted: #6B7280;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #0770E3 0%, #7B61FF 100%);
    --gradient-hero: linear-gradient(135deg, #0A1F44 0%, #1E3A8A 50%, #7B61FF 100%);

    /* Spacing */
    --navbar-height: 72px;
}

/* 1. Base Reset & Typography */
body {
    background-color: var(--bg-page) !important;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.section-title {
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: -0.02em;
}

/* 2. Premium Navbar (Sticky & Glass) */
.navbar {
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo,
.logo-text {
    font-weight: 800 !important;
    font-size: 26px !important;
    background: var(--gradient-brand) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500 !important;
    transition: color 0.2s ease;
}

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

.nav-cta {
    background: var(--gradient-brand) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 10px 24px !important;
    box-shadow: 0 4px 12px rgba(7, 112, 227, 0.25) !important;
    border: none !important;
}

/* 3. Compact Hero Section (for Internal Pages) */
.hero-section {
    margin-top: var(--navbar-height);
    background: var(--gradient-hero) !important;
    padding: 80px 0 140px 0 !important;
    /* Extra bottom padding for search overlap */
    position: relative;
    text-align: center;
    color: white;
    margin-bottom: 0 !important;
}

.hero-title {
    color: white !important;
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem !important;
    font-weight: 400;
}

/* 4. Floating Search Widget */
.search-widget-container {
    margin-top: -100px;
    /* Overlaps Hero */
    position: relative;
    z-index: 20;
    padding-bottom: 40px;
}

.search-card {
    background: var(--bg-card) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px !important;
    /* Wrapper padding */
}

/* 5. Legacy Cleanup */
#base-search-form,
.outdated-browser {
    display: none !important;
}

/* 6. Cards & Results styling */
.card,
.destination-card,
.result-item {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

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

/* 7. Footer Adaptation */
footer.footer {
    background: #051229 !important;
    color: white !important;
    border-top: none !important;
    padding-top: 60px !important;
}

footer a {
    color: #9CA3AF !important;
    transition: color 0.2s;
}

footer a:hover {
    color: white !important;
}

/* 8. Specific Inputs & Buttons */
.btn,
button {
    font-family: 'Outfit', sans-serif;
}

/* Buttons in search widget */
button[type="submit"],
.btn-search {
    background: var(--gradient-brand) !important;
    color: white !important;
}

/* 9. Utility Overrides */
.text-primary {
    color: var(--primary-blue) !important;
}

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

.bg-light {
    background-color: var(--bg-page) !important;
}

/* 10. Responsive Tweaks */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 120px 0 !important;
    }

    .hero-title {
        font-size: 2rem !important;
    }


    .search-widget-container {
        margin-top: -80px;
    }
}

/* 11. Newsletter Success Modal */
.newsletter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 31, 68, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.newsletter-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.newsletter-modal {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 60px 40px;
    border-radius: 32px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.newsletter-modal-overlay.active .newsletter-modal {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 30px;
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-main);
}

.modal-text {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-close-btn {
    background: var(--text-main);
    color: white;
    padding: 14px 32px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 12. Premium Rating Badges */
.rating-badge {
    color: white !important;
    border-radius: 999px !important;
    padding: 2px 10px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.rating-excellent {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%) !important;
}

.rating-good {
    background: linear-gradient(135deg, #0284C7 0%, #0EA5E9 100%) !important;
}

.rating-average {
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%) !important;
}

.rating-below-average {
    background: linear-gradient(135deg, #EB5E28 0%, #FF8C42 100%) !important;
}

.rating-none {
    background: var(--gray-400) !important;
    opacity: 0.7;
}