/**
 * Libero — inner pages skin (CSS ONLY).
 * Намерно без PHP/shortcode/query промени — production URL-и и приказ на производи остануваат идентични.
 */

/* =========================================================
   INNER PAGE BANNER (Лето, Зима, За нас…)
   ========================================================= */
.cs-page_heading.cs-style1 {
    background-color: var(--lib-navy) !important;
    background-blend-mode: overlay;
}
.cs-page_heading .cs-page_title,
.cs-page_heading .cs-page_title.cs-white {
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: clamp(36px, 5vw, 56px) !important;
    font-weight: 700 !important;
    color: #fff !important;
    letter-spacing: -.02em;
}
.cs-page_heading .breadcrumb,
.cs-page_heading .breadcrumb a,
.cs-page_heading .breadcrumb span {
    color: rgba(255,255,255,.78) !important;
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.cs-page_heading .breadcrumb a:hover,
.cs-page_heading .breadcrumb .current {
    color: var(--lib-gold) !important;
}

/* =========================================================
   TOUR LISTING CARDS (Elementor widget — Лето / Зима)
   ========================================================= */
.cs_card.cs_style_3 {
    border-radius: 16px !important;
    overflow: hidden;
    border: 1px solid var(--lib-line);
    box-shadow: 0 18px 50px rgba(15,31,56,.10) !important;
    transition: transform .35s ease, box-shadow .35s ease !important;
    max-width: none !important;
}
.cs_card.cs_style_3:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(15,31,56,.16) !important;
}
.cs_card.cs_style_3 .cs_card_title,
.cs_card.cs_style_3 .cs_card_title a {
    font-family: "Playfair Display", Georgia, serif !important;
    color: var(--lib-navy) !important;
}
.cs_card.cs_style_3 .cs_card_subtitle {
    color: var(--lib-muted) !important;
    font-family: "Manrope", sans-serif;
}
.cs_card.cs_style_3 .cs_package_badge {
    background: linear-gradient(135deg, var(--lib-gold), var(--lib-gold-2)) !important;
    color: #fff !important;
    border-radius: 999px !important;
    clip-path: none !important;
    padding: 8px 16px !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}
.cs_card.cs_style_3:hover .cs_package_badge {
    background: var(--lib-navy) !important;
    color: #fff !important;
}
.cs_card.cs_style_3 .cs_btn.cs_style_1 {
    border-radius: 999px !important;
    padding: 10px 22px !important;
    font-size: 13px !important;
}

/* section headings on inner pages */
.cs-section_heading .cs-section_subtitle,
.cs_section_subtitle {
    color: var(--lib-gold-2) !important;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px !important;
}
.cs-section_heading .cs-section_title,
.cs_section_title,
.elementor-widget-heading h2 {
    font-family: "Playfair Display", Georgia, serif !important;
    color: var(--lib-navy) !important;
}

/* =========================================================
   TOUR CPT CONTENT (/tour/greece-leto/ …) — the_content + shortcodes
   ========================================================= */
.tour-content-area {
    background: var(--lib-cream);
    padding: 0 0 60px;
}
.tour-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
.tour-content-wrapper .container {
    padding-top: 24px;
}

/* Greece / destination cards — само hover/radius (inline бои остануваат) */
.destination-card {
    border-radius: 16px !important;
    transition: transform .3s ease, box-shadow .3s ease !important;
}
.destination-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(15,31,56,.14) !important;
}

/* leto shortcode cards */
.leto-destinations-cards .destination-card {
    border-radius: 16px !important;
    border: 1px solid var(--lib-line);
}

/* =========================================================
   ПРАЗНИЧНИ ПРОГРАМИ (page-holiday-programs.php markup)
   ========================================================= */
.premium-holidays-grid { gap: 22px !important; }
.premium-holiday-card {
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,.12);
}
.premium-card-title {
    font-family: "Playfair Display", Georgia, serif !important;
}
.premium-tours-root,
.premium-tours-group {
    background: var(--lib-cream);
}
.premium-tour-card,
.premium-tours-grid .premium-tour-item {
    border-radius: 14px;
    border: 1px solid var(--lib-line);
    box-shadow: 0 12px 32px rgba(15,31,56,.08);
    transition: transform .3s ease, box-shadow .3s ease;
}
.premium-tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15,31,56,.12);
}
.premium-tour-price {
    color: var(--lib-gold-2) !important;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
}

/* =========================================================
   WOOCOMMERCE SINGLE PRODUCT — само типографија/акценти
   ========================================================= */
