/* Blog Sidebar Styles */

/* Hero Banner Styles for Blog Pages */
body.single-post .vits-hero-banner__title,
body.blog .vits-hero-banner__title,
body.category .vits-hero-banner__title {
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.2;
}

/* Responsive hero title sizing */
@media (max-width: 767px) {
    body.single-post .vits-hero-banner__title,
    body.blog .vits-hero-banner__title,
    body.category .vits-hero-banner__title {
        font-size: 3rem;
    }
}

/* Reset any potential conflicts for non-blog pages */
body:not(.single-post):not(.blog):not(.category) .vits-hero-banner__meta {
    display: none;
}

body:not(.single-post):not(.blog):not(.category) .post-navigation {
    display: none;
}

body:not(.single-post):not(.blog):not(.category) .page-links {
    display: none;
}

/* Blog Page Hero Banner Enhancements */
body.single-post .vits-hero-banner,
body.blog .vits-hero-banner,
body.category .vits-hero-banner {
    margin-bottom: 4rem;
}

/* Ensure proper hero banner height for blog pages */
body.single-post .vits-hero-banner.vits-hero-banner--shallow,
body.blog .vits-hero-banner.vits-hero-banner--shallow,
body.category .vits-hero-banner.vits-hero-banner--shallow {
    min-height: 480px;
}

body.single-post .vits-hero-banner.vits-hero-banner--no-image,
body.blog .vits-hero-banner.vits-hero-banner--no-image,
body.category .vits-hero-banner.vits-hero-banner--no-image {
    min-height: 300px;
}

/* Responsive spacing for mobile */
@media (max-width: 768px) {
    body.single-post .vits-hero-banner,
    body.blog .vits-hero-banner,
    body.category .vits-hero-banner {
        margin-bottom: 2rem;
    }

    body.single-post .vits-hero-banner.vits-hero-banner--no-image,
    body.blog .vits-hero-banner.vits-hero-banner--no-image,
    body.category .vits-hero-banner.vits-hero-banner--no-image {
        min-height: 200px;
    }
}

/* Single Blog Post Styles - Scoped to blog pages only */
body.single-post .single-blog-post,
body.blog .single-blog-post,
body.category .single-blog-post {
    margin-bottom: 2rem;
}

/* Ensure proper text sizing for blog content */
body.single-post .single-blog-post .blog-post-content,
body.blog .single-blog-post .blog-post-content,
body.category .single-blog-post .blog-post-content {
    /*font-size: 1.125rem;*/
    line-height: 1.7;
    color: var(--hotel-inn-beyond--palette--dark-grey);
}

body.single-post .single-blog-post .blog-post-content p,
body.blog .single-blog-post .blog-post-content p,
body.category .single-blog-post .blog-post-content p {
    margin-bottom: 1.5rem;
    /*font-size: 1.125rem;*/
    line-height: 1.7;
}

body.single-post .single-blog-post .blog-post-content h2,
body.single-post .single-blog-post .blog-post-content h3,
body.single-post .single-blog-post .blog-post-content h4,
body.blog .single-blog-post .blog-post-content h2,
body.blog .single-blog-post .blog-post-content h3,
body.blog .single-blog-post .blog-post-content h4,
body.category .single-blog-post .blog-post-content h2,
body.category .single-blog-post .blog-post-content h3,
body.category .single-blog-post .blog-post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--hotel-inn-beyond--palette--blue-grey);
    line-height: 1.3;
}

/* Specific heading sizes for better hierarchy */
body.single-post .single-blog-post .blog-post-content h2,
body.blog .single-blog-post .blog-post-content h2,
body.category .single-blog-post .blog-post-content h2 {
    /*font-size: 2rem;*/
}

body.single-post .single-blog-post .blog-post-content h3,
body.blog .single-blog-post .blog-post-content h3,
body.category .single-blog-post .blog-post-content h3 {
    /*font-size: 1.5rem;*/
}

body.single-post .single-blog-post .blog-post-content h4,
body.blog .single-blog-post .blog-post-content h4,
body.category .single-blog-post .blog-post-content h4 {
    /*font-size: 1.25rem;*/
}

body.single-post .single-blog-post .blog-post-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hotel-inn-beyond--palette--light-grey);
}

