/* ============================================
   Amazing Travel - Chorvatsko
   Modern, Responsive CSS Framework v2.0
   ============================================ */

/* ============================================
   CSS Variables & Design Tokens
   ============================================ */
:root {
    /* Colors - Brand Palette */
    --color-primary: #0088CC;
    /* Vibrant Sea Blue */
    --color-primary-dark: #006699;
    --color-primary-light: #4DB8FF;
    --color-secondary: #F7E7CE;
    /* Warm Sand */
    --color-secondary-dark: #D4B483;
    --color-accent: #FF5E5E;
    /* Energetic Coral */
    --color-accent-hover: #FF4444;

    /* Colors - Neutrals */
    --color-white: #FFFFFF;
    --color-black: #111111;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;

    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Shadows - Soft & Modern */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Container */
    --container-max-width: 1280px;
    --container-padding: 2rem;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: 12px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-700);
    background-color: var(--color-gray-50);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h4 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
    margin-bottom: var(--spacing-md);
    max-width: 65ch;
}

/* ============================================
   Layout Components
   ============================================ */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.main-content {
    min-height: 80vh;
}

/* ============================================
   Header & Navigation
   ============================================ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.navbar {
    padding: var(--spacing-sm) 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.01em;
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.02);
}

.logo i {
    font-size: 1.8rem;
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    font-weight: 600;
    color: var(--color-gray-600);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--color-primary);
    background-color: rgba(0, 136, 204, 0.08);
}

.nav-link.active {
    color: var(--color-primary);
    background-color: rgba(0, 136, 204, 0.12);
}

.nav-cta {
    background: var(--color-primary);
    color: var(--color-white) !important;
    padding: 0.75rem 1.75rem;
    margin-left: 0.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.nav-cta:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
    background: transparent;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-gray-800);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Buttons & CTAs
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    filter: brightness(1.1);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    filter: brightness(1.1);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: 2px solid var(--color-white);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--color-gray-100);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 136, 204, 0.1);
}

.card-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.card-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    background: var(--color-white);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-gray-900);
}

.card-text {
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

/* ============================================
   Sections & Hero
   ============================================ */
.section {
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
}

.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--color-white);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

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

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    margin: 1.5rem auto 0;
    border-radius: var(--radius-full);
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray-600);
    font-size: 1.25rem;
    max-width: 700px;
    margin: -1.5rem auto var(--spacing-2xl);
}

/* ============================================
   Weather Widget
   ============================================ */
.weather-section {
    background: linear-gradient(135deg, #0088CC, #005A8F);
    color: var(--color-white);
    padding: var(--spacing-2xl) 0;
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.weather-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: transform var(--transition-base);
}

.weather-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   Booking Iframe Container
   ============================================ */
.booking-frame-container {
    background: var(--color-white);
    padding: 0;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    min-height: 800px;
    margin: 0 auto;
    border: 1px solid var(--color-gray-200);
}

/* ============================================
   Footer
   ============================================ */
/* ============================================
   Modern Footer
   ============================================ */
.modern-footer {
    background-color: #111827;
    /* Dark Gray 900 */
    color: #9CA3AF;
    /* Gray 400 */
    padding: 5rem 0 2rem;
    font-size: 0.95rem;
    border-top: 5px solid var(--color-primary);
}

.footer-top {
    display: grid;
   grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Brand Section */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-logo i {
    color: var(--color-primary-light);
    font-size: 1.8rem;
}

.brand-desc {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    max-width: 300px;
}

/* Links & Headings */
.footer-heading {
    color: var(--color-white);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

.footer-menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-menu a {
    color: #D1D5DB;
    /* Gray 300 */
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-menu a:hover {
    color: var(--color-primary-light);
    transform: translateX(5px);
}

/* Social Icons */
.social-links-modern {
    display: flex;
    gap: 0.75rem;
}

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

.social-links-modern a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
    border-color: var(--color-primary);
}

/* Contact Info */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-list i {
    color: var(--color-primary-light);
    font-size: 1.25rem;
    margin-top: 0.2rem;
    background: rgba(0, 136, 204, 0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.contact-list .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6B7280;
    /* Gray 500 */
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.contact-list a {
    color: var(--color-white);
    font-weight: 600;
    font-size: 1rem;
}

.contact-list a:hover {
    text-decoration: underline;
}

/* Bottom Bar */
.footer-bottom-modern {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-legal a:hover {
    color: var(--color-white);
}

.separator {
    color: #4B5563;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2rem;
    }
}

@media (max-width: 640px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom-modern {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   Grid & Utilities
   ============================================ */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.text-center {
    text-align: center;
}

.bg-gray-light {
    background-color: var(--color-gray-50);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
        --spacing-3xl: 4rem;
    }

    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --spacing-3xl: 3rem;
        --spacing-2xl: 2.5rem;
        --radius-xl: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-link {
        font-size: 1.125rem;
        width: 100%;
        padding: 1rem;
    }

    .nav-cta {
        margin: 1rem 0 0 0;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 220px;
    }

    .hero-section {
        min-height: 500px;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
    }
}

/* ============================================
   Cookie Consent
   ============================================ */
#cookie-consent-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#cookie-consent-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-consent-text p {
    font-size: 0.95rem;
    color: var(--color-gray-700);
    line-height: 1.5;
    margin: 0;
}

.cookie-consent-text strong {
    color: var(--color-gray-900);
    display: block;
    margin-bottom: 0.25rem;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.3);
}

.cookie-btn-accept:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 119, 190, 0.4);
}

.cookie-btn-decline {
    background: var(--color-gray-100);
    color: var(--color-gray-600);
}

.cookie-btn-decline:hover {
    background: var(--color-gray-200);
    color: var(--color-gray-800);
}

@media (max-width: 640px) {
    #cookie-consent-banner {
        bottom: 1rem;
        width: calc(100% - 2rem);
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .cookie-consent-buttons {
        width: 100%;
        gap: 0.75rem;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
        padding: 0.875rem;
    }
}
