:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark: #1f2937;
    --light: #f3f4f6;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: var(--white);
    padding: 2rem 0;
    box-shadow: 0 2px 10px var(--shadow);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Navigation */
.filter-nav {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 5px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--dark);
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

/* Main */
main {
    padding: 2rem 0;
}

section {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px var(--shadow);
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.note {
    font-style: italic;
    color: #6b7280;
    margin-bottom: 1rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table thead {
    background: var(--light);
}

table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

table tbody tr:hover {
    background: #f9fafb;
}

.destination-link {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.destination-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.price-cheap {
    color: var(--secondary-color);
    font-weight: 600;
}

.price-medium {
    color: var(--warning-color);
    font-weight: 600;
}

.price-expensive {
    color: var(--danger-color);
    font-weight: 600;
}

/* Filter Grid */
.filter-grid, .links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.filter-card, .links-card {
    background: var(--light);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.filter-card h3, .links-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: 1.2rem;
}

.filter-card ul, .links-card ul {
    list-style: none;
}

.filter-card li, .links-card li {
    padding: 0.4rem 0;
    color: #4b5563;
}

.links-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.links-card a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Destination Cards */
#destinations-container {
    display: grid;
    gap: 2rem;
    margin-top: 1.5rem;
}

.destination-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    background: var(--white);
    transition: all 0.3s ease;
    scroll-margin-top: 80px;
}

.destination-card:hover {
    box-shadow: 0 5px 20px var(--shadow);
    transform: translateY(-2px);
}

.destination-card:target {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    animation: highlight 0.6s ease-out;
}

@keyframes highlight {
    0% {
        background-color: rgba(37, 99, 235, 0.1);
    }
    100% {
        background-color: transparent;
    }
}

.destination-card.hidden {
    display: none;
}

.destination-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.destination-title {
    font-size: 1.8rem;
    color: var(--dark);
}

.destination-flag {
    font-size: 3rem;
}

.destination-weather {
    background: #fef3c7;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.destination-pros {
    background: #d1fae5;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.destination-pros h4 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.destination-pros ul {
    list-style-position: inside;
}

.route {
    background: var(--light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.route h4 {
    margin-bottom: 0.5rem;
}

.route ol {
    margin-left: 1.5rem;
}

.route li {
    margin-bottom: 0.3rem;
}

.costs {
    background: #fef3c7;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.costs h4 {
    margin-bottom: 1rem;
    color: var(--warning-color);
}

.costs ul {
    list-style: none;
}

.costs li {
    padding: 0.4rem 0;
}

.costs .total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.warning {
    background: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--danger-color);
}

.difficulty {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.difficulty.easy {
    background: #d1fae5;
    color: #065f46;
}

.difficulty.medium {
    background: #fef3c7;
    color: #92400e;
}

.difficulty.hard {
    background: #fee2e2;
    color: #991b1b;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    .filter-nav .container {
        justify-content: center;
    }

    section {
        padding: 1.5rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    table th, table td {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .destination-header {
        flex-direction: column;
        text-align: center;
    }

    .destination-flag {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
}