body.single-post .single-blog-post .blog-post-tags {
    margin-bottom: 1rem;
}

body.single-post .single-blog-post .blog-post-tags .tags-title {
    font-weight: 600;
    color: var(--hotel-inn-beyond--palette--blue-grey);
}

body.single-post .single-blog-post .blog-post-tags a {
    color: var(--hotel-inn-beyond--palette--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

body.single-post .single-blog-post .blog-post-tags a:hover {
    color: var(--hotel-inn-beyond--palette--primary-light);
    text-decoration: underline;
}

/* Single Blog Post Hero Meta - Hidden since moved below hero */
body.single-post .vits-hero-banner__meta {
    display: none;
}

/* Blog Post Meta Section - Below Hero */
.blog-post-meta-section {
    padding: 0;
}

.blog-post-meta-section .blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
}

.blog-post-meta-section .blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hotel-inn-beyond--palette--primary);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.blog-post-meta-section .blog-post-meta a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-meta-section .blog-post-meta a:hover {
    color: var(--hotel-inn-beyond--palette--secondary);
}

/* Responsive styles for blog post meta section */
@media (max-width: 767px) {
    .blog-post-meta-section {
        padding: 1.5rem 0;
    }

    .blog-post-meta-section .blog-post-meta {
        gap: 0.75rem;
    }

    .blog-post-meta-section .blog-post-meta span {
        padding: 0.4rem 0.6rem;
    }
}

body.single-post .vits-hero-banner__meta .blog-post-meta a:hover {
    color: var(--hotel-inn-beyond--palette--blue-grey);
    text-decoration: underline;
}

/* Post Navigation - Scoped to blog pages only */
body.single-post .post-navigation {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

body.single-post .post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

body.single-post .post-navigation .nav-previous,
body.single-post .post-navigation .nav-next {
    flex: 1;
    max-width: 48%;
}

/*body.single-post .post-navigation .nav-subtitle {*/
/*    display: block;*/
/*    font-size: 0.85rem;*/
/*    color: var(--hotel-inn-beyond--palette--mid-grey);*/
/*    margin-bottom: 0.25rem;*/
/*    text-transform: uppercase;*/
/*    letter-spacing: 0.5px;*/
/*}*/

body.single-post .post-navigation .nav-title {
    display: block;
    font-weight: 600;
    color: var(--hotel-inn-beyond--palette--blue-grey);
    line-height: 1.3;
}

body.single-post .post-navigation a {
    text-decoration: none;
    transition: color 0.3s ease;
}

body.single-post .post-navigation a:hover .nav-title {
    color: var(--hotel-inn-beyond--palette--primary);
}

/* Page Links (for multi-page posts) - Scoped to blog pages only */
body.single-post .page-links {
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

body.single-post .page-links a,
body.single-post .page-links > span {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    background: var(--hotel-inn-beyond--palette--white);
    border: 1px solid var(--hotel-inn-beyond--palette--light-grey);
    border-radius: 4px;
    text-decoration: none;
    color: var(--hotel-inn-beyond--palette--blue-grey);
    transition: all 0.3s ease;
}

body.single-post .page-links a:hover {
    background: var(--hotel-inn-beyond--palette--primary);
    color: var(--hotel-inn-beyond--palette--white);
    border-color: var(--hotel-inn-beyond--palette--primary);
}

body.single-post .page-links > span {
    background: var(--hotel-inn-beyond--palette--primary);
    color: var(--hotel-inn-beyond--palette--white);
    border-color: var(--hotel-inn-beyond--palette--primary);
}

.blog-sidebar {
    padding-left: 2rem;
}

/* Widget Base Styles */
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.sidebar-widget .widget-title {
    background: var(--hotel-inn-beyond--palette--blue-grey);
    color: var(--hotel-inn-beyond--palette--white);
    margin: 0;
    padding: 1rem 1.5rem;
    /*font-size: 1.1rem;*/
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-widget .widget-title i {
    /*font-size: 1rem;*/
}

.sidebar-widget .widget-content {
    padding: 1.5rem;
}

/* Countries/Regions Widget */
.countries-list,
.countries-sublist,
.categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.countries-list .region-item,
.countries-list .country-item
{
    margin-bottom: .7rem;
}

.countries-list .region-item:last-child {
    margin-bottom: 0;
}

#blog-sidebar .region-link,
#blog-sidebar .country-link,
#blog-sidebar .category-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    color: var(--hotel-inn-beyond--palette--dark-grey);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#blog-sidebar .region-link:hover,
#blog-sidebar .country-link:hover,
#blog-sidebar .category-link:hover {
    background: var(--hotel-inn-beyond--palette--very-light-grey);
    color: var(--hotel-inn-beyond--palette--blue-grey);
    text-decoration: none;
    transform: translateX(3px);
}

#blog-sidebar .region-link i {
    color: var(--hotel-inn-beyond--palette--blue-grey);
    /*font-size: 0.9rem;*/
    width: 16px;
    text-align: center;
}


.term-name {
    flex-grow: 1;
    font-weight: 500;
}


/* Current term highlighting */
#blog-sidebar .current-term > .region-link,
#blog-sidebar .current-term > .country-link,
#blog-sidebar .current-term > .category-link {
    color: var(--hotel-inn-beyond--palette--white);
    border-color: var(--hotel-inn-beyond--palette--blue-grey);
}

