/* Základní styly */
:root {
    --primary-color: #74AACF;
    --secondary-color: #ff6b00;
    --text-color: #333;
    --bg-light: #f4f6f9;
    --fm-color: #28a745;
    --lm-color: #dc3545;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    height: 100%;
}

body {
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 0;
}

.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Záhlaví (Header) */
.main-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--bg-light);
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 80px;
    border-bottom: 1px solid #d9e4ee;
    box-shadow: 0 6px 16px rgba(29, 63, 95, 0.08);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    min-width: 0;
}

.top-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    height: auto;
    flex-shrink: 0;
}

.top-logo img {
    height: 64px;
    width: auto;
}

.logo-text {
    color: var(--primary-color);
    font-size: clamp(1.7rem, 2.1vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 auto;
    justify-content: center;
    flex-wrap: wrap;
    min-width: 0;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 155px;
}

.contact-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #559ac8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
    user-select: none;
    cursor: default;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.contact-item a:hover {
    color:#E1B55F;
    transform: scale(1.05);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.social-links::after {
    content: "";
}

.social-links a:not(.inquiry-btn):hover {
    color: #E1B55F;
    transform: scale(1.2);
    transition: all 0.3s ease;
}

.social-separator {
    color: var(--text-color);
    font-size: 1.5rem;
    line-height: 1;
    margin: 0 6px;
    pointer-events: none;
    user-select: none;
    cursor: default;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.8rem;
}

.inquiry-btn {
    font-size: 0.95rem !important;
    font-weight: 700;
    color: #fff !important;
    background: var(--secondary-color);
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 0.5rem 0.8rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.inquiry-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(255, 107, 0, 0.22);
    color: #fff;
}

.social-links a:not(:last-child)::after {
    content: "";
}

.search-box {
    display: flex;
}

.search-box input {
    padding: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
}

.search-box button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.main-nav {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav .container {
    display: flex;
    justify-content: center;
    padding: 1rem 1rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.4rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(0, 86, 179, 0.1);
    transform: translateY(-1px);
}

.nav-links a.highlight {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

.hamburger {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
}

/* Hero sekce */
.hero-section {
    height: 600px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: absolute;
    left: 5%;
    top: 40%;
    transform: translateY(-50%);
    z-index: 2;
    padding: 15px 20px;
    border-radius: 8px;
    display: inline-block;
    max-width: fit-content;
}


.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

.hero-content h1,
.hero-content p {
    font-size: clamp(1.6rem, 5vw, 4rem);
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    
}

.hero-prev, .hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5rem;
}

.hero-prev {
    left: 10px;
}

.hero-next {
    right: 10px;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-secondary {
    background: var(--secondary-color);
    color: #fff;
}

/* Karusel a Grid systém */
.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 1rem 0;
}

.carousel-btn {
    background: var(--bg-light);
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Sekce, tlačítka a karty */
.section {
    padding: 3rem 0;
}

.tab-content-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tab-content-section p {
    font-size: 1.15rem;
    max-width: 900px;
    color: #4a4a4a;
}

.service-page .container {
    max-width: 1200px;
    text-align: center;
    padding: 4.5rem 2rem;
}

.service-page h1 {
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    color: #2f6f98;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.service-page h1::after {
    content: "";
    display: block;
    width: 90px;
    height: 4px;
    margin: 0.9rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #74AACF, #E1B55F);
}

.service-page p {
    font-size: clamp(1.15rem, 1.5vw, 1.45rem);
    line-height: 1.9;
    color: #3e4852;
    max-width: 780px;
    margin: 0 auto;
    font-weight: 500;
}

.service-page.bg-light .container {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

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

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

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.py-5 {
    padding: 3rem 0;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.prev-btn, .next-btn {
    background: var(--bg-light);
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.destination-card, .tour-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s;
}

.destination-card:hover, .tour-card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 200px;
    background: #ccc; /* Placeholder for images */
}

.card-content {
    padding: 1rem;
}

.card-content h3, .card-content h4 {
    margin-bottom: 0.5rem;
}

.location, .date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.badge-lm, .badge-fm {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
}

.badge-lm { background-color: var(--lm-color); }
.badge-fm { background-color: var(--fm-color); }

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.blog-card {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.blog-card h4 {
    margin-bottom: 0.5rem;
}

.date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* Informační štítky (Badges) */
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Filtry */
.tours-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.tours-filter button {
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
}
.tours-filter button.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Promo bloky */
.promo-block {
    text-align: center;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 3rem 1rem;
    margin: 2rem auto;
}

/* Oblíbené destinace */
.destinations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.destination-item {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.destination-item h3 {
    margin-bottom: 0.5rem;
}

.destination-item p {
    color: var(--secondary-color);
    font-weight: bold;
}

/* Uživatelská historie a Top nabídky */
.history-offers {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.history ul {
    list-style: none;
    padding: 0;
}

.history li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.offer-card {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

/* Katalog zemí */
.countries-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.country {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.country ul {
    list-style: none;
    padding: 0;
}

.country li {
    padding: 0.25rem 0;
}

.footer {
    background: #222;
    color: #ddd;
    padding: 3rem 2rem;
    position: static;
    margin-top: auto;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
    text-align: center;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-col p a {
    color: #E1B55F;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col p a:hover {
    color: #fff;
}

.footer-col ul {
    list-style: none;
}

/* About Page Layout */
.about-layout {
    display: block;
}

.about-content {
    max-width: 100%;
}

.about-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.about-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 2.5rem 0 1.5rem 0;
    line-height: 1.3;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    text-align: justify;
    margin-bottom: 1rem;
}

.about-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.about-content li {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    color: #555;
}

.about-content b, .about-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.about-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.about-wrapper .section {
    flex: 1;
}

.sidebar-container {
    flex-shrink: 0;
    width: min(320px, 100%);
    margin-right: 0;
    max-height: calc(100vh - 250px);
}

.about-sidebar {
    width: 100%;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 180px;
}

.about-sidebar h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.partners-logos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.partners-logos img {
    max-width: 150px;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.partners-logos img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
}

.newsletter-form input[type="email"] {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
}

.footer-bottom {
    background: #111;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Partners */
.partners-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.partners-logos img {
    height: 60px;
    max-width: 150px;
    object-fit: contain;
}

@media (max-width: 1700px) {
    .social-links {
        gap: 10px;
    }

    .social-separator {
        margin: 0 8px;
    }
}

@media (max-width: 1100px) {
    .top-bar {
        height: auto;
        padding: 0.75rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }

    .top-logo {
        justify-content: center;
    }

    .top-logo img {
        height: 56px;
    }

    .logo-text {
        font-size: 1.8rem;
    }

    .top-bar-inner {
        flex-direction: column;
        align-items: center;
        gap: 0.65rem;
        width: 100%;
    }

    .contact-info {
        justify-content: center;
        gap: 8px;
    }

    .contact-item {
        min-width: 0;
        width: min(320px, 100%);
    }

    .social-links {
        justify-content: center;
        margin-left: 0;
        order: 2;
    }

    .social-links a {
        font-size: 1.8rem;
    }

    .inquiry-btn {
        font-size: 0.88rem !important;
    }

    .about-wrapper {
        flex-direction: column;
        gap: 1.25rem;
    }

    .sidebar-container {
        width: 100%;
        max-height: none;
    }

    .about-sidebar {
        margin-top: 0;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 900px) {
    .main-nav {
        background: transparent;
        box-shadow: none;
        position: static;
        height: 0;
    }

    .main-nav .container {
        justify-content: flex-end;
        align-items: center;
        position: static;
        padding: 0;
        height: 0;
    }

    .hamburger {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 46px;
        height: 46px;
        padding: 10px;
        border-radius: 12px;
        border: 1px solid #cfd9e4;
        background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
        box-shadow: 0 6px 18px rgba(19, 55, 90, 0.12);
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
        position: fixed;
        top: 0.7rem;
        right: 0.75rem;
        z-index: 1200;
    }

    .hamburger:hover {
        border-color: #9fc0da;
        box-shadow: 0 8px 22px rgba(19, 55, 90, 0.18);
    }

    .hamburger:active {
        transform: scale(0.97);
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2.5px;
        border-radius: 999px;
        background: #2f6f98;
        transform-origin: center;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    .hamburger.is-active span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.is-active span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        position: fixed;
        top: 4.1rem;
        right: 0.75rem;
        left: auto;
        width: min(320px, calc(100vw - 1.5rem));
        padding: 0.35rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border: 1px solid #e3e8ee;
        border-radius: 14px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
        z-index: 200;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
        pointer-events: none;
        transition: opacity 0.22s ease, transform 0.22s ease;
    }

    .nav-links.is-open {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .nav-links a {
        display: block;
        font-size: 1rem;
        font-weight: 600;
        padding: 0.78rem 0.9rem;
        border-radius: 10px;
    }

    .nav-links a:hover {
        transform: none;
    }

    .top-bar {
        padding-right: 4.1rem;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 0.55rem;
    }

    .top-logo {
        gap: 8px;
        height: auto;
    }

    .top-logo img {
        height: 48px;
    }

    .logo-text {
        font-size: 1.45rem;
    }

    .contact-item {
        min-width: 0;
        width: 100%;
        padding: 8px;
    }

    .contact-item a,
    .contact-label {
        font-size: 0.95rem;
    }

    .social-links {
        gap: 10px;
    }

    .social-links a {
        font-size: 1.35rem;
    }

    .inquiry-btn {
        margin-left: 6px;
        padding: 0.45rem 0.65rem;
        font-size: 0.8rem !important;
    }

    .hero-section {
        height: 55vh;
        min-height: 330px;
        max-height: 460px;
    }

    .hero-content {
        left: 1rem;
        right: 1rem;
        top: 50%;
        max-width: calc(100% - 2rem);
        padding: 10px 12px;
    }

    .hero-content h1 {
        font-size: clamp(1.4rem, 7.2vw, 2rem);
        line-height: 1.2;
    }

    .hero-content p {
        font-size: clamp(1rem, 5vw, 1.35rem);
        line-height: 1.25;
    }

    .footer {
        padding: 2rem 1rem;
    }
}