/* ==========================================
   PROJECT: Pair.wedding - Professional Tier
   FILE: style.css (CENTERED COOKIE MODAL)
   ========================================== */

:root {
    --pair-pink: #D81B60;
    --pair-pink-hover: #AD1457;
    --pair-dark: #1a1a1a;
    --white: #ffffff;
    --off-white: #fcfcfc;
    --text-grey: #555;
    --transition: all 0.3s ease-in-out;
    
    /* Kontinentų spalvos */
    --color-eu: #0081C8; 
    --color-as: #FCB131; 
    --color-af: #000000; 
    --color-oc: #00A651; 
    --color-na: #EE334E; 
    --color-sa: #9C27B0; 
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: var(--off-white);
    color: var(--pair-dark);
    padding-top: 200px; 
    overflow-x: hidden;
}

/* --- 1. MASTER HEADER --- */
.master-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    z-index: 2000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 10px;
    background: var(--white);
    border-bottom: 1px solid #f0f0f0;
}

/* --- LOGO IR TEKSTAS ŠALIA --- */
.brand-row {
    display: flex;
    align-items: center; 
    justify-content: center;
    gap: 15px; 
    margin-bottom: 5px;
}

.site-logo {
    height: 60px; 
    width: auto; 
    display: block;
}

.brand-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-top h1 {
    font-family: 'Pacifico', cursive;
    font-size: 1.6rem;
    color: var(--pair-pink);
    margin: 0;
    line-height: 1;
}

.header-subtitle {
    font-size: 0.65rem;
    color: #888;
    letter-spacing: 1px;
    margin: 2px 0 0 0;
    text-transform: uppercase;
    font-weight: 600;
}

/* --- 2. FILTRAS --- */
.global-filter {
    margin-top: 2px;
    display: flex;
    background: #f4f4f4;
    border-radius: 50px;
    padding: 3px;
}

.filter-btn {
    padding: 6px 25px;
    border: none;
    background: transparent;
    border-radius: 40px;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: var(--text-grey);
    transition: var(--transition);
}

.filter-btn.active {
    background: var(--pair-pink);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(216, 27, 96, 0.3);
}

/* --- 3. MENIU (NAVIGACIJA) --- */
.menu-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: var(--pair-dark);
    width: 100%;
    position: relative;
    border-bottom: 5px solid var(--pair-pink);
}

.continent-drop { position: static; }

.continent-label {
    font-weight: 800;
    text-transform: uppercase;
    padding: 15px 25px;
    cursor: pointer;
    color: white;
    transition: var(--transition);
    border: 2px solid transparent; 
    font-size: 0.9rem;
    user-select: none;
}

