﻿@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Light Mode Colors */
    --bg-color: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f5f5;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --text-dimmed: #999999;
    --accent-gold: #d4a574;
    --border-color: #e0e0e0;
    --border-highlight: #d1d5db;
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* Layout */
    --max-width: 1200px;
    --header-height: 64px;
    --content-max-width: 720px;
    /* Optimal reading width */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    /* Premium Headings */
    --font-serif: 'Playfair Display', serif;
    /* Fix for cards using font-serif */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* UI & Body */
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    /* Monospace/Data */

    --reading-line-height: 1.8;
    /* Enhanced for long-form */
    --heading-line-height: 1.2;

    /* Transitions */
    --transition-speed: 0.3s;
}

/* Dark Mode - Manual Toggle */
html[data-theme="dark"] {
    --bg-color: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #141414;
    --text-main: #e8e8e8;
    --text-muted: #a0a0a0;
    --text-dimmed: #707070;
    --accent-gold: #d4a574;
    --border-color: #2a2a2a;
    --border-highlight: #3a3a3a;
    --shadow-color: rgba(0, 0, 0, 0.4);
}

/* Dark Mode */
html[data-theme="dark"] {
    --bg-color: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #141414;
    --text-main: #e8e8e8;
    --text-muted: #a0a0a0;
    --text-dimmed: #707070;
    --accent-gold: #d4a574;
    --border-color: #2a2a2a;
    --border-highlight: #3a3a3a;
    --shadow-color: rgba(0, 0, 0, 0.4);
}

/* Sliding Toggle Switch - CodyHouse Style */
/* Sliding Toggle Switch - CodyHouse Style */
.theme-toggle {
    position: relative;
    width: 50px;
    /* Reduced from 60px */
    height: 24px;
    /* Reduced from 28px */
    background: #e0e0e0;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 2rem;
    padding: 2px;
}

html[data-theme="dark"] .theme-toggle {
    background: #2d3748;
}

/* Sliding Thumb with Icons */
.theme-toggle::before {
    content: '☀️';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    /* Reduced from 24px */
    height: 20px;
    /* Reduced from 24px */
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="dark"] .theme-toggle::before {
    content: '🌙';
    transform: translateX(26px);
    /* Adjusted travel distance for 50px width */
    background: linear-gradient(135deg, #6b46c1 0%, #553c9a 100%);
    box-shadow: 0 2px 8px rgba(107, 70, 193, 0.4);
}

.theme-toggle:hover::before {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .theme-toggle:hover::before {
    box-shadow: 0 3px 12px rgba(107, 70, 193, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-speed) ease,
        color var(--transition-speed) ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.02em;
    font-family: var(--font-serif);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-gold);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   HEADER - Integrated Masthead
   ======================================== */

header {
    position: relative;
    width: 100%;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color var(--transition-speed) ease,
        border-color var(--transition-speed) ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.logo img {
    height: 1.75rem;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-sans);
    font-size: 1rem;
    /* Increased from 0.875rem */
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

/* ===================================
   PREMIUM HERO SECTION
   =================================== */
.hero-section {
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, rgba(212, 165, 116, 0.08) 0%, transparent 70%);
}

.hero-bg-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.05) 0%, transparent 60%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Tag */
.hero-tag-wrapper {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
}

.hero-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent-gold);
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 100px;
    background: rgba(212, 165, 116, 0.03);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.hero-tag:hover {
    background: rgba(212, 165, 116, 0.1);
    border-color: rgba(212, 165, 116, 0.5);
    transform: translateY(-2px);
}

/* Title */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 0.2s forwards;
}

/* Subtitle */
.hero-subtitle-wrapper {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 0.4s forwards;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

/* Decoration */
.hero-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

.hero-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color));
}

.hero-line:last-child {
    background: linear-gradient(90deg, var(--border-color), transparent);
}

.hero-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
}

/* Animations */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 0 3rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

/* Old hero styles removed */
main {
    margin-top: 0;
    flex: 1;
    padding-bottom: 4rem;
}

