/* ============================================================
   BLOGS PAGE TEMPLATE
   Template: templates/blogs.php
============================================================ */

/* Reset overrides */
#blog-listing-page,
#blog-listing-page * {
    box-sizing: border-box;
}
#blog-listing-page {
    text-align: left;
    background: transparent;
}
#blog-listing-page img {
    max-width: 100%;
    height: auto;
}
#blog-listing-page h1,
#blog-listing-page h2,
#blog-listing-page h3,
#blog-listing-page h4 {
    color: inherit;
    font-family: 'Playfair Display', Georgia, serif;
}
#blog-listing-page .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================
   HERO
======================== */
.blog-hero {
    position: relative;
    height: 80vh;
    min-height: 480px;
    background: transparent;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
}
.blog-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 0 24px;
    max-width: 820px;
}
.blog-hero-content h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 5vw, 58px);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin: 0 0 14px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.blog-hero-content p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: rgba(255,255,255,0.88);
    margin: 0 0 30px;
    letter-spacing: 0.02em;
}
.blog-hero-cta-btn {
    display: inline-block;
    border: 2px solid rgba(255,255,255,0.85);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 13px 30px;
    text-decoration: none;
    transition: all 0.25s;
    background: transparent;
}
.blog-hero-cta-btn:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
}

/* ========================
   SEARCH BAR
======================== */
.blog-search-bar {
    padding: 16px 0;
    background: transparent;
}
.blog-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 580px;
    margin: 0 auto;
    background: rgba(255,255,255,0.92);
    border: 1.5px solid rgba(0,0,0,0.14);
    border-radius: 3px;
    padding: 0 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-search-wrap:focus-within {
    border-color: #111;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.blog-search-icon {
    flex-shrink: 0;
    color: #888;
    pointer-events: none;
}
.blog-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #111;
    padding: 13px 10px;
    width: 100%;
}
.blog-search-input::placeholder {
    color: #aaa;
}
/* Remove browser default search chrome */
.blog-search-input::-webkit-search-decoration,
.blog-search-input::-webkit-search-cancel-button { display: none; }
.blog-search-spinner svg {
    animation: rpt-spin 0.8s linear infinite;
    color: #888;
}
@keyframes rpt-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ========================
   POSTS SECTION
======================== */
.blog-posts-section {
    padding: 56px 0;
    background: transparent;
}
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 28px;
    transition: opacity 0.2s;
}
.blog-no-posts,
.blog-no-results {
    text-align: center;
    padding: 60px 0;
    font-family: 'Inter', sans-serif;
    color: #555;
    font-size: 16px;
}

/* ========================
   BLOG CARD
======================== */
.blog-card {
    display: flex;
    flex-direction: column;
}
.blog-card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e8e8e8;
    border-radius: 3px;
}
.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none !important;
    display: block;
    transition: transform 0.45s ease;
}
.blog-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}
.blog-card:hover .blog-card-img {
    transform: scale(1.04);
}
.blog-card-no-img {
    display: block;
    width: 100%;
    height: 100%;
}
.blog-card-cats {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
}
.blog-cat-badge {
    display: inline-block;
    background: rgba(255,255,255,0.92);
    color: #111;
    font-family: 'Oswald', 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 9px;
    text-decoration: none;
    border-radius: 1px;
    transition: background 0.2s;
}
.blog-cat-badge:hover {
    background: #fff;
    color: #111;
}

/* Bookmark button */
.blog-bookmark-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.38);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin: 0;
    z-index: 2;
    color: #fff;
    transition: background 0.2s, color 0.2s;
}
.blog-bookmark-btn:hover {
    background: rgba(0,0,0,0.6);
}
/* Show outline icon by default, filled when bookmarked */
.blog-bookmark-btn .icon-bm-filled { display: none; }
.blog-bookmark-btn .icon-bm-outline { display: block; }

.blog-bookmark-btn.bookmarked {
    background: #111;
    color: #fff;
}
.blog-bookmark-btn.bookmarked .icon-bm-outline { display: none; }
.blog-bookmark-btn.bookmarked .icon-bm-filled  { display: block; }

/* Card body */
.blog-card-body {
    padding: 18px 0 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
    color: #111;
}
.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-card-title a:hover {
    color: #555;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px;
    flex-wrap: wrap;
}
.blog-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.blog-author-avatar .blog-avatar-img,
.blog-author-avatar img {
    width: 24px !important;
    height: 24px !important;
    object-fit: cover;
    max-width: none !important;
    border-radius: 50%;
    display: block;
}
.blog-author-name {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}
.blog-meta-dot {
    width: 3px;
    height: 3px;
    background: #ccc;
    border-radius: 50%;
    flex-shrink: 0;
}
.blog-date,
.blog-read-time,
.blog-shares {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 3px;
}
.blog-card-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.65;
    margin: 0 0 14px;
    flex: 1;
}
.blog-view-post {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-bottom: 3px;
    border-bottom: 2px solid #111;
    align-self: flex-start;
    transition: color 0.2s, border-color 0.2s;
}
.blog-view-post:hover {
    color: #666;
    border-bottom-color: #666;
}

