/* MONT-BLANC Natural Resort - Alpine Premium Theme */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    /* Alpine Color Palette */
    --snow-white: #f8fafc;
    --ice-blue: #e0f2fe;
    --glacier-blue: #0ea5e9;
    --mountain-navy: #0c4a6e;
    --alpine-dark: #082f49;
    --pine-green: #166534;
    --sunset-orange: #f97316;
    --gold-accent: #fbbf24;
    --rock-gray: #64748b;
    --powder-blue: #bae6fd;
    
    /* Gradients */
    --sky-gradient: linear-gradient(180deg, #0ea5e9 0%, #38bdf8 50%, #bae6fd 100%);
    --mountain-gradient: linear-gradient(135deg, #0c4a6e 0%, #164e63 50%, #0f766e 100%);
    --sunset-gradient: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fbbf24 100%);
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(12, 74, 110, 0.1);
    --shadow-medium: 0 8px 30px rgba(12, 74, 110, 0.15);
    --shadow-strong: 0 12px 40px rgba(12, 74, 110, 0.2);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--alpine-dark);
    line-height: 1.7;
    background: var(--snow-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    color: var(--alpine-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--sunset-gradient);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Navigation */
.navbar {
    background: rgba(8, 47, 73, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(8, 47, 73, 0.98) !important;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    color: var(--gold-accent);
    font-size: 1.6rem;
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: white !important;
    background: var(--glacier-blue);
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(8, 47, 73, 0.6), rgba(12, 74, 110, 0.7)), 
                url('../img/flegere-slopes.webp') center/cover no-repeat;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 800'%3E%3Cpath fill='%23ffffff' fill-opacity='0.03' d='M0,800 L0,600 Q360,500 720,550 T1440,500 L1440,800 Z'/%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M0,800 L0,650 Q360,550 720,600 T1440,550 L1440,800 Z'/%3E%3Cpath fill='%23ffffff' fill-opacity='0.08' d='M0,800 L0,700 Q360,600 720,650 T1440,600 L1440,800 Z'/%3E%3C/svg%3E") bottom/cover no-repeat;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(14, 165, 233, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(249, 115, 22, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    display: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Snowflake Animation */
@keyframes snowfall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}

.hero-section .snowflake {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    animation: snowfall linear infinite;
    pointer-events: none;
}

/* Buttons */
.btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--sunset-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.5);
    background: var(--sunset-gradient);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--alpine-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--glacier-blue);
    color: var(--glacier-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--glacier-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.3);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Cards */
.card {
    background: white;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--alpine-dark);
}

/* Slope Cards - Colored borders */
.slope-card {
    position: relative;
    border-left: 5px solid transparent;
}

.slope-card.green { border-left-color: #22c55e; }
.slope-card.blue { border-left-color: #3b82f6; }
.slope-card.red { border-left-color: #ef4444; }
.slope-card.black { border-left-color: #1f2937; }

.slope-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
}

.slope-card.green h3 { color: #22c55e; }
.slope-card.blue h3 { color: #3b82f6; }
.slope-card.red h3 { color: #ef4444; }
.slope-card.black h3 { color: #1f2937; }

/* Stats Cards */
.stat-card {
    background: var(--mountain-gradient);
    color: white;
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.stat-card h4 {
    color: var(--gold-accent);
    margin-bottom: 0.5rem;
}

.stat-card h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Area Cards */
.area-card {
    background: linear-gradient(145deg, white 0%, var(--ice-blue) 100%);
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.area-card:hover {
    background: linear-gradient(145deg, white 0%, var(--powder-blue) 100%);
}

.area-card .card-title i {
    color: var(--glacier-blue);
    margin-right: 8px;
}

/* Sections */
section {
    position: relative;
}

.bg-light {
    background: linear-gradient(180deg, var(--snow-white) 0%, var(--ice-blue) 100%) !important;
}

.bg-primary {
    background: var(--mountain-gradient) !important;
}

/* Forms */
.form-control,
.form-select {
    font-family: 'Outfit', sans-serif;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--glacier-blue);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--alpine-dark);
    margin-bottom: 0.5rem;
}

.form-check-input:checked {
    background-color: var(--glacier-blue);
    border-color: var(--glacier-blue);
}

/* Booking Form Specific */
#bookingForm .card {
    border: none;
    background: white;
    box-shadow: var(--shadow-medium);
}

#bookingForm h3 {
    color: var(--alpine-dark);
    position: relative;
    padding-bottom: 1rem;
}

#bookingForm h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--sunset-gradient);
    border-radius: 2px;
}

#bookingForm h5 {
    color: var(--mountain-navy);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

#bookingForm h5::before {
    content: '❄';
    color: var(--glacier-blue);
}

#total_tickets {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sunset-orange);
}

/* Alerts */
.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: 1.25rem 1.5rem;
}

.alert-info {
    background: linear-gradient(135deg, var(--ice-blue) 0%, var(--powder-blue) 100%);
    color: var(--mountain-navy);
    border-left: 4px solid var(--glacier-blue);
}

.alert-primary {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0.2) 100%);
    color: var(--alpine-dark);
    border-left: 4px solid var(--glacier-blue);
}

.alert-success {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.1) 0%, rgba(22, 163, 74, 0.2) 100%);
    color: var(--pine-green);
    border-left: 4px solid var(--pine-green);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.2) 100%);
    color: #b91c1c;
    border-left: 4px solid #ef4444;
}

/* Footer */
footer {
    background: var(--alpine-dark);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--sunset-gradient);
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--gold-accent) !important;
    text-decoration: none !important;
}

footer h5 {
    color: white;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold-accent);
}

/* Gallery */
.gallery img {
    border-radius: var(--radius-md);
    transition: all 0.4s ease;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-strong);
}

/* News Section */
.news-section {
    background: var(--mountain-gradient);
    position: relative;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23ffffff' fill-opacity='0.03' d='M50 0L100 50L50 100L0 50Z'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Sticky Sidebar */
.sticky-top {
    top: 100px !important;
}

.sticky-top.card {
    background: linear-gradient(145deg, white 0%, var(--ice-blue) 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

.img-fluid.rounded {
    border-radius: var(--radius-lg) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--ice-blue);
}

::-webkit-scrollbar-thumb {
    background: var(--glacier-blue);
    border-radius: 6px;
    border: 3px solid var(--ice-blue);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mountain-navy);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--glacier-blue);
    outline-offset: 3px;
}

/* 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-width: 0;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Mobile Optimizations */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--alpine-dark);
        padding: 1rem;
        border-radius: var(--radius-md);
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    section.py-5 {
        padding: 3rem 0 !important;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        background: white !important;
        color: black !important;
    }
}

/* Mountain Decoration */
.mountain-divider {
    height: 150px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 150'%3E%3Cpath fill='%230c4a6e' d='M0,150 L0,100 L200,50 L400,80 L600,20 L800,60 L1000,30 L1200,70 L1440,40 L1440,150 Z'/%3E%3Cpath fill='%23164e63' fill-opacity='0.7' d='M0,150 L0,120 L300,70 L500,100 L700,50 L900,80 L1100,60 L1300,90 L1440,70 L1440,150 Z'/%3E%3C/svg%3E") bottom/cover no-repeat;
}

/* Ski Trail Indicator */
.trail-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.trail-indicator.green {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.trail-indicator.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

.trail-indicator.red {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.trail-indicator.black {
    background: rgba(31, 41, 55, 0.15);
    color: #1f2937;
}