.hero h1 {
    font-size: 2.75rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.hero p {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: normal;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.feed {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* ========================================
   BENTO GRID LAYOUT - Professional Editorial
   Clean, magazine-style grid layout
   ======================================== */

/* News Grid Container */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem 2rem;
    padding: 0;
}

/* ========================================
   BENTO GRID LAYOUT - Professional Editorial
   Clean, magazine-style grid layout
   ======================================== */

/* News Grid Container */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0;
}

/* Responsive Grid Columns */
@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem 2.5rem;
    }
}

@media (min-width: 1280px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem 3rem;
    }
}

/* Base Card Style - Professional Editorial */
.card {
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    overflow: visible;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 2rem;
}

/* Card Hover Effect - Very Subtle */
.card:hover {
    border-bottom-color: var(--text-main);
}

/* Featured Article - Spans 2 columns and 2 rows */
.card.featured {
    grid-column: span 1;
    grid-row: span 1;
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .card.featured {
        grid-column: span 2;
        grid-row: span 2;
        padding-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .card.featured {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* Card Image Container */
.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: var(--bg-tertiary);
    margin-bottom: 1.5rem;
}

.card.featured .card-image {
    height: 320px;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .card.featured .card-image {
        height: 450px;
    }
}

/* Card Image Styling */
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: grayscale(0%) brightness(1);
}

.card:hover .card-image img {
    transform: scale(1.02);
}

/* Card Content */
.card-content {
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Card Meta (Date & Location) */
.card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    color: var(--text-dimmed);
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.card-date {
    color: var(--text-dimmed);
}

.card-location {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Card Title */
.card-title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 1rem 0;
    color: var(--text-main);
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
    font-family: var(--font-serif);
}

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

.card.featured .card-title {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

@media (min-width: 768px) {
    .card.featured .card-title {
        font-size: 2.75rem;
    }
}

/* Card Excerpt */
.card-excerpt {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 1.25rem 0;
    flex-grow: 1;
}

.card.featured .card-excerpt {
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Typographic Hero (Featured Card with No Image) */
.card.featured:not(:has(.card-image)) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-secondary);
    /* Ensure background */
}

.card.featured:not(:has(.card-image)) .card-title {
    font-size: 3.5rem;
    /* Massive Headline */
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
}

.card.featured:not(:has(.card-image)) .card-excerpt {
    font-size: 1.4rem;
    max-width: 90%;
}

/* Read More Link - Professional */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    align-self: flex-start;
}

.card:hover .card-link {
    color: var(--accent-gold);
}

/* Card Accessibility */
.card:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 4px;
}

/* Card Active State */
.card:active {
    transform: none;
}

.post,
.travel-post {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.06);
}


.post:nth-child(1) {
    animation-delay: 0.1s;
}

.post:nth-child(2) {
    animation-delay: 0.2s;
}

.post:nth-child(3) {
    animation-delay: 0.3s;
}

.post:nth-child(4) {
    animation-delay: 0.4s;
}

.post:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effect removed for premium static feel */

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    /* allow wrapping on tiny screens */
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    color: var(--text-dimmed);
    border-bottom: 1px solid var(--border-color);
    /* subtle separation */
    padding-bottom: 1.5rem;
}

.post-date {
    color: var(--text-main);
    font-weight: 600;
}

.meta-separator {
    color: var(--border-highlight);
    font-weight: 300;
}