#blog-sidebar .current-term > .region-link a,
#blog-sidebar .current-term > .country-link a,
#blog-sidebar .current-term > .category-link a {
    color: var(--hotel-inn-beyond--palette--white);
    font-weight: 600;
}


#blog-sidebar .current-term > .region-link i,
#blog-sidebar .current-term > .country-link i,
#blog-sidebar .current-term > .category-link i {
    color: var(--hotel-inn-beyond--palette--white);
}


/* Countries sublist (nested under regions) */
.countries-sublist {
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--hotel-inn-beyond--palette--light-grey);
}

.countries-sublist .country-item {
    margin-bottom: 0.5rem;
}

.countries-sublist .country-item:last-child {
    margin-bottom: 0;
}

.countries-sublist .country-link {
    padding: 0.5rem 0.75rem;
    /*font-size: 0.9rem;*/
}

/* Standalone countries (no parent region) */
.country-item.standalone .country-link {
    background: #fff;
    border: 1px solid var(--hotel-inn-beyond--palette--light-grey);
}

/* All Countries link styling */
.country-item.all-countries {
    margin-bottom: 1rem;
}

.country-item.all-countries .country-link {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid var(--hotel-inn-beyond--palette--light-grey);
    font-weight: 600;
    color: var(--hotel-inn-beyond--palette--dark-grey);
}

.country-item.all-countries.current-term .country-link {
    background: var(--hotel-inn-beyond--palette--primary);
    color: #fff;
    border-color: var(--hotel-inn-beyond--palette--primary);
}

.country-item.all-countries .country-link:hover {
    background: var(--hotel-inn-beyond--palette--primary);
    color: #fff;
    border-color: var(--hotel-inn-beyond--palette--primary);
}

/* All Categories link styling */
.category-item.all-categories {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--hotel-inn-beyond--palette--light-grey);
}

.category-item.all-categories .category-link {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid var(--hotel-inn-beyond--palette--light-grey);
    font-weight: 600;
    color: var(--hotel-inn-beyond--palette--dark-grey);
}

.category-item.all-categories.current-term .category-link {
    background: var(--hotel-inn-beyond--palette--primary);
    color: #fff;
    border-color: var(--hotel-inn-beyond--palette--primary);
}

.category-item.all-categories .category-link:hover {
    background: var(--hotel-inn-beyond--palette--primary);
    color: #fff;
    border-color: var(--hotel-inn-beyond--palette--primary);
}

/* Blog posts header styling for country filter */
.blog-posts-subtitle {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--hotel-inn-beyond--palette--mid-grey);
}

.clear-filter-link {
    color: var(--hotel-inn-beyond--palette--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.clear-filter-link:hover {
    color: var(--hotel-inn-beyond--palette--dark-grey);
    text-decoration: underline;
}

/* Categories Widget */
.categories-list .category-item {
    margin-bottom: 0.75rem;
}

.region-item:last-child,
.country-item:last-child,
.category-item:last-child {
    margin-bottom: 0;
}

.category-description {
    display: block;
    /*font-size: 0.8rem;*/
    color: var(--hotel-inn-beyond--palette--mid-grey);
    margin-top: 0.25rem;
    padding-left: 2rem;
    font-style: italic;
}

/* Recent Posts Widget */
#blog-sidebar .recent-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#blog-sidebar .recent-post-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--hotel-inn-beyond--palette--light-grey);
}

#blog-sidebar .recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

#blog-sidebar .recent-post-link {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

#blog-sidebar .recent-post-link:hover {
    text-decoration: none;
    color: var(--hotel-inn-beyond--palette--blue-grey);
}

