/*
Theme Name: Nik Persi Travel
Theme URI: https://nikpersitravel.bg
Author: Nik Persi
Description: Тема за автобусни екскурзии и пътувания в България.
Version: 2.0
Text Domain: nikpersi
*/

/* -----------------------------------
   1. Reset & Base
----------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
    background: #F4F8FA;
    color: #1F1F1F;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: #1F6AA3;
    text-decoration: none;
    transition: 0.2s ease;
}

a:hover {
    color: #154A73;
}

h1, h2, h3, h4, h5, h6 {
    color: #0A2A43;
    margin-top: 0;
    font-weight: 700;
}

/* -----------------------------------
   2. Layout
----------------------------------- */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* -----------------------------------
   3. Header
----------------------------------- */

.site-header {
    background: #0A2A43;
    color: #fff;
    padding: 15px 0;
    border-bottom: 4px solid #3BB273;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    height: 60px;
    width: auto;
    display: block;
}

/* Навигация */

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    background: #3BB273;
}

/* -----------------------------------
   4. Footer
----------------------------------- */

.site-footer {
    background: #0A2A43;
    color: #fff;
    padding: 25px 0;
    margin-top: 40px;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.site-footer a {
    color: #3BB273;
}

.site-footer a:hover {
    color: #DFF5E8;
}

/* -----------------------------------
   5. Buttons
----------------------------------- */

.btn,
button,
input[type="submit"] {
    background: #3BB273;
    color: #fff;
    padding: 10px 18px;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn:hover {
    background: #2E8A59;
}

/* -----------------------------------
   6. Forms
----------------------------------- */

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #C9D6E5;
    border-radius: 4px;
    background: #fff;
    transition: 0.2s ease;
}

input:focus,
textarea:focus {
    border-color: #3BB273;
    box-shadow: 0 0 0 2px rgba(59, 178, 115, 0.25);
}

label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

/* -----------------------------------
   9. 404 Page
----------------------------------- */

.error-404 {
    background: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* -----------------------------------
   10. Responsive
----------------------------------- */

@media (max-width: 992px) {
    .destinations-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .destinations-list {
        grid-template-columns: 1fr;
    }

    .site-header .container,
    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Sticky header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: #3BB273;
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-size: 1.4rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Mobile nav */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        background: #0A2A43;
        padding: 15px 0;
        margin-top: 10px;
    }

    .main-nav.nav-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Hero Section */
.home-hero {
    background: url('/wp-content/themes/nikpersi/assets/hero-bg.png') center/cover no-repeat;
    padding: 120px 20px;
    text-align: center;
    color: #fff;
    border-radius: 0 0 20px 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.home-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.home-hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero-btn {
    background: #00a651;
    padding: 14px 28px;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    display: inline-block;
}


.trip-types {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.trip-filter {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}



/* Desktop layout */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #DFF5E8;
}

/* Desktop logo layout */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-logo {
    height: 70px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #DFF5E8;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: #FFFFFF;
    opacity: 0.85;
    margin-top: 2px;
}

/* Mobile layout */
@media (max-width: 768px) {

    /* Header alignment */
    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* SHOW logo image on mobile */
    .site-logo {
        display: block;
        height: 55px;
    }

    /* Show only main title */
    .logo-title {
        font-size: 1.6rem;
        font-weight: 900;
        color: #DFF5E8;
        display: block;
    }

    /* Hide subtitle on mobile */
    .logo-subtitle {
        display: none;
    }

    /* Hamburger menu right side */
    .menu-toggle {
        margin-left: auto;
        background: #3BB273;
        color: #fff;
        padding: 10px 14px;
        border-radius: 6px;
        font-size: 1.6rem;
    }

    /* Mobile nav */
    .main-nav {
        display: none;
        width: 100%;
        background: #0A2A43;
        padding: 15px 0;
        margin-top: 10px;
    }

    .main-nav.nav-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

.site-logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 0 18px rgba(255,255,255,1));
}
.excursion-section {
    padding: 40px 20px;
}

.excursion-section h2 {
    color: #3BB273;
    margin-bottom: 20px;
}

.excursion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.excursion-card {
    background: #0A2A43;
    padding: 20px;
    border-radius: 10px;
    color: #fff;
}

.excursion-card img {
    width: 100%;
    border-radius: 8px;
}

.excursion-card .btn {
    display: inline-block;
    margin-top: 10px;
    background: #3BB273;
    padding: 8px 14px;
    border-radius: 6px;
    color: #fff;
}

.excursion-section {
    padding: 40px 20px;
}

.excursion-section h2 {
    color: #3BB273;
    margin-bottom: 20px;
}

.excursion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.excursion-card {
    background: #0A2A43;
    padding: 20px;
    border-radius: 10px;
    color: #fff;
}

.excursion-card img {
    width: 100%;
    border-radius: 8px;
}

.excursion-card .btn {
    display: inline-block;
    margin-top: 10px;
    background: #3BB273;
    padding: 8px 14px;
    border-radius: 6px;
    color: #fff;
}

.single-hero {
    text-align: center;
    padding: 40px 20px;
    background: #0A2A43;
    color: #DFF5E8;
}

.single-hero img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.single-content {
    padding: 40px 20px;
    color: #fff;
}

.filter-form {
    background: #0A2A43;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    color: #fff;
}

.filter-form h3 {
    color: #3BB273;
    margin-bottom: 10px;
}

.filter-form input[type="number"],
.filter-form input[type="date"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: none;
}

.filter-form button {
    background: #3BB273;
    padding: 10px 20px;
    border-radius: 6px;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* ============================================================
   GRID LAYOUT
   ============================================================ */

.archive-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
    position: relative;
}

/* ============================================================
   STICKY SIDEBAR
   ============================================================ */

.filters-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.filters-sidebar h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

.filter-group input[type="number"],
.filter-group input[type="date"],
.filter-group select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* ============================================================
   MOBILE FILTERS BUTTON
   ============================================================ */

.mobile-filters-toggle {
    display: none;
    width: 100%;
    padding: 12px;
    background: #0077cc;
    color: #fff;
    border: none;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 16px;
}

/* ============================================================
   MOBILE DRAWER PANEL
   ============================================================ */

.filters-panel {
    display: block;
}

@media (max-width: 900px) {

    .archive-grid {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
        border: none;
        padding: 0;
    }

    .mobile-filters-toggle {
        display: block;
    }

    .filters-panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: #fff;
        padding: 25px;
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 9999;
        overflow-y: auto;
    }

    .filters-panel.open {
        transform: translateX(0);
    }

    .apply-filters,
    .close-filters {
        width: 100%;
        padding: 12px;
        margin-top: 10px;
        border-radius: 8px;
        font-size: 16px;
    }

    .apply-filters {
        background: #0077cc;
        color: #fff;
        border: none;
    }

    .close-filters {
        background: #ddd;
        border: none;
    }
}

/* ============================================================
   ARCHIVE CONTENT
   ============================================================ */

.archive-content {
    width: 100%;
}

/* Универсален HERO за всички архиви */
.universal-hero {
    background: linear-gradient(135deg, #2e8b57 0%, #1f6b42 100%);
    color: #fff;
    padding: 25px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    text-align: center;
}

/* Текст */
.universal-hero .hero-content h1 {
    font-size: 30px;
    margin-bottom: 8px;
    font-weight: 700;
    color: #fff;
}

.universal-hero .hero-content p {
    font-size: 15px;
    line-height: 1.5;
    max-width: 420px;
    opacity: 0.95;
}

/* Картинка */
.universal-hero .hero-image img {
    width: 160px;
    height: auto;
    opacity: 0.9;
}

/* Мобилно */
@media (max-width: 768px) {
    .universal-hero {
        flex-direction: column;
        text-align: center;
        padding: 15px 5px;
    }

    .universal-hero .hero-image img {
        width: 130px;
        margin-top: 10px;
    }
}


/* ============================================================
   GRID OF CARDS
   ============================================================ */

.excursion-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


/* ============================================================
   CARD STYLE
   ============================================================ */

.excursion-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    transition: all 0.2s ease;
}

.excursion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.excursion-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.excursion-card h3 {
    font-size: 20px;
    margin: 15px;
}

.excursion-card p {
    margin: 0 15px 15px;
    color: #555;
}

.excursion-card .btn {
    display: inline-block;
    margin: 0 15px 15px;
    padding: 10px 15px;
    background: #0077cc;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
}

/* ============================================================
   LOAD MORE BUTTON
   ============================================================ */

#excursions-load-more,
#vacations-load-more,
#news-load-more {
    display: block;
    width: 100%;
    padding: 14px;
    background: #0077cc;
    color: #fff;
    border: none;
    border-radius: 8px;
    margin: 25px auto 0;
    font-size: 18px;
    cursor: pointer;
}

