@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #FFC107; /* Slunečná žlutá */
    --primary-dark: #FF9800; /* Tmavší žlutá/oranžová */
    --secondary-color: #0D47A1; /* Tmavě modrá */
    --secondary-light: #1976D2; /* Světlejší modrá */
    --text-color: #333333;
    --text-light: #777777;
    --bg-color: #F8F9FA;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
    --shadow: 0 10px 20px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--secondary-color);
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-dark);
}

/* Hero Section */
.hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 71, 161, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Destinations Grid (Home) */
.destinations {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    position: relative;
}

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

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

.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card-img {
    height: 250px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
    text-align: center;
}

.card-content h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.card-btn {
    display: inline-block;
    color: var(--secondary-light);
    font-weight: 600;
    transition: var(--transition);
}

.card-btn:hover {
    color: var(--primary-dark);
}

/* Destination Pages Specific */
.dest-page {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.dest-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dest-header h1 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.dest-desc {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.gallery img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery img:hover {
    transform: scale(1.02);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 5%;
    margin-top: 4rem;
}

/* Modal Popup styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 71, 161, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    background: var(--white);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(13, 71, 161, 0.15);
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 2.5rem;
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: transparent;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
}

.modal-close:hover {
    color: var(--secondary-color);
    background: var(--primary-color);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 1.5rem;
}

.modal-header h2 {
    color: var(--secondary-color);
    font-size: 2.2rem;
    font-weight: 700;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 1.05rem;
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--secondary-light);
    background: rgba(25, 118, 210, 0.05);
    padding: 6px 16px;
    border-radius: 20px;
}

.modal-meta-item i {
    color: var(--primary-dark);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-body h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
    margin-top: 0.5rem;
}

.program-timeline {
    position: relative;
    border-left: 2px solid rgba(25, 118, 210, 0.2);
    padding-left: 2rem;
    margin-left: 10px;
    margin-top: 1.5rem;
}

.program-day {
    position: relative;
    margin-bottom: 2rem;
}

.program-day:last-child {
    margin-bottom: 0;
}

.program-day::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 7px);
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--secondary-light);
    transition: var(--transition);
}

.program-day:hover::before {
    background-color: var(--secondary-color);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.program-day h4 {
    font-size: 1.15rem;
    color: var(--secondary-color);
    margin-bottom: 6px;
}

.program-day p {
    color: var(--text-color);
    font-size: 0.95rem;
}

.modal-footer {
    margin-top: 2.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 2px solid var(--bg-color);
    padding-top: 1.5rem;
}

/* Prevent scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Form styles inside modal */
.inquiry-form {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-intro {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input, 
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid rgba(13, 71, 161, 0.15);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
    width: 100%;
}

.form-group input[readonly] {
    background-color: rgba(25, 118, 210, 0.05);
    border-color: rgba(25, 118, 210, 0.1);
    color: var(--secondary-color);
    font-weight: 600;
    cursor: not-allowed;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-light);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
    border-top: 2px solid var(--bg-color);
    padding-top: 1.5rem;
}

.btn-secondary {
    background-color: transparent !important;
    color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.btn-secondary:hover {
    background-color: var(--bg-color) !important;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Pro jednoduchost skryjeme na malých mobilech, nebo by se dělalo hamburger menu */
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .gallery {
        grid-template-columns: 1fr;
    }
    .modal-container {
        padding: 1.5rem;
        width: 95%;
    }
    .modal-header h2 {
        font-size: 1.8rem;
    }
    .modal-meta {
        gap: 0.8rem;
    }
    .modal-meta-item {
        font-size: 0.9rem;
        padding: 4px 12px;
    }
}