.post-location {
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* STRICT TYPOGRAPHY: 2 Fonts, 2 Sizes */
.post-content h2,
.post-content h3 {
    font-family: var(--font-heading);
    /* Font 1: Playfair */
    font-size: 1.5rem;
    /* Size 1: Header Size */
    color: var(--text-main);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.post-text,
.post-content p {
    font-family: var(--font-sans);
    /* Font 2: Inter */
    font-size: 1rem;
    /* Size 2: Body Size */
    color: var(--text-main);
    margin: 1.5rem 0;
    line-height: 1.8;
    /* Breathable for magazine feel */
}

.travel-gallery {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

/* Feature Image (Hero) */
.feature-image-container {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.feature-hero-image {
    width: 100%;
    height: auto;
    max-height: 45vh;
    /* Reduced from 60vh per user request */
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .feature-hero-image {
        max-height: 400px;
        /* Smaller max-height for mobile */
    }
}

/* Feature Header Overlay */
.feature-image-container {
    position: relative;
    /* Ensure overlay aligns to this container */
}

.feature-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6rem 2rem 2rem;
    /* ample top padding for gradient fade */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 40%, transparent 100%);
    color: #ffffff;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    /* Let clicks pass through if needed */
}

.feature-overlay h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}


@media (max-width: 768px) {
    .feature-overlay {
        padding: 4rem 1.5rem 1.5rem;
    }

    .feature-overlay h1 {
        font-size: 1.5rem;
        /* Reduced from 1.75rem to fit long titles better */
        line-height: 1.2;
    }
}

.gallery-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-highlight) var(--bg-secondary);
}

.gallery-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.gallery-scroll-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.gallery-scroll-container::-webkit-scrollbar-thumb {
    background: var(--border-highlight);
}

.gallery-item {
    flex: 0 0 auto;
    width: 300px;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.4s ease;
    cursor: pointer;
}

/* Video-specific overlay */
.gallery-item:has(video)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-item:has(video):hover::after {
    opacity: 0.2;
}

/* Play button icon for videos */
.gallery-item:has(video) .zoom-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    z-index: 3;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.gallery-item:has(video):hover .zoom-hint {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.95);
}

.gallery-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0.7;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:hover::before {
    opacity: 0;
}

.gallery-item:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 30px rgba(197, 160, 89, 0.2);
    transform: scale(1.02);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(30%) brightness(0.9);
}

/* Hide default video controls on thumbnails */
.gallery-image[src*=".mp4"],
video.gallery-image {
    pointer-events: none;
}

video.gallery-image::-webkit-media-controls {
    display: none !important;
}

video.gallery-image::-webkit-media-controls-enclosure {
    display: none !important;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(1);
}

.zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.2s;
    font-family: var(--font-mono);
}

.gallery-item:hover .zoom-hint {
    opacity: 1;
}

.copyright-notice {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dimmed);
    margin-top: 0.5rem;
    text-align: left;
}

.share-links {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.share-links span {
    margin-right: 0.5rem;
}

.share-separator {
    margin: 0 0.2rem;
}

.share-links a {
    color: var(--text-muted);
    margin: 0 0.5rem;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all 0.2s;
}

.share-links a:hover {
    color: var(--accent-gold);
    text-decoration-color: var(--accent-gold);
}

.travel-post-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.no-posts-message {
    text-align: center;
    color: var(--text-dimmed);
}

footer {
    margin-top: auto;
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

footer p {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.footer-legal {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.footer-legal a {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--accent-gold);
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-legal a:hover {
    opacity: 0.7;
}

.contact-hero {
    padding-top: 6rem;
    text-align: center;
}

.contact-hero h1 {
    margin-bottom: 1rem;
}

.contact-hero p {
    margin-bottom: 3rem;
}

.contact-form-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3rem;
    margin: 2rem auto 0;
    max-width: 600px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.submit-btn {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.submit-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-color);
}

.social-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.2s;
}

.social-btn:hover {
    transform: scale(1.05);
    border-color: var(--accent-gold);
}

/* search-container styles moved to Premium Search section */

/* ===================================
   PREMIUM SEARCH
   =================================== */
.search-container,
.ship-search {
    max-width: 420px;
    margin: -1.5rem auto 3rem;
    /* Adjusted negative margin to prevent overlap with hero line */
    position: relative;
    z-index: 10;
}

/* Specific adjustment for ship search which is inside tabs */
.ship-search {
    margin: 1.5rem auto;
}

.search-input,
#ship-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: var(--bg-secondary);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.search-input:hover,
#ship-search-input:hover {
    box-shadow: 0 4px 25px rgba(212, 165, 116, 0.15);
    border-color: rgba(212, 165, 116, 0.3);
    transform: translateY(-2px);
}

.search-input:focus,
#ship-search-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: var(--bg-secondary);
    box-shadow: 0 8px 30px rgba(212, 165, 116, 0.2);
    transform: translateY(-2px);
}