#excursions-load-more:hover,
#vacations-load-more:hover,
#news-load-more:hover {
    background: #005fa3;
}

/* ============================================================
   SKELETON LOADER
   ============================================================ */

.skeleton-card {
    height: 260px;
    border-radius: 12px;
    background: linear-gradient(90deg, #e5e5e5 25%, #f2f2f2 50%, #e5e5e5 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.4s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   SMALL RESPONSIVE FIXES
   ============================================================ */

@media (max-width: 600px) {
    .excursion-card img {
        height: 150px;
    }
}

.home-section {
    margin: 60px auto;
}

.home-section h2 {
    font-size: 32px;
    margin-bottom: 25px;
    text-align: center;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.home-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    padding-bottom: 20px;
    overflow: hidden;
}

.home-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.home-card h3 {
    margin: 15px;
    font-size: 20px;
}

.home-card p {
    margin: 0 15px 15px;
    color: #555;
}

.contact-btn {
    display: block;
    margin: 0 15px;
    padding: 10px;
    background: #00a651;
    color: #fff;
    text-align: center;
    border-radius: 6px;
}

.home-seo {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
    line-height: 1.7;
}

.home-faq {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
}

.home-faq h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
}

.faq-item {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 12px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
}

.faq-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.faq-item p {
    color: #555;
    line-height: 1.6;
}

.view-more-btn {
    display: block;
    margin: 0 15px;
    padding: 10px;
    background: #0077cc;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
}

.section-divider-bus {
    width: 100%;
    height: 80px;
    margin: 50px 0;
}

.section-divider-bus svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Hero секция само за десктоп */
@media (min-width: 1024px) {
    .home-hero {
        position: relative;
        height: 100vh; /* 100% от viewport-а */
        background: url('/wp-content/themes/nikpersi/assets/hero-bg.png') center/cover no-repeat;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: #fff;
    }

    /* Тъмен overlay за по-добра четимост */
    .hero-content {
        position: relative;
        z-index: 2;
        max-width: 800px;
        padding: 0 20px;
    }

	.home-hero h1 {
	    font-size: 56px;
	    font-weight: 700;
	    margin-bottom: 20px;
	    color: #ffffff;
	    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
	}

	.home-hero p {
	    font-size: 22px;
	    line-height: 1.6;
	    margin-bottom: 30px;
	    color: #f2f2f2;
	    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
	}

	/* По-мек overlay */
	.home-hero::before {
	    content: "";
	    position: absolute;
	    inset: 0;
	    background: rgba(0, 0, 0, 0.35); /* беше 0.45 */
	    z-index: 1;
	}


    .hero-btn,
    .hero-btn-outline {
        font-size: 18px;
        padding: 14px 28px;
        border-radius: 8px;
        font-weight: 600;
        text-transform: uppercase;
    }
}


.breadcrumbs {
    font-size: 16px;
    margin: 5px 0 8px;
    color: #003366;
    padding: 10px;
}

.breadcrumbs a {
    color: #00a651;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

input[type=range] {
    width: 100%;
    accent-color: #00a651;
}

.no-results {
    padding: 20px;
    font-size: 18px;
    color: #003366;
    font-weight: 600;
}

.compact-filters .filter-group {
    margin-bottom: 10px;
}

.compact-filters h4 {
    margin-bottom: 5px;
    font-size: 14px;
}

.filter-item {
    display: block;
    margin: 3px 0;
    font-size: 13px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Зелените бутони */
.apply-filters,
.clear-filters {
    background: #2e8b57;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    flex: 1; /* прави ги компактни */
}

/* Бутон Затвори – друг цвят + цял ред */
.full-close {
    background: #ccc;
    color: #333;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%; /* цял ред */
    margin-top: 5px;
    text-align: center;
}

/* Desktop: скриваме бутона Затвори */
@media (min-width: 900px) {
    .full-close {
        display: none !important;
    }
}

/* Mobile: бутонът е видим и на цял ред */
@media (max-width: 899px) {
    .full-close {
        display: block;
        width: 100%;
        background: #ccc;
        color: #333;
        padding: 12px 15px;
        border-radius: 6px;
        margin-top: 10px;
        text-align: center;
        font-weight: 600;
    }
}
