/* ZMIANA STYLU NA NOWOCZESNY MOTOCMS + GOOGLE SANS FLEX */

:root {
    --primary: #b50e1c; 
    --primary-hover: #900a16;
    --dark: #1a1a1a;
    --light-bg: #f9f9f9;
    --text-color: #555555;
    --white: #ffffff;
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    font-weight: 300; 
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= NAV (Sticky) ================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(15, 15, 20, 0.95); 
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-contact {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.nav-logo {
    flex: 0 1 auto;
    text-align: center;
    display: flex;
    justify-content: center;
}

.nav-menu {
    flex: 1;
    list-style: none;
    display: flex;
    gap: 30px;
    justify-content: flex-end;
}

.nav-logo img {
    height: 38px; 
    transition: var(--transition);
}

.navbar.scrolled .nav-logo img {
    height: 34px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 300; 
    font-size: 1rem;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-phone {
    color: var(--white);
    text-decoration: none;
    font-weight: 300; 
    background: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-phone:hover {
    background: var(--primary-hover);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

/* ================= HERO Z ANIMOWANYM TŁEM ================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.hero-slider {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeZoom 24s infinite linear;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65));
}

@keyframes fadeZoom {
    0%   { opacity: 0; transform: scale(1); }
    4%   { opacity: 1; transform: scale(1.02); }
    25%  { opacity: 1; transform: scale(1.08); }
    29%  { opacity: 0; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1); }
}

.hero-content {
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
    margin-top: -50px;
}

.hero-subtitle {
    display: block;
    font-family: 'Ms Madi', cursive; 
    font-size: 2.8rem; 
    font-weight: 400;
    margin-bottom: 5px; 
    color: #f1f1f1;
    opacity: 0.9; 
    line-height: 1.1; 
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 100; 
    line-height: 1.2;
    margin-bottom: 40px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 300;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.hero-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}

/* OVERLAY SEARCH BAR */
.search-bar-wrapper {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 10;
}

.search-unavailable {
    text-align: center;
    font-size: 0.75rem; 
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px; 
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 15px 15px 30px;
    flex-wrap: wrap;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.search-input {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    border-right: 1px solid #eee;
    padding-right: 20px;
}
.search-input:nth-child(3) { border-right: none; }

.search-input i {
    color: var(--primary);
    font-size: 1.5rem;
}

.search-input label {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 3px;
}

.search-input input {
    border: none;
    outline: none;
    font-family: inherit;
    color: var(--text-color);
    font-weight: 300;
    font-size: 0.95rem;
    width: 100%;
}

.search-btn {
    background: var(--dark);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 300;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

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

/* ================= ABOUT ================= */
.about {
    padding: 140px 0 100px 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/e/ea/Turkey_location_map.svg');
    background-position: right center;
    background-repeat: no-repeat;
    background-size: 80%;
    opacity: 0.03; 
    filter: invert(1) grayscale(1); 
    pointer-events: none;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    color: var(--primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 400;
}

.section-title {
    color: var(--dark);
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 25px;
    font-weight: 300;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    font-weight: 300;
}

.about-text strong {
    font-weight: 500;
    color: var(--dark);
}

.about-features {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    color: var(--dark);
}

.feature i {
    color: var(--primary);
    background: rgba(181, 14, 28, 0.1);
    padding: 12px;
    border-radius: 50%;
}

.about-image {
    position: relative;
}

.img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

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

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--primary);
    color: var(--white);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.exp-number {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
}

.exp-text {
    font-size: 0.9rem;
    font-weight: 300;
    text-transform: uppercase;
}

/* ================= TOURS ================= */
.tours {
    padding: 100px 0;
    position: relative;
    background-color: var(--white);
    z-index: 1;
}

.tours::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('https://upload.wikimedia.org/wikipedia/commons/e/ea/Turkey_location_map.svg'),
        url('https://www.transparenttextures.com/patterns/topography.png');
    background-position: center center, center center;
    background-repeat: no-repeat, repeat;
    background-size: 85%, auto;
    opacity: 0.05; 
    filter: grayscale(1) contrast(1.2); 
    pointer-events: none;
    z-index: -1;
}

.tours-header {
    text-align: center;
    margin-bottom: 50px;
}

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

.tour-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background-color: #f1f1f1; 
    border: 1px solid #e1e1e1; 
    aspect-ratio: 1 / 1.41; 
}

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

.tour-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 300;
}

.tour-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

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

.tour-card:hover .tour-overlay {
    opacity: 1;
}

.tours-footer {
    text-align: center;
    margin-top: 50px;
}

/* ================= CONTACT FORM (DARK & SCENIC) ================= */
.contact-section {
    padding: 120px 0;
    background: url('https://images.unsplash.com/photo-1524231757912-21f4fe3a0837?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.2); 
    pointer-events: none;
}

.contact-wrapper {
    display: flex;
    justify-content: flex-start; 
    position: relative;
    z-index: 1;
}

.dark-form {
    background: #2a2a2a; 
    padding: 50px 40px;
    max-width: 450px;
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    color: var(--white);
}

.form-subtitle {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-align: center;
}

.form-subtitle::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--primary);
    vertical-align: middle;
    margin-right: 10px;
}

.form-title {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 10px;
    text-align: center;
}

.form-desc {
    font-size: 0.9rem;
    color: #bbb;
    text-align: center;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: #333; 
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 300;
    outline: none;
    transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #777;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #5b9dd9; 
    background: #3a3a3a;
}

.form-submit-btn {
    background: #5b9dd9; 
    width: 100%;
    border-radius: 4px;
    padding: 15px;
    font-weight: 500;
    margin-top: 10px;
    color: #fff;
}

.form-submit-btn:hover {
    background: #4a8ac2;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-wrapper {
        justify-content: center;
    }
    .dark-form {
        padding: 40px 25px;
    }
}

/* ================= NOWA STOPKA ================= */
.footer {
    position: relative;
    color: #ddd;
    padding: 80px 0 30px 0;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(0, 100, 200, 0.4) 0%, rgba(0, 40, 100, 0.85) 60%, rgba(0, 15, 40, 0.98) 100%), url('https://images.unsplash.com/photo-1533468434749-835b0e8eb87f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.footer-contact-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.footer-contact-item h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 400;
}

.footer-contact-item p, .footer-contact-item a {
    color: #ccc;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-item a:hover {
    color: var(--primary);
}

.footer-main {
    text-align: center;
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.footer-logo-center {
    height: 45px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.footer-mini-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-mini-menu li a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-mini-menu li a:hover {
    color: var(--primary);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-socials a {
    color: #aaa;
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.footer-bottom-bar {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.8rem;
    font-weight: 300;
    color: #888;
}

.footer-created i {
    color: var(--primary);
    margin-left: 5px;
}

@media (max-width: 768px) {
    .footer-contact-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ================= LIGHTBOX Z PASKIEM BOCZNYM ================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: row; 
}

.lightbox-sidebar {
    width: 320px;
    height: 100%;
    background-color: #111;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.goto-page {
    padding: 20px;
    background-color: #0a0a0a;
    border-bottom: 1px solid #333;
}

.goto-page label {
    display: block;
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 400;
}

.goto-page-controls {
    display: flex;
    gap: 10px;
}

.goto-page-controls input {
    flex: 1;
    padding: 10px;
    border: 1px solid #444;
    background: #222;
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 300;
}

.goto-page-controls button {
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 400;
    transition: background 0.3s;
}

.goto-page-controls button:hover {
    background: var(--primary-hover);
}

.lightbox-thumbnails {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-content: start;
}

.lightbox-thumbnails::-webkit-scrollbar { width: 6px; }
.lightbox-thumbnails::-webkit-scrollbar-track { background: #111; }
.lightbox-thumbnails::-webkit-scrollbar-thumb { background: #444; border-radius: 10px; }
.lightbox-thumbnails::-webkit-scrollbar-thumb:hover { background: #666; }

.thumb-item {
    position: relative;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1.41; 
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.8rem;
    text-align: center;
    padding: 4px 0;
}

.thumb-item:hover, .thumb-item.active {
    border-color: var(--primary);
    transform: scale(1.05);
}
.thumb-item.active {
    box-shadow: 0 0 15px rgba(181, 14, 28, 0.8);
}

.thumb-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #0a0a0a;
    border-top: 1px solid #333;
}

.thumb-pagination button {
    background: #222;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.thumb-pagination button:hover { background: var(--primary); }
.thumb-pagination span { color: #ccc; font-size: 0.85rem; }

.lightbox-main {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-content {
    max-height: 95vh;
    max-width: 90%;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
}

.lightbox-arrow {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    font-size: 4rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 20px;
    z-index: 10001;
}
.lightbox-arrow:hover { color: var(--white); }
.left-arrow { left: 20px; }
.right-arrow { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.2rem;
    background: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 300;
}

.email-offer-btn {
    position: absolute;
    top: 30px;
    right: 90px; 
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10001;
}

.email-offer-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.email-offer-btn i { margin-right: 8px; }

/* MODAL EMAIL */
.email-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10005;
    justify-content: center;
    align-items: center;
}

.email-modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: center;
    color: var(--dark);
}

.email-modal-content h3 { font-weight: 400; margin-bottom: 10px; font-size: 1.5rem; }
.email-modal-content p { font-size: 0.9rem; margin-bottom: 25px; color: #666; }

.email-modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 300;
}

.close-email-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close-email-modal:hover { color: var(--primary); }

@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .contact-info li { justify-content: center; }
    .experience-badge { left: 20px; bottom: 20px; }
    .form-group { flex-direction: column; gap: 0; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .nav-menu.active {
        display: flex; flex-direction: column; position: absolute;
        top: 100%; left: 0; width: 100%; background: rgba(15, 15, 20, 0.98);
        padding: 20px 0; text-align: center; gap: 15px;
    }
    .nav-menu.active a { font-size: 1.2rem; padding: 10px; }
    
    .nav-contact { display: none; }
    .mobile-toggle { display: block; }
    
    .hero { padding-top: 80px; justify-content: center; }
    .hero-content { margin-top: 0; margin-bottom: 20px; }
    .hero-subtitle { font-size: 2.2rem; line-height: 1; }
    .hero-title { font-size: 2.5rem; margin-bottom: 20px; }
    
    .search-bar-wrapper {
        position: relative; bottom: auto; left: auto; transform: none;
        width: 90%; margin: 0 auto;
    }
    .search-bar { flex-direction: column; align-items: stretch; padding: 20px; }
    .search-input { border-right: none; border-bottom: 1px solid #eee; padding: 15px 0; }
    .search-unavailable { position: relative; top: 0; margin-bottom: 10px; }
    
    .about { padding: 50px 0; }
    .tours-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    
    /* Lightbox mobile */
    .lightbox { flex-direction: column; }
    .lightbox-sidebar { width: 100%; height: auto; border-right: none; border-top: 1px solid #333; order: 2; }
    .lightbox-main { height: 60vh; order: 1; padding: 10px; }
    .lightbox-content { max-height: 100%; max-width: 100%; }
    .email-offer-btn { top: 15px; right: auto; left: 15px; font-size: 0.8rem; padding: 8px 15px; }
    .close-lightbox { top: 10px; right: 15px; }
    
    .lightbox-thumbnails { display: flex; flex-direction: row; overflow-x: auto; padding: 10px; gap: 10px; }
    .thumb-item { flex: 0 0 70px; height: 100px; }
    .goto-page { padding: 10px; }
}