.single-product .product_title {
    font-family: "Playfair Display", Georgia, serif !important;
    color: var(--lib-navy) !important;
}
.single-product .price,
.woocommerce-Price-amount {
    color: var(--lib-gold-2) !important;
    font-weight: 700;
}
.single-product .single_add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button {
    background: linear-gradient(135deg, var(--lib-gold), var(--lib-gold-2)) !important;
    color: #fff !important;
    border-radius: 999px !important;
    border: none !important;
    font-family: "Manrope", sans-serif !important;
    font-weight: 700 !important;
}

/* =========================================================
   ABOUT / GENERIC CONTENT BLOCKS
   ========================================================= */
.main-area .elementor-widget-text-editor p {
    font-family: "Manrope", sans-serif;
    color: #4a5568;
    line-height: 1.75;
}
.main-area .elementor-widget-text-editor h2,
.main-area .elementor-widget-text-editor h3 {
    font-family: "Playfair Display", Georgia, serif !important;
    color: var(--lib-navy) !important;
}

/* teal leftovers → gold (само каде нема inline style) */
.main-area a:not([style*="color"]) {
    transition: color .25s ease;
}
.cs_accent_color,
.text-accent,
[style*="color: #3fd0d4"]:not([style*="background"]) {
    color: var(--lib-gold-2) !important;
}

/* spacing cleanup */
.cs_height_150,
.cs_height_xl_130 {
    height: 60px !important;
}

@media (max-width: 767px) {
    body.lib-inner-page .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* =========================================================
   SITEWIDE INNER SHELL (не е почетна)
   ========================================================= */
body.lib-inner-page .main-area {
    background: var(--lib-cream);
}
body.lib-inner-page:not(.single-tour) .cs-page_heading + .elementor,
body.lib-inner-page .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1200px;
}

/* =========================================================
   TOUR CPT — luxury shell (производите + href остануваат)
   Кога shortcode hero постои, тргни го дуплираниот banner.
   ========================================================= */
body.lib-tour-single:has([class$="-hero"]) .cs-page_heading {
    display: none !important;
}

body.lib-tour-single .tour-content-area {
    background: var(--lib-cream);
    padding: 0 0 72px;
}

body.lib-tour-single .lib-tour-body--has-hero ~ .tour-content-area,
body.lib-tour-single:has(.lib-tour-body--has-hero) .main-area,
body.lib-tour-single:has(.lib-tour-body--after-page-hero) .main-area {
    background: var(--lib-cream);
}

/* Interactive destination heroes — navy/gold overlay врз постоечка слика */
body.lib-tour-single [class$="-hero"] {
    position: relative;
    color: #fff !important;
}
body.lib-tour-single [class$="-hero"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,31,56,.82) 0%, rgba(15,31,56,.52) 45%, rgba(197,134,42,.28) 100%);
    z-index: 1;
    pointer-events: none;
}
body.lib-tour-single [class$="-hero"] .container,
body.lib-tour-single [class$="-hero"] > div[style*="position: absolute"] {
    position: relative;
    z-index: 2;
}
body.lib-tour-single [class$="-hero"] h1,
body.lib-tour-single [class$="-hero"] h2 {
    font-family: "Playfair Display", Georgia, serif !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-shadow: 0 8px 32px rgba(0,0,0,.25);
}
body.lib-tour-single [class$="-hero"] p {
    font-family: "Manrope", sans-serif;
    color: rgba(255,255,255,.88) !important;
}

/* Section titles inside tour shortcodes */
body.lib-tour-single .tour-content-wrapper h2,
body.lib-tour-single .tour-content-wrapper h3 {
    font-family: "Playfair Display", Georgia, serif !important;
    color: var(--lib-navy) !important;
}

/* Accent lines / icons / CTA — teal → gold (само стил, не href) */
body.lib-tour-single .tour-content-wrapper [style*="background: linear-gradient(90deg, #3fd0d4"],
body.lib-tour-single .tour-content-wrapper [style*="background:linear-gradient(90deg, #3fd0d4"],
body.lib-tour-single .tour-content-wrapper [style*="linear-gradient(135deg, #3fd0d4"],
body.lib-tour-single .tour-content-wrapper [style*="linear-gradient(135deg,#3fd0d4"] {
    background: linear-gradient(90deg, var(--lib-gold), var(--lib-gold-2)) !important;
}
body.lib-tour-single .tour-content-wrapper button,
body.lib-tour-single .tour-content-wrapper .button,
body.lib-tour-single .tour-content-wrapper a[style*="linear-gradient(135deg, #3fd0d4"],
body.lib-tour-single .tour-content-wrapper a[style*="linear-gradient(135deg,#3fd0d4"] {
    background: linear-gradient(135deg, var(--lib-gold) 0%, var(--lib-gold-2) 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 26px rgba(197,134,42,.38) !important;
}
body.lib-tour-single .tour-content-wrapper i[style*="color: #3fd0d4"],
body.lib-tour-single .tour-content-wrapper [style*="-webkit-background-clip: text"][style*="#3fd0d4"] {
    color: var(--lib-gold) !important;
    -webkit-text-fill-color: var(--lib-gold) !important;
    background: none !important;
}

/* Destination cards — luxury frame (клик/nav логика непрменета) */
body.lib-tour-single .destination-card {
    border: 1px solid var(--lib-line) !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 44px rgba(15,31,56,.08) !important;
    background: #fff !important;
}
body.lib-tour-single .destination-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 56px rgba(15,31,56,.14) !important;
}