.search-input::placeholder,
#ship-search-input::placeholder {
    color: var(--text-dimmed);
    font-style: normal;
    letter-spacing: 0.02em;
    font-size: 0.9rem;
}

.search-results-count {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 4rem auto 2rem;
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-link,
.pagination-current,
.pagination-nav,
.view-all-link {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    cursor: pointer;
    user-select: none;
}

.pagination-link,
.pagination-nav {
    color: var(--text-main);
    background: var(--bg-secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.pagination-link:hover,
.pagination-nav:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    color: var(--accent-gold);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08), inset 0 0 0 2px var(--accent-gold);
}

.pagination-link:active,
.pagination-nav:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 0 0 2px var(--accent-gold);
}

.pagination-current {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #c49563 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(212, 165, 116, 0.35), 0 2px 6px rgba(212, 165, 116, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
}

.pagination-current::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.view-all-link {
    color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.08) 0%, rgba(212, 165, 116, 0.04) 100%);
    margin-left: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), inset 0 0 0 2px var(--accent-gold);
}

.view-all-link:hover {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #c49563 100%);
    color: #ffffff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 14px rgba(212, 165, 116, 0.35), 0 2px 6px rgba(212, 165, 116, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
    header {
        height: auto;
        padding: 0.75rem 0;
    }

    main {
        margin-top: 0;
    }

    .nav-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    .nav-links {
        gap: 1.25rem;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .nav-links::-webkit-scrollbar {
        height: 2px;
    }

    .nav-links::-webkit-scrollbar-thumb {
        background: var(--accent-gold);
    }

    .logo {
        font-size: 1rem;
    }

    .theme-toggle {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 0.8rem;
    }

    .post,
    .travel-post {
        padding: 1.5rem;
    }

    .gallery-item {
        width: 250px;
    }

    .search-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-results-count {
        text-align: center;
        width: 100%;
    }

    .pagination {
        gap: 0.5rem;
    }

    .pagination-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-link,
    .pagination-current,
    .pagination-nav {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        min-width: 36px;
    }

    .view-all-link {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* ========================================
   PDF VIEWER STYLES
   ======================================== */

/* PDF Container Styles */
.pdf-window {
    margin: 0.5rem 0;
    /* Minimized vertical gap */
    border-radius: 4px;
    /* Tighter radius */
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: relative;
}

/* Dark mode adjustment for PDF container background */
html[data-theme="dark"] .pdf-window {
    background: #1a1a1a;
    border-color: #333;
}

.pdf-content-wrapper {
    width: 100%;
    height: 850px;
    background: transparent;
}

/* Default state: Hidden on Desktop */
.pdf-mobile-footer {
    display: none;
}

@media (max-width: 768px) {
    .pdf-window {
        /* Pull to edges of screen to override container padding */
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        width: calc(100% + 3rem);
        border-radius: 0;
        /* Remove corners for full width look */
        border-left: none;
        border-right: none;
        margin-bottom: 0;
        /* Remove bottom margin on mobile to save space */
    }

    .pdf-content-wrapper {
        height: 85vh;
        /* Immersive height */
        min-height: 600px;
    }

    /* Mobile Bottom Toolbar - Integrated Look */
    .pdf-mobile-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
        background: #1a1a1a;
        /* Dark bar for contrast */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        font-family: var(--font-sans);
        font-size: 0.8rem;
        color: #e0e0e0;
        min-height: 48px;
        /* Touch target size */
    }

    .mobile-footer-btn {
        display: inline-flex;
        align-items: center;
        background: var(--accent-gold);
        color: #fff;
        padding: 6px 14px;
        border-radius: 4px;
        font-weight: 600;
        text-decoration: none;
        font-size: 0.8rem;
        letter-spacing: 0.02em;
    }
}