/* ========== GLOBAL VARIABLES & RESET (Shared with navigation) ========== */
:root {
    --bg: #fdf9f3;
    --card-bg: #fffef9;
    --text: #3a3329;
    --text-light: #8c7d65;
    --border: #e2d7c0;
    --accent: #c4b393;
    --accent-hover: #b99a6e;
    --nav-bg: rgba(253, 249, 243, 0.94);
    --shadow: 0 3px 10px rgba(0,0,0,0.05);
    --radius: 8px;
    --transition: 0.28s ease;
    --nav-text: #3a3329;
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1e1b16;
        --card-bg: #2b261f;
        --text: #ede3d0;
        --text-light: #b0a692;
        --border: #4e4335;
        --accent: #c4b393;
        --accent-hover: #d9c8a8;
        --nav-bg: rgba(30, 27, 22, 0.94);
        --shadow: 0 3px 10px rgba(0,0,0,0.3);
    }
}

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

body {
    background: var(--bg);
    font-family: 'Georgia', 'Times New Roman', 'Segoe UI', serif;
    padding: 0;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(210, 190, 160, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(180, 200, 210, 0.1) 0%, transparent 40%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(160, 140, 110, 0.06) 2px, rgba(160, 140, 110, 0.06) 4px);
    background-attachment: fixed;
}

/* ========== NAVIGATION ========== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    width: 100%;
    transition: box-shadow 0.3s;
}
.site-nav.scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}
.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    gap: 1rem;
}
.nav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.3px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.75; }
.nav-logo .logo-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.nav-links a {
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    letter-spacing: 0.1px;
}
.nav-links a:hover,
.nav-links a.active {
    background: rgba(180, 150, 110, 0.12);
    color: var(--accent);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.88rem;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    letter-spacing: 0.1px;
    user-select: none;
    color: var(--nav-text);
    background: none;
    border: none;
    font-family: inherit;
}
.nav-dropdown-toggle:hover {
    background: rgba(180, 150, 110, 0.12);
    color: var(--accent);
}
.nav-dropdown-toggle .arrow {
    font-size: 0.6rem;
    transition: transform 0.25s;
}
.nav-dropdown.open .nav-dropdown-toggle .arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0;
    min-width: 220px;
    max-height: 420px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
    z-index: 1001;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 0;
    white-space: nowrap;
    color: var(--nav-text);
    text-decoration: none;
    transition: background 0.15s;
}
.nav-dropdown-menu a:hover {
    background: rgba(180, 150, 110, 0.1);
    color: var(--accent);
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--nav-text);
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999;
    padding: 1rem;
    overflow-y: auto;
    flex-direction: column;
    gap: 0.25rem;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
    display: block;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--nav-text);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s;
}
.mobile-menu a:hover,
.mobile-menu a.active {
    background: rgba(180, 150, 110, 0.12);
    color: var(--accent);
}
.mobile-menu .mobile-divider { height: 1px; background: var(--border); margin: 0.4rem 0; }
.mobile-menu .mobile-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    padding: 0.5rem 1rem 0.2rem;
}

/* ========== PAGE SPECIFIC STYLES (Destinations) ========== */
.container {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.8rem;
}

header {
    text-align: center;
    margin-bottom: 2.6rem;
}

.postmark-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8c7a60;
    border: 1px solid #c4b393;
    padding: 0.35rem 1.6rem;
    border-radius: 30px;
    background: rgba(255, 252, 245, 0.7);
    backdrop-filter: blur(4px);
    margin-bottom: 0.9rem;
}
.postmark-badge::before {
    content: '✈';
    font-size: 0.9rem;
}

h1 {
    font-size: 2.7rem;
    font-weight: 450;
    letter-spacing: 1.2px;
    color: #4a3f32;
    margin-bottom: 0.3rem;
    font-style: italic;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 380;
    border-bottom: 1.5px solid #d4c5a5;
    display: inline-block;
    padding-bottom: 0.5rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 2rem;
    margin-top: 0.2rem;
}

