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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    line-height: 1.6;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.info-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Main */
main {
    padding: 40px 20px;
}

section {
    margin-bottom: 60px;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.section-intro {
    color: #666;
    margin-bottom: 30px;
}

/* Map */
.map-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

#map {
    height: 500px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.map-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.top { background: #10b981; }
.dot.ok { background: #f59e0b; }
.dot.no { background: #ef4444; }

/* Rankings */
.rankings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.ranking-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.ranking-card.claude {
    border-top: 4px solid #d97706;
}

.ranking-card.chatgpt {
    border-top: 4px solid #10b981;
}

.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ranking-header h3 {
    font-size: 1.5rem;
}

.ai-badge {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #666;
}

.ranking-focus {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

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

.ranking-list li {
    margin-bottom: 20px;
}

.rank-item {
    display: flex;
    gap: 15px;
}

.rank-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.rank-content {
    flex: 1;
}

.rank-content strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.rank-content .location {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.rank-content p {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 10px;
}

.link-btn {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.link-btn:hover {
    background: #5a67d8;
}

/* Tables */
.table-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
    white-space: nowrap;
}

.comparison-table tr.highlight {
    background: #f0fdf4;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

.status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.status.green { background: #d1fae5; color: #065f46; }
.status.yellow { background: #fef3c7; color: #92400e; }
.status.red { background: #fee2e2; color: #991b1b; }

.table-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #666;
}

/* Price summary */
.price-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.price-verdict {
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.price-verdict.best {
    background: #d1fae5;
    color: #065f46;
}

.price-verdict.good {
    background: #e0e7ff;
    color: #3730a3;
}

.price-verdict.bad {
    background: #fee2e2;
    color: #991b1b;
}

/* Accommodations Grid */
.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #667eea;
}

.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.accommodations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.accommodation-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border-left: 4px solid #ddd;
    transition: transform 0.2s, box-shadow 0.2s;
}

.accommodation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.accommodation-card.top { border-left-color: #10b981; }
.accommodation-card.ok { border-left-color: #f59e0b; }
.accommodation-card.no { border-left-color: #ef4444; opacity: 0.7; }

.accommodation-card h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.accommodation-card .region {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.accommodation-card .price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #059669;
    margin-bottom: 12px;
}

.accommodation-card .price-note {
    font-size: 0.75rem;
    font-weight: 400;
    color: #888;
}

.accommodation-card .details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.accommodation-card .detail {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.accommodation-card .scores {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.accommodation-card .score {
    display: flex;
    align-items: center;
    gap: 5px;
}

.accommodation-card .score-label {
    color: #666;
}

.accommodation-card .comment {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 15px;
    font-style: italic;
}

.accommodation-card .card-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.accommodation-card .card-link:hover {
    text-decoration: underline;
}

/* Driving Section */
.driving-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.driving-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.driving-card h4 {
    color: #667eea;
    margin-bottom: 10px;
}

.driving-card .distance {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.driving-card .time {
    color: #666;
    margin-bottom: 10px;
}

.driving-card .nights {
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.hotel-tip {
    background: #fef3c7;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
}

.hotel-tip a {
    color: #92400e;
}

/* Requirements */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.req-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.req-card.priority {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
}

.req-card h4 {
    margin-bottom: 10px;
    color: #1a1a2e;
}

.req-card p {
    font-size: 0.9rem;
    color: #555;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

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

    .rankings-grid {
        grid-template-columns: 1fr;
    }

    #map {
        height: 350px;
    }

    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 8px 10px;
    }
}

/* Leaflet popup styling */
.leaflet-popup-content {
    font-family: 'Inter', sans-serif;
}

.leaflet-popup-content h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.leaflet-popup-content p {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    color: #666;
}

.leaflet-popup-content a {
    color: #667eea;
}
