/* CSS Custom Properties for Theme Tokens */
:root {
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Light Theme Palette (Premium Warm Sand & Sage Green) */
    --primary: hsl(145, 25%, 32%);
    --primary-light: hsl(145, 25%, 45%);
    --primary-dark: hsl(145, 30%, 22%);
    --secondary: hsl(24, 65%, 55%);
    --secondary-hover: hsl(24, 75%, 45%);
    
    --bg-main: hsl(36, 30%, 97%);
    --bg-surface: hsl(0, 0%, 100%);
    --bg-surface-trans: rgba(255, 255, 255, 0.8);
    --border-color: hsl(36, 12%, 88%);
    
    --text-main: hsl(210, 24%, 16%);
    --text-muted: hsl(210, 15%, 50%);
    --text-light: hsl(210, 10%, 96%);
    
    --shadow-sm: 0 2px 4px rgba(60, 100, 76, 0.05);
    --shadow-md: 0 10px 30px rgba(60, 100, 76, 0.08);
    --shadow-lg: 0 20px 40px rgba(60, 100, 76, 0.12);
    
    /* Map Colors */
    --map-default: hsl(36, 12%, 84%);
    --map-visited: var(--secondary);
    
    /* Transition speeds */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Responsive sizing helper */
    --navbar-height: 80px;
}

/* Dark Theme Palette removed */

/* Global Reset & Base Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

/* Main Layout Grid & Spacing */
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .content-layout {
        grid-template-columns: 2fr 1fr;
    }
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background-color: var(--bg-surface-trans);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.navbar-container {
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary);
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link.active, .nav-link:hover {
    color: var(--primary);
}

/* Dropdown Navigation Menu */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% - 4px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: var(--bg-surface-trans);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.4rem 0;
    min-width: 130px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    z-index: 150;
    text-align: center;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    width: 100%;
    border: none;
    background: none;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    transition: background-color var(--transition-fast), color var(--transition-fast);
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: var(--border-color);
    color: var(--primary);
}

/* Theme Button styling removed */

/* Hero Section Banner */
.hero-section {
    position: relative;
    padding-top: calc(var(--navbar-height) + 5rem);
    padding-bottom: 7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://fortyfivelitres.wordpress.com/wp-content/uploads/2019/09/fullsizeoutput_1169.jpeg?w=2000');
    background-size: cover;
    background-position: center top;
    transform: scale(1.05);
    z-index: -2;
    filter: brightness(0.9);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(60, 100, 76, 0.4) 0%, rgba(14, 19, 24, 0.85) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 1.5rem;
    animation: fadeIn var(--transition-normal) forwards;
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-desc {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(219, 118, 62, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-main);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--border-color);
    transform: translateY(-1px);
}

.btn-outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Toolbar & Filtering UI */
.toolbar {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 1rem 3rem;
    border-radius: 50px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(60, 100, 76, 0.15);
}