.palette-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05), 0 0 0 1px #e2d7c0;
    overflow: hidden;
    transition: transform var(--transition), box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #d9cbaa;
    outline: 3px dashed #e5d9bf;
    outline-offset: -10px;
    padding: 0;
}
.palette-card::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 12px;
    width: 36px;
    height: 40px;
    background: rgba(210, 180, 140, 0.25);
    border-radius: 3px;
    z-index: 1;
    transform: rotate(8deg);
    box-shadow: 0 0 0 1px rgba(150, 120, 80, 0.3);
}
.palette-card::after {
    content: '✈';
    position: absolute;
    top: 14px;
    right: 22px;
    font-size: 0.9rem;
    color: #8c7a60;
    z-index: 2;
    transform: rotate(12deg);
    opacity: 0.7;
}
.palette-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.09), 0 0 0 1px #c4b393;
}

.color-strip {
    display: flex;
    width: 100%;
    height: 100px;
    cursor: pointer;
    position: relative;
    z-index: 0;
}
.color-swatch {
    flex: 1;
    position: relative;
    transition: filter 0.18s, transform 0.2s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6px;
}
.color-swatch:hover {
    filter: brightness(0.92);
    transform: scaleY(1.05);
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.swatch-hex {
    font-size: 0.6rem;
    font-weight: 550;
    color: rgba(255,255,245,0.95);
    background: rgba(25,20,12,0.45);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.18s;
    pointer-events: none;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
}
.color-swatch:hover .swatch-hex { opacity: 1; }
.swatch-hex.light-text {
    color: rgba(30,25,18,0.92);
    background: rgba(255,250,235,0.8);
}

.palette-info {
    padding: 0.9rem 1.2rem;
    background: var(--card-bg);
    position: relative;
    z-index: 1;
}
.palette-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}
.palette-name {
    font-weight: 620;
    font-size: 1.05rem;
    letter-spacing: 0.4px;
    color: #4a3f32;
    font-style: italic;
    border-bottom: 2px dotted #c4b393;
    padding-bottom: 2px;
}
.copy-group-btn {
    background: #f8f4e9;
    border: 1px solid #c4b393;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #5b4c35;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.25s;
    letter-spacing: 0.3px;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    text-transform: uppercase;
}
.copy-group-btn:hover {
    background: #e4d7bc;
    border-color: #a89068;
    color: #2d2213;
}

.color-names {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    align-items: center;
    margin-top: 0.1rem;
}
.color-tag {
    font-size: 0.68rem;
    background: #f9f6ee;
    color: #5b4c35;
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    font-weight: 400;
    letter-spacing: 0.15px;
    white-space: nowrap;
    border: 0.5px solid #e0d3b8;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
    cursor: pointer;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}
.color-tag:hover {
    background: #e8ddc8;
    border-color: #b99a6e;
    transform: translateY(-1px);
}
.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 6px;
    opacity: 0.9;
    border: 0.5px solid rgba(0,0,0,0.06);
}

.footer-note {
    margin-top: 3.4rem;
    text-align: center;
    color: #a39782;
    font-size: 0.82rem;
    font-weight: 360;
    border-top: 1px solid #d9ccb4;
    padding-top: 1.7rem;
    width: 100%;
    max-width: 620px;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    font-style: italic;
}

.toast-message {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: #4a3f32;
    color: #fdf9f3;
    padding: 0.6rem 1.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 480;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    border: 1px solid #c4b393;
}
.toast-message.show { opacity: 1; }

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
    .palette-card {
        box-shadow: 0 3px 10px rgba(0,0,0,0.3), 0 0 0 1px #4e4335;
        border-color: #4e4335;
        outline-color: #5a4e3a;
    }
    .palette-info { background: var(--card-bg); }
    .palette-name { color: #ede3d0; border-bottom-color: #8b775a; }
    .color-tag { background: #373128; color: #d4c9b0; border-color: #4e4335; }
    .color-tag:hover { background: #4a4034; border-color: #c4b393; }
    .copy-group-btn { background: #373128; border-color: #4e4335; color: #d4c9b0; }
    .copy-group-btn:hover { background: #4a4034; color: #f0e6cc; }
    h1 { color: #e8ddcc; }
    .subtitle { color: #b0a692; border-bottom-color: #5b5140; }
    .postmark-badge { color: #b0a692; border-color: #5b5140; background: rgba(30,28,22,0.6); }
    .footer-note { color: #9b8d78; border-top-color: #4a4034; }
    .toast-message { background: #ede3d0; color: #1e1b16; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .container { padding: 1.4rem 1rem; }
    h1 { font-size: 2rem; }
    .palette-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.3rem; }
}
@media (min-width: 769px) {
    .mobile-menu { display: none !important; }
}