/* ===== Base Styles ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #0d47a1;
    --primary-light: #1976d2;
    --accent: #ff6f00;
    --accent2: #00bcd4;
    --dark: #1a237e;
    --text: #212121;
    --text-light: #616161;
    --bg: #fafafa;
    --card: #ffffff;
    --shadow: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 16px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Header & Nav ===== */
header {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    padding: 0.9rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.logo span { font-size: 1.8rem; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
    transition: all 0.25s;
}

.nav-links a:hover, .nav-links a.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* ===== Hero variants ===== */
.hero {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2.5rem;
    position: relative;
    color: white;
    text-align: center;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.hero-content { position: relative; z-index: 2; padding: 2rem; max-width: 700px; }

.hero h1 { font-size: 2.8rem; margin-bottom: 1rem; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 1.5rem; opacity: 0.95; }

.hero-blue { background-image: url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?w=1600'); }
.hero-warm { background-image: url('https://images.unsplash.com/photo-1503220317375-aaad61436b1b?w=1600'); }
.hero-nature { background-image: url('https://images.unsplash.com/photo-1476514525535-07fb3b4ae5f1?w=1600'); }
.hero-city { background-image: url('https://images.unsplash.com/photo-1496442226666-8d4d0e62e6e9?w=1600'); }
.hero-beach { background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1600'); }
.hero-mountain { background-image: url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=1600'); }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.85rem 1.9rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255,111,0,0.4);
}

.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255,111,0,0.5); }

.btn-outline {
    background: transparent;
    border: 2px solid white;
    box-shadow: none;
}
.btn-outline:hover { background: white; color: var(--primary); }

.btn-secondary { background: var(--accent2); box-shadow: 0 4px 15px rgba(0,188,212,0.4); }

/* ===== Cards ===== */
.section-title {
    text-align: center;
    font-size: 2.1rem;
    margin: 0 0 0.5rem;
    color: var(--dark);
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

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

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

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 1rem;
}

.card .meta {
    display: flex;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.card a.more {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
}
.card a.more:hover { text-decoration: underline; }

/* Tag styles */
.tag {
    display: inline-block;
    background: #e3f2fd;
    color: var(--primary);
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag.beach { background: #e0f7fa; color: #00838f; }
.tag.city { background: #fce4ec; color: #c2185b; }
.tag.nature { background: #e8f5e9; color: #2e7d32; }
.tag.culture { background: #fff3e0; color: #e65100; }
.tag.adventure { background: #f3e5f5; color: #7b1fa2; }

/* ===== Destination page layout ===== */
.dest-hero {
    height: 420px;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-end;
}

.dest-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 60%);
    border-radius: var(--radius);
}

.dest-hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    color: white;
}

.dest-hero h1 { font-size: 2.8rem; margin-bottom: 0.3rem; }
.dest-hero .location { font-size: 1.15rem; opacity: 0.9; }

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.main-content h2 {
    color: var(--dark);
    margin: 1.8rem 0 0.8rem;
    font-size: 1.5rem;
}

.main-content p { margin-bottom: 1rem; color: #444; }

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

.info-box {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.info-box h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.15rem;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 0.5rem;
}

.info-box ul { list-style: none; }
.info-box li {
    padding: 0.45rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}
.info-box li:last-child { border-bottom: none; }
.info-box .label { color: var(--text-light); }
.info-box .value { font-weight: 600; color: var(--text); }

.tips-box {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-left: 5px solid var(--accent);
}

/* ===== Region page variants ===== */
.region-header {
    text-align: center;
    padding: 3rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 2.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.region-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: brightness(0.7);
    z-index: 0;
}

.region-header > * { position: relative; z-index: 1; }

.region-europe { background: linear-gradient(135deg, #1565c0, #0d47a1), url('https://images.unsplash.com/photo-1467269204594-9661b134dd2b?w=1200') center/cover; }
.region-asia { background: linear-gradient(135deg, #c62828, #b71c1c), url('https://images.unsplash.com/photo-1528164344705-47542687000d?w=1200') center/cover; }
.region-africa { background: linear-gradient(135deg, #ef6c00, #e65100), url('https://images.unsplash.com/photo-1516426122078-c23e76319801?w=1200') center/cover; }
.region-na { background: linear-gradient(135deg, #2e7d32, #1b5e20), url('https://images.unsplash.com/photo-1501594907352-04cda38ebc29?w=1200') center/cover; }
.region-sa { background: linear-gradient(135deg, #6a1b9a, #4a148c), url('https://images.unsplash.com/photo-1483729558449-99ef09a8c325?w=1200') center/cover; }
.region-oceania { background: linear-gradient(135deg, #00838f, #006064), url('https://images.unsplash.com/photo-1506973035872-a4ec16b8e8d9?w=1200') center/cover; }
.region-me { background: linear-gradient(135deg, #5d4037, #3e2723), url('https://images.unsplash.com/photo-1539650116574-75c0c6d73f6e?w=1200') center/cover; }
.region-islands { background: linear-gradient(135deg, #0277bd, #01579b), url('https://images.unsplash.com/photo-1559128010-7c1ad6e1b6a4?w=1200') center/cover; }

/* ===== Breadcrumb ===== */
.breadcrumb {
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}
.breadcrumb a { color: var(--primary-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== Footer ===== */
footer {
    background: linear-gradient(135deg, #0d47a1, #1a237e);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: auto;
}
footer p { opacity: 0.85; font-size: 0.95rem; }
footer a { color: #90caf9; }

/* ===== Special layouts ===== */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2.5rem 0;
    align-items: center;
}
.feature-row img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}
.stat-box {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat-box .num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}
.stat-box .label { color: var(--text-light); font-size: 0.9rem; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .content-grid { grid-template-columns: 1fr; }
    .feature-row { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .hero h1, .dest-hero h1 { font-size: 2.1rem; }
}

@media (max-width: 600px) {
    .nav-links { gap: 0.2rem; }
    .nav-links a { padding: 0.3rem 0.5rem; font-size: 0.85rem; }
    .stats { grid-template-columns: 1fr 1fr; }
    .cards { grid-template-columns: 1fr; }
}

/* Theme accents for variety */
body.theme-warm { --primary: #bf360c; --primary-light: #e64a19; --dark: #3e2723; --accent: #ff6f00; }
body.theme-green { --primary: #1b5e20; --primary-light: #388e3c; --dark: #004d40; --accent: #00c853; }
body.theme-purple { --primary: #4a148c; --primary-light: #7b1fa2; --dark: #311b92; --accent: #ea80fc; }
body.theme-teal { --primary: #004d40; --primary-light: #00796b; --dark: #00251a; --accent: #1de9b6; }
