/* =========================================
   GLOBALNE I NAWIGACJA (z head.php)
========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { color: #0B3556; font-family: 'Montserrat', sans-serif; line-height: 1.6; background: #f4f7f9; display: flex; flex-direction: column; min-height: 100vh; }

nav { position: fixed; top: 0; left: 0; width: 100%; background: rgba(255,255,255,0.98); padding: 0.7rem 5%; z-index: 1000; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.nav-logo img { height: 45px; width: auto; display: block; }
nav ul { list-style: none; display: flex; gap: 2rem; align-items: center; margin: 0; padding: 0; }
nav a { text-decoration: none; color: #0B3556; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
nav a:hover { color: #e67e22; }
.btn-panel-nav { background: #0B3556; color: #fff !important; padding: 8px 18px; border-radius: 4px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 5px; z-index: 1001; }
.hamburger span { display: block; width: 25px; height: 3px; background-color: #0B3556; margin: 5px 0; transition: 0.3s; border-radius: 3px; }

/* =========================================
   LISTA OFERT (z oferta.php)
========================================= */
.oferta-container { max-width: 1200px; margin: 0 auto; flex: 1; width: 100%; padding: 20px; padding-top: 100px; }
.oferta-container h1 { text-align: center; color: #0B3556; margin-bottom: 30px; margin-top: 20px; font-size: 2.5rem; text-transform: uppercase; letter-spacing: 2px; }
.search-bar { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 40px; display: flex; gap: 15px; flex-wrap: wrap; align-items: end; border-left: 5px solid #ffc107; }
.search-group { flex: 1; min-width: 200px; }
.search-group label { display: block; font-size: 0.8rem; font-weight: bold; margin-bottom: 5px; color: #666; text-transform: uppercase; }
.search-group select, .search-group input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; font-size: 1rem; }
.btn-search { background: #0B3556; color: white; padding: 12px 30px; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; transition: 0.3s; height: 45px; flex: 0 0 auto; }
.btn-search:hover { background: #164e7a; }
.btn-reset { background: #eee; color: #333; padding: 12px 20px; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; text-decoration: none; display: inline-block; height: 45px; box-sizing: border-box; line-height: 20px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }
.card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-color: #0B3556; }
.card-img { height: 200px; width: 100%; object-fit: cover; }
.card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.country-badge { font-size: 0.75rem; text-transform: uppercase; font-weight: bold; color: #ffc107; letter-spacing: 1px; margin-bottom: 5px; }
.card h3 { margin: 0 0 10px 0; font-size: 1.4rem; color: #0B3556; }
.info-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: #555; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-top: 10px; }
.price { font-size: 1.5rem; color: #e67e22; font-weight: 800; margin-top: auto; }
.btn-details { display: block; text-align: center; background: #0B3556; color: white; text-decoration: none; padding: 15px; font-weight: bold; margin-top: 15px; border-radius: 5px; transition: 0.2s; text-transform: uppercase; font-size: 0.8rem;}
.btn-details:hover { background: #e67e22; }
.no-results { text-align: center; padding: 50px; color: #666; width: 100%; grid-column: 1 / -1; }

.tags-container { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tag-badge { padding: 4px 10px; border-radius: 4px; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid #eee; background: #f0f4f8; color: #555; display: inline-block; margin-bottom: 5px; }
.tag-narty { background: #e3f2fd; color: #0d47a1; border-color: #bbdefb; }
.tag-rower { background: #e8f5e9; color: #1b5e20; border-color: #c8e6c9; }
.tag-trekking { background: #fff3e0; color: #e65100; border-color: #ffe0b2; }
.tag-zwiedzanie { background: #f3e5f5; color: #4a148c; border-color: #e1bee7; }
.tag-szkolenie { background: #e8eaf6; color: #0B3556; border-color: #c5cae9; }

/* =========================================
   SZCZEGÓŁY WYCIECZKI (z szczegoly.php)
========================================= */
.szczegoly-container { max-width: 900px; margin: 100px auto 40px auto; background: white; padding: 0 0 40px 0; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); overflow: hidden; position: relative; }
.archive-stamp { position: absolute; top: 20px; right: 20px; z-index: 100; background: #c62828; color: white; padding: 10px 20px; font-weight: 800; text-transform: uppercase; transform: rotate(15deg); border: 2px solid white; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.tour-hero { position: relative; width: 100%; height: 400px; }
.tour-hero img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.tour-hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); padding: 40px 40px 20px 40px; color: white; pointer-events: none; }
.tour-hero h1 { margin: 0; font-size: 2.5rem; text-shadow: 2px 2px 5px rgba(0,0,0,0.5); }
.tour-hero .country { font-weight: bold; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; color: #ffc107; }
.hero-tags { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-tag { background: rgba(255,255,255,0.2); color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.4); backdrop-filter: blur(5px); letter-spacing: 0.5px;}

.tour-content { padding: 40px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 25px; color: #0B3556; text-decoration: none; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; padding: 10px 20px; background: #f0f4f8; border-radius: 50px; transition: 0.3s; }
.back-link:hover { background: #e1e8ed; transform: translateX(-5px); }
.info-bar { display: flex; flex-wrap: wrap; gap: 20px; background: #e3f2fd; padding: 20px; border-radius: 8px; margin-bottom: 30px; border-left: 5px solid #0B3556; }
.info-item { flex: 1; min-width: 150px; }
.info-label { font-size: 0.8rem; text-transform: uppercase; color: #666; font-weight: bold; display: block; margin-bottom: 5px; }
.info-value { font-size: 1.1rem; font-weight: 800; color: #0B3556; }
.price-tag { color: #164e7a; font-size: 1.4rem; }

.main-desc { font-size: 1.1rem; margin-bottom: 40px; text-align: justify; color: #444; }
.section-box { margin-bottom: 30px; }
.section-title { font-size: 1.3rem; color: #0B3556; border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 15px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-content { background: #f9f9f9; padding: 25px; border-radius: 8px; white-space: pre-line; }

.skipass-box { background: #fff8e1; border: 1px solid #ffe082; }
.skipass-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 10px; }
.skipass-item strong { display: block; color: #e67e22; margin-bottom: 5px; text-transform: uppercase; font-size: 0.8rem; }

.map-container { margin-top: 20px; text-align: center; }
.map-preview { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid #ddd; padding: 5px; cursor: zoom-in; transition: transform 0.3s; }
.map-preview:hover { transform: scale(1.02); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 20px; }
.gallery-grid img { width: 100%; height: 120px; object-fit: cover; border-radius: 5px; cursor: pointer; transition: 0.3s; }
.gallery-grid img:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

.sticky-btn-container { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid #eee; }
.btn-reserve, .btn-reserve-top { display: inline-block; background: #0B3556; color: white; text-decoration: none; font-weight: 800; border-radius: 50px; transition: 0.3s; text-transform: uppercase; box-shadow: 0 5px 15px rgba(11, 53, 86, 0.3); }
.btn-reserve { padding: 18px 50px; font-size: 1.2rem; }
.btn-reserve-top { padding: 15px 40px; font-size: 1.1rem; width: 100%; max-width: 400px; }
.btn-reserve:hover, .btn-reserve-top:hover { background: #e67e22; transform: translateY(-3px); }
.btn-soldout, .btn-archive, .btn-soldout-top, .btn-archive-top { display: inline-block; background: #ccc; color: #666; text-decoration: none; font-weight: 800; border-radius: 50px; cursor: not-allowed; text-transform: uppercase; }
.btn-soldout { padding: 18px 50px; font-size: 1.2rem; }
.btn-soldout-top, .btn-archive-top { padding: 15px 40px; font-size: 1.1rem; width: 100%; max-width: 400px;}

#lightbox { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); align-items: center; justify-content: center; }
#lightbox img { max-width: 90%; max-height: 85%; border-radius: 5px; box-shadow: 0 0 20px rgba(255,255,255,0.1); }
.close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; z-index: 2001; }
.prev, .next { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -50px; color: white; font-weight: bold; font-size: 30px; transition: 0.3s; border-radius: 0 3px 3px 0; user-select: none; z-index: 2001; background: rgba(0,0,0,0.3); }
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev { left: 0; border-radius: 0 3px 3px 0; }
.prev:hover, .next:hover { background-color: rgba(255,255,255,0.8); color: black; }

/* =========================================
   FORMULARZ REZERWACJI (z rezerwuj.php)
========================================= */
.rezerwacja-container { max-width: 800px; margin: 100px auto 30px auto; background: white; padding: 40px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); flex: 1; width: 100%; box-sizing: border-box; }
.rezerwacja-container h1 { color: #0B3556; margin-top: 0; text-align: center; margin-bottom: 5px; font-size: 2.2rem; text-transform: uppercase; }
.rezerwacja-container .subtitle { text-align: center; color: #666; margin-bottom: 30px; font-size: 1.1rem; }
.rezerwacja-container label { display: block; margin-top: 15px; font-weight: bold; font-size: 0.9rem; margin-bottom: 5px; }
.rezerwacja-container input[type="text"], .rezerwacja-container input[type="email"], .rezerwacja-container input[type="tel"], .rezerwacja-container input[type="date"], .rezerwacja-container input[type="number"], .rezerwacja-container textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; font-family: inherit; }
.addons-container { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.addon-label { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 15px; border: 1px solid #ddd; border-radius: 5px; cursor: pointer; transition: 0.3s; margin-top:0;}
.addon-label:hover { border-color: #0B3556; background: #f9fbfd; }
.addon-label input { margin: 0 15px 0 0; transform: scale(1.4); }
.addon-left { display: flex; align-items: center; font-weight: 600; color: #333; font-size: 0.95rem;}
.addon-price { font-weight: bold; color: #e67e22; background: #fff3e0; padding: 5px 12px; border-radius: 5px; font-size: 0.9rem; white-space: nowrap;}
.addon-price.negative { color: #28a745; background: #e8f5e9; }
.price-summary { background: #0B3556; color: white; padding: 25px; border-radius: 5px; margin-top: 20px; text-align: right; font-size: 1.1rem; line-height: 1.6; box-shadow: 0 5px 15px rgba(11, 53, 86, 0.3);}
.price-summary .final { font-size: 1.6rem; font-weight: 800; color: #ffc107; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 15px; margin-top: 10px; }
.terms-box { height: 200px; overflow-y: scroll; border: 1px solid #ddd; background: #f9f9f9; padding: 15px; font-size: 0.8rem; color: #555; margin-bottom: 20px; border-radius: 5px; white-space: pre-wrap; text-align: justify; }
.legal-check { margin-top: 10px; padding: 10px; border-radius: 5px; }
.legal-check label { display: flex; align-items: flex-start; margin: 0; font-weight: normal; cursor: pointer; font-size: 0.85rem; line-height: 1.4; }
.legal-check input { margin-right: 12px; margin-top: 3px; width: auto; transform: scale(1.2); flex-shrink: 0; }
.legal-required { background-color: #fff8f8; border-left: 4px solid #c62828; } 
.btn-submit { background: #0B3556; color: white; border: none; padding: 18px; width: 100%; font-size: 1.1rem; font-weight: bold; border-radius: 5px; cursor: pointer; margin-top: 30px; transition: 0.3s; text-transform: uppercase; }
.btn-submit:hover { background: #164e7a; }
.error-box { background: #f8d7da; color: #721c24; padding: 15px; border-radius: 5px; margin-bottom: 20px; border: 1px solid #f5c6cb; text-align: center; font-weight: bold; }
.success-box { text-align: center; padding: 20px; }
.success-icon { font-size: 60px; color: #28a745; display: block; margin-bottom: 20px; }
.btn-panel { background: #0B3556; color: white; padding: 12px 25px; text-decoration: none; border-radius: 5px; font-weight: bold; display: inline-block; margin-top: 20px; transition: 0.3s;}
.btn-panel:hover { background: #e67e22; }
.new-account-info { background: #fff3cd; padding: 20px; border-radius: 5px; margin-top: 30px; text-align: left; border-left: 5px solid #ffc107; line-height: 1.5; }
.math-captcha-box { background: #f0f4c3; padding: 15px; border: 1px solid #dce775; border-radius: 5px; margin-top: 20px; }

/* =========================================
   STOPKA (z head.php)
========================================= */
.site-footer { background-color: #0B3556; color: #ffffff; padding: 4rem 2rem 1rem 2rem; width: 100%; margin-top: auto; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 2.5rem; text-align: left; }
.footer-col h4 { font-size: 1rem; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1.5px; color: #ffc107; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a, .footer-col p { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; line-height: 1.6; }
.footer-col ul li a:hover { color: #ffffff; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 1rem; }
.footer-legal a { color: rgba(255,255,255,0.5); text-decoration: none; margin-left: 1.5rem; transition: color 0.3s ease; }
.footer-legal a:hover { color: #ffffff; }

/* =========================================
   RESPONSYWNOŚĆ MOBILE
========================================= */
@media (max-width: 850px) {
    nav { flex-wrap: wrap; padding: 10px 20px; }
    .nav-logo img { height: 40px; }
    .hamburger { display: block; }
    nav ul { display: none; flex-direction: column; width: 100%; text-align: center; padding: 20px 0; gap: 1.5rem; }
    nav ul.active { display: flex; border-top: 1px solid #eee; margin-top: 10px; }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .footer-bottom { flex-direction: column; text-align: center; } 
    .footer-legal a { margin: 0 0.5rem; }
    
    .szczegoly-container, .rezerwacja-container { margin: 80px auto 20px auto; padding: 20px; border-radius: 0;}
    .tour-content { padding: 20px; }
    .addon-label { flex-direction: column; align-items: flex-start; gap: 10px; }
    .addon-price { align-self: flex-start; margin-left: 30px; }
    
    /* Poprawka dla nagłówka hero na urządzeniach mobilnych */
@media screen and (max-width: 768px) {
    .tour-hero-overlay h1 {
        font-size: 1.8rem !important; /* Wymusza mniejszy rozmiar tekstu */
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }
    .tour-hero-overlay .country {
        margin-bottom: 10px !important;
    }
}

}