/* ========================
   LOAD MORE
======================== */
.blog-load-more-wrap {
    text-align: center;
    margin: 52px 0 0;
}
.load-more-btn {
    display: inline-block;
    background: transparent;
    border: 2px solid #111;
    color: #111;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 44px;
    text-decoration: none;
    cursor: pointer;
    margin: 0;
    border-radius: 0;
    transition: all 0.22s;
}
.load-more-btn:hover {
    background: #111;
    color: #fff;
}

/* ========================
   FEATURED BANNER
======================== */
.blog-featured-banner {
    position: relative;
    min-height: 380px;
    background: transparent;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.blog-featured-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.52);
}
.blog-featured-banner-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 600px;
    padding: 60px 24px;
}
.blog-featured-banner-cat {
    font-family: 'Oswald', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin: 0 0 10px;
}
.blog-featured-banner-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(22px, 3vw, 40px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 12px;
}
.blog-featured-banner-desc {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.82);
    margin: 0 0 26px;
    line-height: 1.65;
}
.blog-featured-banner-cta {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border: 2px solid rgba(255,255,255,0.7);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 28px;
    text-decoration: none;
    transition: all 0.22s;
}
.blog-featured-banner-cta:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
}

/* ========================
   TOP DESTINATIONS
======================== */
.blog-destinations {
    padding: 56px 0;
    background: transparent;
}
.blog-section-header {
    margin: 0 0 24px;
}
.blog-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
}
.blog-section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #aaa;
    margin: 0;
}
.blog-destinations-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}
.blog-destinations-row::-webkit-scrollbar { height: 4px; }
.blog-destinations-row::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
.blog-destination-card {
    position: relative;
    min-width: 165px;
    height: 105px;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
    background: #c8d0d8;
    text-decoration: none;
    display: block;
}
.blog-destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none !important;
    display: block;
    transition: transform 0.35s ease;
}
.blog-destination-card:hover img { transform: scale(1.06); }
.blog-destination-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, transparent 55%);
}
.blog-destination-name {
    position: absolute;
    bottom: 9px;
    left: 10px;
    right: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    z-index: 2;
}

/* ========================
   EDITORIAL BOTTOM GRID
======================== */
.blog-editorial-grid {
    padding: 56px 0;
    background: transparent;
}
.blog-cats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 0 0 28px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin: 0 0 32px;
}
.blog-cats-bar-link {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}
.blog-cats-bar-link:hover { color: #111; }
.blog-editorial-inner {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 0 40px;
}
.blog-editorial-thumb,
.blog-editorial-thumb img {
    display: block;
    width: 100%;
    max-width: 100% !important;
    height: auto;
    border-radius: 2px;
    margin-bottom: 14px;
    overflow: hidden;
}
.blog-editorial-thumb img {
    object-fit: cover;
    height: 220px;
    transition: transform 0.35s;
}
.blog-editorial-thumb:hover img { transform: scale(1.03); }
.blog-editorial-cats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0 0 8px;
}
.blog-cat-badge-sm {
    display: inline-block;
    background: #111;
    color: #fff;
    font-family: 'Oswald', 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    text-decoration: none;
    border-radius: 1px;
    transition: background 0.2s;
}
.blog-cat-badge-sm:hover { background: #444; }
.blog-editorial-featured-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
    color: #111;
}
.blog-editorial-featured-title a,
.blog-editorial-list-title a,
.blog-editorial-side-title {
    color: inherit;
    text-decoration: none;
}
.blog-editorial-featured-title a:hover,
.blog-editorial-list-title a:hover,
.blog-editorial-side-title:hover { color: #555; }
.blog-editorial-featured-info p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 10px;
}
.blog-editorial-date {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #aaa;
}
.blog-read-time-sm { font-style: italic; }
.blog-editorial-list-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.blog-editorial-list-item:first-child { padding-top: 0; }
.blog-editorial-list-item:last-child  { border-bottom: none; }
.blog-editorial-list-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 6px;
    color: #111;
}
.blog-editorial-side-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #111;
}
.blog-editorial-side-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.blog-editorial-side-item:last-child { border-bottom: none; }
.blog-editorial-side-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 56px;
    overflow: hidden;
    display: block;
    border-radius: 2px;
}
.blog-editorial-side-thumb img {
    width: 72px !important;
    height: 56px !important;
    object-fit: cover;
    max-width: none !important;
    display: block;
    transition: transform 0.3s;
}
.blog-editorial-side-thumb:hover img { transform: scale(1.06); }
.blog-editorial-side-info { flex: 1; min-width: 0; }
.blog-editorial-side-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin: 0 0 4px;
    transition: color 0.2s;
}
.blog-editorial-side-info p {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #888;
    line-height: 1.45;
    margin: 0;
}
/* ========================
   RESPONSIVE
======================== */
@media (max-width: 1024px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }
    .blog-editorial-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .blog-editorial-side {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto repeat(3, 1fr);
        gap: 0 20px;
        align-items: start;
    }
    .blog-editorial-side-heading { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .blog-hero { height: 60vh; min-height: 350px; }
    .blog-editorial-inner { grid-template-columns: 1fr; }
    .blog-editorial-side { grid-template-columns: 1fr; display: block; }
    .blog-search-wrap { max-width: 100%; }
}