#blog-sidebar .recent-post-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

#blog-sidebar .recent-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#blog-sidebar .recent-post-content {
    flex-grow: 1;
}

#blog-sidebar .recent-post-title {
    /*font-size: 0.9rem;*/
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    color: var(--hotel-inn-beyond--palette--dark-grey);
}

#blog-sidebar .recent-post-date {
    /*font-size: 0.8rem;*/
    color: var(--hotel-inn-beyond--palette--mid-grey);
}

/* Search Widget */
.search-form-group {
    position: relative;
    display: flex;
}

.search-field {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--hotel-inn-beyond--palette--light-grey);
    border-radius: 6px 0 0 6px;
    /*font-size: 0.9rem;*/
    outline: none;
    transition: border-color 0.3s ease;
}

.search-field:focus {
    border-color: var(--hotel-inn-beyond--palette--blue-grey);
}

.search-submit {
    padding: 0.75rem 1rem;
    background: var(--hotel-inn-beyond--palette--blue-grey);
    color: var(--hotel-inn-beyond--palette--white);
    border: 2px solid var(--hotel-inn-beyond--palette--blue-grey);
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: none;
}

.search-submit:hover {
    background: var(--hotel-inn-beyond--palette--dark-grey);
    border-color: var(--hotel-inn-beyond--palette--dark-grey);
}

.search-submit i {
    /*font-size: 0.9rem;*/
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-sidebar {
        padding-left: 0;
        margin-top: 2rem;
    }

    .sidebar-widget {
        margin-bottom: 1.5rem;
    }

    .sidebar-widget .widget-content {
        padding: 1rem;
    }

    #blog-sidebar .region-link,
    #blog-sidebar .country-link,
    #blog-sidebar .category-link {
        padding: 0.5rem;
    }

    .countries-sublist {
        padding-left: 0.5rem;
    }

    .recent-post-thumbnail {
        width: 50px;
        height: 50px;
    }

    .recent-post-title {
        /*font-size: 0.85rem;*/
    }
}

@media (max-width: 576px) {
    .sidebar-widget .widget-title {
        padding: 0.75rem 1rem;
        /*font-size: 1rem;*/
    }

    .sidebar-widget .widget-content {
        padding: 0.75rem;
    }

    .recent-post-link {
        gap: 0.5rem;
    }

    .recent-post-thumbnail {
        width: 40px;
        height: 40px;
    }

    /* Single blog post hero meta responsive */
    body.single-post .vits-hero-banner__meta .blog-post-meta {
        gap: 0.5rem;
        /*font-size: 0.8rem;*/
    }

    body.single-post .vits-hero-banner__meta .blog-post-meta span {
        padding: 0.4rem 0.6rem;
        /*font-size: 0.8rem;*/
    }

    /* Post navigation responsive */
    body.single-post .post-navigation .nav-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    body.single-post .post-navigation .nav-previous,
    body.single-post .post-navigation .nav-next {
        max-width: 100%;
    }

    /* Responsive heading sizes */
    body.single-post .single-blog-post .blog-post-content h2,
    body.blog .single-blog-post .blog-post-content h2,
    body.category .single-blog-post .blog-post-content h2 {
        /*font-size: 1.75rem;*/
    }

    body.single-post .single-blog-post .blog-post-content h3,
    body.blog .single-blog-post .blog-post-content h3,
    body.category .single-blog-post .blog-post-content h3 {
        /*font-size: 1.375rem;*/
    }

    body.single-post .single-blog-post .blog-post-content h4,
    body.blog .single-blog-post .blog-post-content h4,
    body.category .single-blog-post .blog-post-content h4 {
        /*font-size: 1.125rem;*/
    }
}

.blog-post-content {
    margin-top: 1em;
}