.continent-label.active { background-color: #333; }

/* SPALVŲ PRISKYRIMAS */
.drop-eu .continent-label { color: var(--color-eu); }
.drop-as .continent-label { color: var(--color-as); }
.drop-af .continent-label { color: #ccc; }
.drop-oc .continent-label { color: var(--color-oc); }
.drop-na .continent-label { color: var(--color-na); } 
.drop-sa .continent-label { color: var(--color-sa); } 

/* --- DROPDOWN TURINYS --- */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 30px;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1900;
    border: 3px solid #ddd; 
    border-top: none; 
    max-height: 70vh; 
    overflow-y: auto; 
}

.dropdown-content.show { display: grid; animation: slideDown 0.3s ease; }

/* RĖMELIŲ SPALVOS */
.drop-eu .dropdown-content { border-color: var(--color-eu); }
.drop-as .dropdown-content { border-color: var(--color-as); }
.drop-af .dropdown-content { border-color: #555; }
.drop-oc .dropdown-content { border-color: var(--color-oc); }
.drop-na .dropdown-content { border-color: var(--color-na); } 
.drop-sa .dropdown-content { border-color: var(--color-sa); } 

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.dropdown-content li { list-style: none; }
.dropdown-content a {
    text-decoration: none;
    color: var(--pair-dark);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    transition: 0.2s;
}
.dropdown-content a:hover { color: var(--pair-pink); transform: translateX(5px); }
.flags { width: 20px; height: 14px; object-fit: cover; border: 1px solid #eee; }

/* --- 4. LOCATION BANNER --- */
.location-banner {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 20px;
    animation: fadeIn 0.6s ease;
}
.location-label {
    font-weight: 800;
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 5px;
}
.current-location-title {
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    color: var(--pair-pink);
    line-height: 1.2;
    margin: 0;
}
.category-indicator { font-weight: 700; color: var(--pair-dark); margin-top: 5px; font-size: 1.1rem; text-transform: uppercase; }

/* --- 5. SWIPER --- */
.swiper { width: 100%; max-width: 1200px; height: 480px; padding-bottom: 50px !important; }
.content-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.content-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(216, 27, 96, 0.15); }
.img-wrap { height: 300px; overflow: hidden; position: relative; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; text-indent: -10000px; }
.content-card:hover .img-wrap img { transform: scale(1.1); }
.card-info { padding: 25px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.card-info h4 { font-size: 1.3rem; margin-bottom: 10px; color: var(--pair-dark); }
.card-info p { font-size: 0.95rem; color: #777; line-height: 1.4; }

/* --- 6. ADVANCED SECTION --- */
.advanced-section {
    text-align: center; margin: 50px auto 80px auto; padding: 50px 20px 0 20px;
    border-top: 1px solid #eee; max-width: 1200px;
}
.others-heading {
    font-family: 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: 2px;
    color: #999; font-size: 1.2rem; margin-bottom: 40px; font-weight: 800;
}
.btn-advanced {
    background-color: white; border: 2px solid var(--pair-pink); color: var(--pair-pink);
    padding: 15px 45px; font-family: 'Montserrat', sans-serif; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; cursor: pointer; border-radius: 50px;
    transition: all 0.3s ease; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 10px;
}
.btn-advanced:hover { background-color: var(--pair-pink); color: white; transform: translateY(-2px); }
.btn-advanced::after { content: '↓'; font-size: 1.2rem; }

/* --- 7. GRID --- */
.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; animation: fadeIn 0.5s ease; }
.grid-container.small-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.grid-container.small-grid .content-card .img-wrap { height: 120px; }
.grid-container.small-grid .content-card .card-info { padding: 10px 8px; }
.grid-container.small-grid .content-card h4 { font-size: 0.95rem; margin-bottom: 4px; line-height: 1.2; }
.grid-container.small-grid .content-card p { font-size: 0.75rem; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; display: -webkit-box; }

/* --- 8. FOOTER --- */
.footer-promo { background: var(--pair-dark); padding: 60px 20px; text-align: center; color: white; margin-top: 60px; }
.footer-promo h2 { font-family: 'Pacifico', cursive; margin-bottom: 20px; color: var(--pair-pink); }
.btn-main { display: inline-block; padding: 15px 40px; background: var(--pair-pink); color: white !important; text-decoration: none; border-radius: 50px; font-weight: 700; transition: 0.3s; }

.footer-links {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #ccc;
    font-weight: 600;
}
.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}
.footer-links a:hover {
    color: white;
}
.separator {
    margin: 0 10px;
    color: #555;
}

/* --- 9. COOKIE MODAL (NAUJAS DIZAINAS: CENTRUOTAS LANGAS) --- */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Tamsus fonas aplink */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px); /* Gražus "blur" efektas */
    animation: fadeIn 0.3s ease-out;
}

.cookie-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    max-width: 450px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateY(0);
    animation: slideUp 0.4s ease-out;
}

.cookie-content h4 {
    font-size: 1.2rem;
    color: var(--pair-dark);
    margin: 0;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}

.cookie-content a {
    color: var(--pair-pink);
    text-decoration: underline;
    font-weight: 600;
}

.btn-cookie {
    background-color: var(--pair-pink);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
    text-transform: uppercase;
    width: 100%;
    box-shadow: 0 5px 15px rgba(216, 27, 96, 0.3);
}

.btn-cookie:hover {
    background-color: var(--pair-pink-hover);
    transform: translateY(-2px);
}

.cookie-banner.hidden {
    display: none;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- 10. DETAIL PAGE --- */
.sub-nav { display: flex; justify-content: space-between; max-width: 1200px; margin: 20px auto; padding: 0 20px; }
.btn-nav { text-decoration: none; color: var(--pair-dark); font-weight: 700; border: 2px solid #ddd; padding: 10px 20px; border-radius: 30px; background: white; transition: 0.3s; cursor: pointer; }
.detail-container { max-width: 1000px; margin: 0 auto; padding: 20px; }
.detail-header h1 { font-family: 'Pacifico', cursive; font-size: 3rem; color: var(--pair-pink); margin-bottom: 10px; text-align: center; }
.detail-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 50px; align-items: start; }
.main-visual img { width: 100%; border-radius: 15px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.gallery-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; }
.hidden { display: none !important; }

/* --- 11. MOBILE FIXES --- */
@media (max-width: 1024px) {
    body { padding-top: 180px; }
    .brand-row { gap: 10px; }
    .site-logo { height: 40px; }
    .header-top h1 { font-size: 1.1rem; }
    .header-subtitle { font-size: 0.5rem; letter-spacing: 0.5px; }
    .menu-container { display: grid; grid-template-columns: repeat(3, 1fr); }
    .continent-label { padding: 10px 5px; font-size: 0.7rem; text-align: center; border: 1px solid #333; }
    
    .dropdown-content {
        position: fixed; 
        top: 175px; 
        left: 0;
        width: 100%;
        height: calc(100vh - 175px); 
        background: white;
        overflow-y: auto; 
        padding: 20px;
        grid-template-columns: 1fr 1fr; 
        border: none; 
        z-index: 1800;
        max-height: none;
    }

    .detail-content-grid { grid-template-columns: 1fr; }
    .current-location-title { font-size: 2rem; }
    .grid-container.small-grid { grid-template-columns: repeat(2, 1fr); }
}