.search-clear-btn {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

.active-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    background-color: var(--bg-surface);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.filter-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tag {
    font-size: 0.85rem;
    background-color: var(--border-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-main);
}

.filter-tag i {
    cursor: pointer;
    opacity: 0.7;
}

.filter-tag i:hover {
    opacity: 1;
}

.clear-all-filters {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
}

/* Skeleton Screens (Loading placeholder) */
.skeleton-card {
    height: 380px;
    border-radius: 16px;
    background: linear-gradient(90deg, var(--bg-surface) 25%, var(--border-color) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: loading-pulse 1.5s infinite;
    margin-bottom: 1.5rem;
}

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

/* Blog Grid & Cards */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.post-card {
    background-color: var(--bg-surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
    background-color: var(--border-color);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.post-card:hover .card-img {
    transform: scale(1.05);
}

.card-categories {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.card-cat-badge {
    background-color: rgba(60, 100, 76, 0.85);
    backdrop-filter: blur(4px);
    color: var(--text-light);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.card-title:hover {
    color: var(--primary);
}

.card-excerpt {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: auto;
}

.card-tags {
    display: flex;
    gap: 0.4rem;
    overflow: hidden;
    white-space: nowrap;
    max-width: 60%;
}

.card-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    background-color: var(--bg-main);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.read-more-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.read-more-link:hover {
    color: var(--secondary);
}

.read-more-link i {
    transition: transform var(--transition-fast);
}

.read-more-link:hover i {
    transform: translateX(4px);
}

/* Pagination Section */
.pagination-container {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.page-info {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Sidebar Widgets styling */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.widget {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.author-profile {
    text-align: center;
}

.author-avatar-container {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--bg-main);
    box-shadow: var(--shadow-sm);
}

.author-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.author-bio {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.author-socials {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.social-link.instagram {
    background-color: #e1306c;
    color: white;
}

.social-link.instagram:hover {
    background-color: #c13584;
}

.social-link.email {
    background-color: var(--primary);
    color: var(--text-light);
}

.social-link.email:hover {
    background-color: var(--primary-dark);
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.92rem;
    cursor: pointer;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list li:hover {
    color: var(--primary);
}

.sidebar-list .count {
    background-color: var(--bg-main);
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    cursor: pointer;
}

.recent-post-item:last-child {
    margin-bottom: 0;
}

.recent-post-thumb {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    object-fit: cover;
    background-color: var(--border-color);
    flex-shrink: 0;
}

.recent-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-post-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-item:hover .recent-post-title {
    color: var(--primary);
}

.recent-post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-badge {
    font-size: 0.8rem;
    background-color: var(--bg-main);
    color: var(--text-main);
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.tag-badge:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
}

/* Empty State & Error Page Layout */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--bg-surface);
    border-radius: 16px;
    border: 1px dashed var(--border-color);
}

.empty-icon {
    font-size: 3.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* World Map Page UI */
.destinations-section {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 5rem 1.5rem;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.destinations-container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.map-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 992px) {
    .map-wrapper {
        grid-template-columns: 2.5fr 1fr;
    }
}

.map-card {
    background-color: var(--bg-main);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.svg-map-container {
    position: relative;
    width: 100%;
}

.world-svg {
    width: 100%;
    height: auto;
}

.country {
    transition: fill var(--transition-fast), filter var(--transition-fast);
    cursor: default;
}

.country.visited {
    cursor: pointer;
}

.country.visited:hover {
    fill: var(--primary);
    filter: drop-shadow(0px 6px 15px rgba(60, 100, 76, 0.45));
}

.map-legend {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    font-size: 0.85rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
}

.legend-color.visited {
    background-color: var(--map-visited);
}

.legend-color.default {
    background-color: var(--map-default);
}

.destinations-sidebar {
    background-color: var(--bg-main);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.sidebar-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.destinations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.destination-btn {
    width: 100%;
    text-align: left;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    font-weight: 600;
    transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.destination-btn:hover {
    transform: translateX(3px);
    border-color: var(--primary);
    background-color: rgba(60, 100, 76, 0.05);
}

.destination-btn .flag {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.destination-btn .count {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background-color: var(--bg-main);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    color: var(--text-muted);
}

/* Full Post Detail Overlay (Premium Reading View) */
.post-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-main);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.post-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.post-overlay-container {
    width: 100%;
    max-width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    overflow-y: auto;
    position: relative;
    transform: translateY(100vh);
    transition: transform var(--transition-normal);
}

.post-overlay.active .post-overlay-container {
    transform: translateY(0);
}

.close-overlay-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1010;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.close-overlay-btn:hover {
    background-color: var(--secondary);
    transform: scale(1.05);
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: var(--secondary);
    width: 0%;
    z-index: 1020;
    transition: width 0.1s ease;
}

/* Full Post Styling (Typography heavy for books) */
.full-post {
    padding: 0;
}

.post-header-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 3rem 1.5rem;
    color: white;
    overflow: hidden;
}

.post-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.post-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(14, 19, 24, 0.1) 0%, rgba(14, 19, 24, 0.8) 100%);
    z-index: -1;
}

.post-header-content {
    max-width: 920px;
    width: 100%;
}

.post-meta-top {
    font-size: 0.9rem;
    font-family: var(--font-mono);
    color: var(--secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-full-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.post-body-container {
    padding: 3rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .post-body-container {
        padding: 4rem 2rem;
    }
}

.post-body {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-main);
    max-width: 920px;
    margin: 0 auto;
}

/* Base text elements stretch to full width of post body reading column */
.post-body p,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body blockquote,
.post-body ul,
.post-body ol,
.post-body .geolocation-chip {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.post-body p {
    display: flow-root;
    margin-bottom: 1.75rem;
}

.post-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin: 2rem 0;
}

.post-body h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.post-body h3 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

/* Figures, galleries, and image grids align with reading column with smaller vertical margins */
.post-body .wp-block-image,
.post-body figure,
.post-body .tiled-gallery,
.post-body .gallery,
.post-body .gallery-grid {
    max-width: 100%;
    margin: 1.5rem 0;
    clear: both;
}

.wp-block-gallery, .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.wp-block-image img, .gallery-grid img, .post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.wp-block-image img:hover, .gallery-grid img:hover, .post-body img:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-md);
}

/* Clear headings and blockquotes so they don't overlay floated images */
.post-body h2,
.post-body h3,
.post-body h4,
.post-body blockquote,
.post-body hr {
    clear: both;
}

/* Captions styling */
.post-body figcaption,
.post-body .wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.4;
}

/* WordPress Tiled Galleries styling */
.tiled-gallery, 
.gallery {
    width: 100%;
}

.gallery-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    width: 100% !important;
    height: auto !important;
}

.gallery-group {
    flex: 1 1 150px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: auto !important;
    height: auto !important;
}

.tiled-gallery-item {
    flex: 1 1 150px;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
}

.tiled-gallery-item img,
.gallery-group img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast) !important;
}

.tiled-gallery-item img:hover,
.gallery-group img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* Floats and Alignments */
.post-body .aligncenter,
.post-body figure.aligncenter {
    display: block;
    margin: 2rem auto;
    text-align: center;
    max-width: 100%;
}

.post-body .alignnone,
.post-body figure.alignnone {
    display: block;
    margin: 1.5rem auto;
    max-width: 100%;
}

/* Floated image placement on wide viewports (min-width: 992px) */
@media (min-width: 992px) {
    .post-body .alignleft,
    .post-body figure.alignleft {
        float: left;
        margin: 0.5rem 2.5rem 1.5rem 0;
        max-width: 480px;
        clear: left;
    }
    
    .post-body .alignright,
    .post-body figure.alignright {
        float: right;
        margin: 0.5rem 0 1.5rem 2.5rem;
        max-width: 480px;
        clear: right;
    }
}

/* Floated image stacking on tablet/mobile (max-width: 991px) */
@media (max-width: 991px) {
    .post-body .alignleft,
    .post-body figure.alignleft,
    .post-body .alignright,
    .post-body figure.alignright {
        float: none;
        display: block;
        margin: 2rem auto;
        max-width: 100%;
    }
    
    .gallery-row {
        flex-direction: column;
    }
}

.post-divider {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 3rem 0;
    text-align: center;
}

/* Footer Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2.5rem;
}

@media (min-width: 576px) {
    .post-navigation {
        grid-template-columns: 1fr 1fr;
    }
}

.post-nav-card {
    background-color: var(--bg-main);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.post-nav-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.post-nav-card.next {
    text-align: right;
    align-items: flex-end;
}

.nav-dir {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.nav-post-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Lightbox UI */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(14, 19, 24, 0.95);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--text-light);
    font-size: 2.5rem;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: var(--text-light);
    text-align: center;
    margin-top: 1rem;
    font-size: 1rem;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 2.5rem;
    padding: 2rem;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.lightbox-nav:hover {
    opacity: 1;
}

.lightbox-nav.prev {
    left: 1rem;
}

.lightbox-nav.next {
    right: 1rem;
}

/* Footer Section */
.footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem;
    text-align: center;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.footer-tagline {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Leaflet Map Styles */
.custom-map-marker-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-map-marker {
    font-size: 2.2rem;
    color: var(--secondary);
    filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.35));
    transition: transform var(--transition-fast), color var(--transition-fast);
    animation: marker-bounce 1.5s ease-out;
}

.custom-map-marker:hover {
    transform: scale(1.2) translateY(-2px);
    color: var(--primary);
}

@keyframes marker-bounce {
    0% { transform: translateY(-30px); opacity: 0; }
    50% { transform: translateY(0); }
    70% { transform: translateY(-8px); }
    100% { transform: translateY(0); opacity: 1; }
}

/* Custom Leaflet Popups styling override */
.leaflet-popup-content-wrapper {
    background-color: var(--bg-surface) !important;
    color: var(--text-main) !important;
    border-radius: 12px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0 !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 250px !important;
}

.leaflet-popup-tip {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-color);
}

.map-popup-card {
    padding: 1.25rem;
}

.map-popup-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.map-popup-card p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.popup-stats {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.popup-filter-btn {
    width: 100%;
    text-align: center;
    background-color: var(--primary);
    color: var(--text-light);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.popup-filter-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
}



/* Language Toggle Button styling */
.post-lang-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.lang-btn {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    background-color: var(--border-color);
    color: var(--text-main);
}

.lang-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Post Map Chip Button inside Header Meta */
.post-map-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: 1rem;
    transition: all var(--transition-fast);
}

.post-map-chip-btn:hover {
    background-color: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

/* Search Highlight mark */
.search-highlight {
    background-color: rgba(212, 163, 115, 0.35); /* soft terracotta/sand highlight */
    color: var(--text-main);
    padding: 0.1rem 0.2rem;
    border-radius: 4px;
    font-weight: inherit;
}

/* Guest Comments section */
.comments-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.comments-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.comment-meta-info {
    display: flex;
    flex-direction: column;
}

.comment-author-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.comment-body-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
}

.comment-body-text p {
    margin-bottom: 0.75rem;
}

.comment-body-text p:last-child {
    margin-bottom: 0;
}