/* Back / secondary buttons */
body.lib-tour-single .tour-content-wrapper button[onclick*="hide"],
body.lib-tour-single .tour-content-wrapper button[onclick*="Hide"],
body.lib-tour-single .tour-content-wrapper button[onclick*="back"],
body.lib-tour-single .tour-content-wrapper button[onclick*="Back"] {
    background: rgba(15,31,56,.06) !important;
    color: var(--lib-navy) !important;
    border: 1px solid var(--lib-line) !important;
    box-shadow: none !important;
}

/* =========================================================
   ЕДНОДНЕВНИ (page slug template)
   ========================================================= */
body.lib-inner-page .cs_hero.cs_style_1 .cs_hero_overlay {
    background: linear-gradient(135deg, rgba(15,31,56,.78) 0%, rgba(15,31,56,.55) 100%) !important;
}
body.lib-inner-page .cs_hero.cs_style_1 .cs_hero_title {
    font-family: "Playfair Display", Georgia, serif !important;
}
body.lib-inner-page .cs_stats_card {
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(12px);
}
body.lib-inner-page .cs_feature_card,
body.lib-inner-page .cs_tour_card {
    border-radius: 16px !important;
    border: 1px solid var(--lib-line);
    box-shadow: 0 14px 40px rgba(15,31,56,.08) !important;
    transition: transform .3s ease, box-shadow .3s ease;
}
body.lib-inner-page .cs_tour_card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(15,31,56,.12) !important;
}
body.lib-inner-page .cs_tour_title a {
    font-family: "Playfair Display", Georgia, serif !important;
    color: var(--lib-navy) !important;
}
body.lib-inner-page .cs_tour_price .cs_accent_color,
body.lib-inner-page .cs_price.cs_accent_color {
    color: var(--lib-gold-2) !important;
}
body.lib-inner-page .cs_btn.cs_btn_primary,
body.lib-inner-page .cs_btn.cs_btn_primary:hover {
    background: linear-gradient(135deg, var(--lib-gold), var(--lib-gold-2)) !important;
    color: #fff !important;
    border-radius: 999px !important;
    border: none !important;
}

/* =========================================================
   ПРАЗНИЧНИ — дополнителен skin (категории + tour cards)
   ========================================================= */
.holiday-hero-badge,
.premium-tours-title-icon {
    color: var(--lib-gold) !important;
}
.premium-holiday-card .premium-card-bg {
    filter: saturate(.9) brightness(.85);
}
.premium-tour-card a,
.premium-tours-grid a {
    /* само типографија — href од PHP останува */
    transition: color .25s ease;
}
.premium-tour-card a:hover {
    color: var(--lib-gold-2) !important;
}

/* =========================================================
   ELEMENTOR секции (Лето, Зима, За нас…)
   ========================================================= */
body.lib-inner-page .elementor-section.elementor-section-stretched:not(.cs-page_heading) {
    padding-top: 48px;
    padding-bottom: 48px;
}
body.lib-inner-page .elementor-widget-image-box .elementor-image-box-title {
    font-family: "Playfair Display", Georgia, serif !important;
}

/* Teal accent cleanup (без inline color override каде е можно) */
body.lib-inner-page .cs_accent_color,
body.lib-inner-page .cs_accent_bg {
    color: var(--lib-gold-2);
}
body.lib-inner-page .cs_accent_bg {
    background: linear-gradient(135deg, var(--lib-gold), var(--lib-gold-2)) !important;
    color: #fff !important;
}

/* =========================================================
   Hub pages — lib-offer grid (Зимување, Лето)
   ========================================================= */
body.lib-winter-hub .lib-hub-tours,
body.lib-summer-hub .lib-hub-tours {
    padding-top: clamp(48px, 6vw, 72px);
    padding-bottom: clamp(56px, 7vw, 88px);
}
body.lib-winter-hub .lib-hub-tours .lib-section__head,
body.lib-summer-hub .lib-hub-tours .lib-section__head {
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(32px, 4vw, 48px);
}
body.lib-winter-hub .lib-hub-offer-grid .lib-offer__img,
body.lib-summer-hub .lib-hub-offer-grid .lib-offer__img {
    height: 220px;
}

