/* ============================================================
   Amazing Travel, s.r.o. — Hlavní CSS
   ============================================================ */

/* ── Globální reset a základ ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
    --color-primary:     #0057B8;
    --color-primary-50:  #EFF6FF;
    --color-accent:      #FF6B2C;
    --color-sea:         #00B4D8;
    --color-dark:        #0F1B2D;
    --radius-card:       1rem;
    --radius-btn:        0.75rem;
    --shadow-card:       0 4px 24px rgba(0,0,0,0.08);
    --shadow-card-lg:    0 8px 40px rgba(0,0,0,0.14);
    --transition-base:   all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Utility: Text gradient ────────────────────────────────── */
.text-gradient-hero {
    background: linear-gradient(135deg, #60A5FA 0%, #00B4D8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-warm {
    background: linear-gradient(135deg, #FF6B2C 0%, #FFB347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Header scroll-aware ───────────────────────────────────── */
#main-header.scrolled #topbar {
    height: 0;
    overflow: hidden;
    padding: 0;
    opacity: 0;
}

#main-header.scrolled nav {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* ── Hero slider ───────────────────────────────────────────── */
.hero-slide { transition: opacity 0.8s ease; }

/* ── Tour card ─────────────────────────────────────────────── */
.tour-card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    will-change: transform;
}

.tour-card:hover {
    transform: translateY(-6px);
}

/* ── Destination card ──────────────────────────────────────── */
.dest-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dest-card:hover {
    transform: translateY(-4px) scale(1.02);
}

/* ── Gallery lightbox ──────────────────────────────────────── */
#lightbox {
    transition: opacity 0.2s ease;
}

#lightbox.active {
    display: flex;
}

/* ── Weather widget ────────────────────────────────────────── */
.weather-widget {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.weather-current {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-sea) 100%);
    border-radius: 1rem;
    color: white;
}

.weather-temp {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.weather-icon-emoji {
    font-size: 3rem;
}

.weather-forecast {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .weather-forecast {
        grid-template-columns: repeat(4, 1fr);
    }
    .weather-forecast .day-7 { display: none; }
}

.weather-day {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 0.75rem 0.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: var(--transition-base);
}

.weather-day:hover {
    background: var(--color-primary-50);
    border-color: var(--color-primary);
}

.sea-temp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid rgba(0, 180, 216, 0.2);
    border-radius: 2rem;
    color: var(--color-sea);
    font-weight: 700;
    font-size: 0.875rem;
}

/* ── Cookie banner animace ─────────────────────────────────── */
.cookie-banner-animate {
    animation: slideUpBanner 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideUpBanner {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}

/* ── Search filter: range slider ───────────────────────────── */
input[type=range] {
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,87,184,0.3);
    transition: transform 0.2s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* ── Hamburger animace ─────────────────────────────────────── */
.hamburger-icon.open .line-1 {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-icon.open .line-2 {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-icon.open .line-3 {
    transform: translateY(-8px) rotate(-45deg);
    width: 100%;
}

/* ── Back to top ───────────────────────────────────────────── */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Loading skeleton pulse ────────────────────────────────── */
@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.skeleton {
    animation: skeleton-pulse 1.5s ease infinite;
    background: #e2e8f0;
    border-radius: 0.5rem;
}

/* ── Prose override ────────────────────────────────────────── */
.prose p { margin-bottom: 0.875rem; }
.prose p:last-child { margin-bottom: 0; }

/* ── Scrollbar styling ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* ── Mobile responsive fixes ───────────────────────────────── */
@media (max-width: 768px) {
    .weather-temp { font-size: 2rem; }

    #gallery {
        height: 200px !important;
    }
}
