@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@700;800;900&family=Caveat:wght@700&display=swap');

:root {
    /* Цветовая палитра туристического агентства */
    --bg-main: #F5EBE0; /* Светло-бежевый фон, имитирующий карту/бумагу */
    --bg-card: #FFFFFF;
    --bg-header: #FFFFFF;
    
    --accent: #FFDC00; /* Ярко-желтый акцент для кнопок */
    --accent-hover: #E5C600;
    
    /* Инвертируем text-white в темный цвет, чтобы сохранить классы, но сделать текст черным */
    --text-white: #111111; 
    --text-gray: #666666;
    --border-color: #EAEAEA;
    
    /* Новые шрифты: Inter (текст), Montserrat (массивные заголовки), Caveat (рукописный) */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-logo: 'Caveat', cursive;
    
    /* Цвет для "локационных" бейджиков */
    --badge-bg: #102A43; 
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: var(--font-main); 
    background-color: var(--bg-main);
    /* Добавляем легкий паттерн для эффекта текстуры туристической карты */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.83v58.34l-.83.83H5.373l-.83-.83V.83l.83-.83h49.254zM53.5 1.5H6.5v57h47v-57z' fill='%23e8dac7' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
    color: var(--text-gray); 
    line-height: 1.6; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
h1, h2, h3, h4 { color: var(--text-white); font-weight: 800; font-family: var(--font-heading); }

.container { max-width: 1400px; margin: 0 auto; padding: 0 30px; width: 100%; }

/* --- HEADER --- */
.site-header { background: var(--bg-header); border-bottom: 1px solid var(--border-color); box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; max-width: 1400px; margin: 0 auto; }
.header-left { display: flex; align-items: center; gap: 10px; color: var(--text-white); font-weight: 700; cursor: pointer; }
.header-left svg { width: 24px; height: 24px; fill: currentColor; }
/* Рукописный логотип как на скрине */
.logo { font-size: 2.5rem; font-weight: 700; color: var(--text-white); font-family: var(--font-logo); letter-spacing: 1px; text-transform: none; }
.header-right { display: flex; align-items: center; gap: 10px; color: var(--text-white); font-weight: 600; }
.header-right svg { width: 20px; height: 20px; fill: currentColor; }

.header-nav { background: var(--bg-header); border-top: 1px solid var(--border-color); }
.nav-links { display: flex; justify-content: center; gap: 40px; padding: 15px 20px; max-width: 1400px; margin: 0 auto; flex-wrap: wrap; }
.nav-links a { color: var(--text-white); font-weight: 600; font-size: 0.95rem; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.5px; }
.nav-links a:hover { color: #888; }

/* --- TAG CLOUD --- */
.tag-cloud-wrapper { margin: 40px auto 20px; max-width: 1400px; padding: 0 30px; }
.tag-cloud-title { color: var(--text-white); margin-bottom: 20px; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); }
.tag-cloud-title::before { content: '🌍'; display: inline-block; width: auto; height: auto; background: none; font-size: 1.2rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-item { 
    background: #FFFFFF; border: 1px solid var(--border-color); color: var(--text-white); 
    padding: 8px 18px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.tag-item:hover { background: var(--accent); color: var(--text-white); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
.tag-count { background: rgba(0,0,0,0.05); padding: 2px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; color: var(--text-white); }

/* --- HERO GRID SECTION --- */
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; margin: 30px auto 60px; max-width: 1400px; padding: 0 30px; }
.hero-right { display: grid; grid-template-columns: 1fr; gap: 30px; }

/* Используем туристические картинки с Unsplash для градиентов (если в HTML не прописаны инлайн) */
.bg-gradient-1 { background: url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover; }
.bg-gradient-2 { background: url('https://images.unsplash.com/photo-1506929562872-bb421503ef21?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover; }
.bg-gradient-3 { background: url('https://images.unsplash.com/photo-1476514525535-07fb3b4ae5f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover; }

.post-thumb-card { 
    position: relative; border-radius: 16px; overflow: hidden; 
    display: flex; flex-direction: column; justify-content: space-between; /* Распределяем бейдж наверх, текст вниз */
    padding: 15px; transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); background-color: #E2DCD3;
}
.post-thumb-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); opacity: 1; }

.hero-left .post-thumb-card { height: 100%; min-height: 500px; }
.hero-right .post-thumb-card { height: 240px; padding: 15px; }

/* Стилизуем бейдж категории под "локацию" как на скрине */
.cat-badge { 
    background: var(--badge-bg); color: #FFFFFF; 
    padding: 6px 12px; font-size: 0.75rem; font-weight: 600; 
    text-transform: capitalize; border-radius: 6px; display: inline-flex; align-items: center;
    margin-bottom: auto; width: fit-content; letter-spacing: 0.5px;
}
.cat-badge::before { content: '📍'; margin-right: 5px; font-size: 0.8rem; }

/* МАГИЯ CSS: Делаем белый фон у текста внизу карточки (эффект картинка сверху/текст снизу) */
.post-thumb-title { 
    color: var(--text-white); font-size: 1.25rem; line-height: 1.4; font-weight: 800; 
    text-shadow: none; font-family: var(--font-heading);
    background: #FFFFFF; margin: 0 -15px -15px -15px; padding: 25px 20px; 
    border-radius: 0 0 16px 16px; z-index: 2; position: relative;
}
.hero-left .post-thumb-title { font-size: 2.2rem; line-height: 1.2; padding: 35px 30px; }

/* МАГИЯ CSS 2: Добавляем желтую кнопку "EXPLORE TRIP" с помощью псевдоэлемента */
.post-thumb-title::after {
    content: 'EXPLORE TRIP'; display: block;
    background: var(--accent); color: var(--text-white);
    font-size: 0.8rem; font-family: var(--font-main); text-align: center;
    padding: 12px; margin-top: 20px; border-radius: 6px; font-weight: 700;
    text-transform: uppercase; transition: background 0.2s;
}
.hero-left .post-thumb-title::after { content: 'MORE ABOUT US'; width: max-content; padding: 12px 30px; }
.post-thumb-card:hover .post-thumb-title::after { background: var(--accent-hover); }

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-left .post-thumb-card { min-height: 400px; }
}

/* --- BOTTOM POST GRID (Секция "Explore Nearby") --- */
.section-header { 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    border-bottom: none; margin-bottom: 50px; text-align: center;
}
.section-header h3 { 
    font-size: 3.5rem; letter-spacing: -1px; color: var(--text-white); 
    display: flex; flex-direction: column; align-items: center; gap: 0; text-transform: capitalize;
}
/* Заменяем синюю палочку на красивую рукописную подпись сверху! */
.section-header h3::before { 
    content: 'Vacation Agency'; display: block; width: auto; height: auto; 
    background: none; font-family: var(--font-logo); font-size: 2rem; 
    color: #666; font-weight: 400; margin-bottom: -5px; letter-spacing: 0;
}

.bottom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-bottom: 80px; }
.bottom-grid .post-thumb-card { height: auto; min-height: 380px; }

/* --- POST ARTICLE --- */
.post-container { 
    max-width: 900px; margin: 40px auto 80px; background: var(--bg-card); 
    padding: 60px; border-radius: 16px; border: none; box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
@media(max-width: 768px) { .post-container { padding: 30px 20px; } }
.post-header { margin-bottom: 40px; text-align: center; }
.post-h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 25px; color: var(--text-white); }
.post-meta-info { display: flex; align-items: center; justify-content: center; gap: 15px; color: var(--text-gray); font-size: 0.95rem; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 15px 0; }
.post-meta-info img { width: 50px; height: 50px; border-radius: 50%; }
.post-meta-text strong { color: var(--text-white); display: block; font-size: 1rem; }

/* POST CONTENT */
.post-content { font-size: 1.15rem; line-height: 1.8; color: var(--text-gray); }
.post-content p { margin-bottom: 25px; }
.post-content h2 { font-size: 2rem; margin: 50px 0 20px; color: var(--text-white); border-bottom: none; }
.post-content h3 { font-size: 1.6rem; margin: 30px 0 15px; color: var(--text-white); }
.post-content ul, .post-content ol { margin: 0 0 25px 20px; padding-left: 20px; }
.post-content li { margin-bottom: 10px; }
.post-content blockquote { 
    font-style: normal; font-size: 1.3rem; font-weight: 500; font-family: var(--font-heading);
    border-left: 6px solid var(--accent); padding: 30px; margin: 40px 0; 
    background: #FFF9D6; color: var(--text-white); border-radius: 8px; 
}
.post-content table { width: 100%; border-collapse: collapse; margin: 30px 0; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.post-content th, .post-content td { padding: 15px; border: 1px solid var(--border-color); text-align: left; }
.post-content th { background: #F5EBE0; font-weight: 700; color: var(--text-white); font-family: var(--font-heading); }
.post-content a { color: #D4AF37; font-weight: 700; text-decoration: none; border-bottom: 2px solid #D4AF37; }
.post-content a:hover { opacity: 0.8; }

/* FAQ BLOCK */
.faq-block { background: #FFFFFF; padding: 30px; margin: 30px 0; border-radius: 12px; border: 1px solid var(--border-color); border-left: 6px solid var(--accent); box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.faq-question { font-weight: 800; font-size: 1.3rem; margin-bottom: 10px; color: var(--text-white); font-family: var(--font-heading); }
.faq-answer { font-size: 1.05rem; color: var(--text-gray); }

/* --- PAGINATION --- */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 20px 0 60px; }
.page-link { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; font-weight: 600; color: var(--text-white); background: var(--bg-card); transition: 0.2s; }
.page-link:hover, .page-link.active { background: var(--accent); color: var(--text-white); border-color: var(--accent); }

/* --- FOOTER --- */
.site-footer { background: #FFFFFF; border-top: 1px solid var(--border-color); padding: 80px 0 30px; margin-top: auto; }
.footer-container { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media(min-width: 768px) { .footer-container { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-logo { font-size: 2.5rem; font-weight: 800; color: var(--text-white); margin-bottom: 15px; display: inline-block; font-family: var(--font-logo); }
.footer-text { color: var(--text-gray); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; max-width: 300px;}
.footer-title { color: var(--text-white); font-size: 1.2rem; margin-bottom: 25px; font-weight: 800; font-family: var(--font-heading); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-gray); transition: color 0.2s; font-size: 0.95rem; font-weight: 500; }
.footer-links a:hover { color: #111; padding-left: 5px; }
.contact-info { list-style: none; color: var(--text-gray); font-size: 0.95rem; font-weight: 500;}
.contact-info li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 10px; }
.footer-bottom { text-align: center; margin-top: 60px; padding-top: 25px; border-top: 1px solid var(--border-color); font-size: 0.85rem; color: #888; font-weight: 500;}