/* --- 1. CONFIGURATION & VARIABLES --- */
:root {
    --primary: #6366f1;       /* Modern Indigo */
    --primary-hover: #4f46e5;
    --secondary: #ec4899;     /* Accent pink/purple */
    --dark-bg: #0f172a;       /* Slate dark (very dark blue) */
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --glass: rgba(15, 23, 42, 0.7); /* For navbar */
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: #f1f5f9;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* --- 2. NAVIGATION (GLASSMORPHISM) --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

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

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none; 
    cursor: pointer;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-light);
}

/* --- 3. HERO SECTION (HOME) --- */
.hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1e1b4b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

/* Text Wrapper */
.hero-text-wrapper {
    flex: 1;
    max-width: 650px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: slideUpFade 0.8s ease-out forwards;
}

.hero .highlight {
    color: var(--primary);
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    opacity: 0;
    animation: slideUpFade 0.8s ease-out 0.2s forwards;
}

.cta-group {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: slideUpFade 0.8s ease-out 0.4s forwards;
}

/* Image Wrapper */
.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.hero-image-wrapper img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

/* Animation Keyframes */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 4. BUTTONS --- */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.23);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* --- 5. SECTIONS & FEATURES (HOME) --- */
.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.features-grid, .destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.icon-box {
    font-size: 2.5rem;
    background: #eef2ff;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* --- 6. DESTINATIONS CARDS (HOME) --- */
.card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.card-image-header {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.location {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-weight: 500;
}

.description {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.btn-text {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

/* --- 7. FOOTER --- */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-gray);
    margin-left: 20px;
    text-decoration: none;
}

.copyright {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

/* --- 8. CHAT WIDGET --- */
.chat-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    z-index: 2000;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.chat-widget.active {
    display: flex;
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chat-body {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
}

.message.bot {
    background: #e0e7ff;
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input {
    padding: 10px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 5px;
}

.chat-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    outline: none;
}

.chat-input button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    z-index: 2000;
    transition: transform 0.2s;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

/* --- 9. DETAIL PAGE STYLES (Terspegelt.html) --- */

/* Smaller Hero for Subpages */
.page-hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1e1b4b 100%);
    padding: 120px 0 60px 0;
    color: var(--text-light);
    text-align: center;
    position: relative;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-hero .location-sub {
    color: var(--text-gray);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.score-badge-large {
    background: white;
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    display: inline-block;
    margin-top: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Detail Content Grid (350px width for image column) */
.detail-grid {
    display: grid;
    grid-template-columns: 350px 1fr; /* UPDATED: Fixed width for left column */
    gap: 3rem;
    margin-top: -30px;
}

/* Image Container */
.detail-image-container {
    background: white;
    padding: 10px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    height: fit-content; /* UPDATED: Wraps tightly around image & button */
}

.detail-img {
    width: 100%;
    height: 300px;        /* UPDATED: Height set to 300px */
    object-fit: cover;
    border-radius: 16px;
    background-color: #cbd5e1;
}

/* Affiliate Button (Orange) */
.btn-affiliate {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    background-color: #f59e0b;
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}

.btn-affiliate:hover {
    background-color: #d97706;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* Info Box Right */
.info-box {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
}

.info-box h2 {
    color: var(--text-main);
    margin-bottom: 1rem;
}

.info-specs {
    list-style: none;
    margin: 1.5rem 0;
}

.info-specs li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
}

/* AI Analysis Blocks */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.analysis-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.analysis-card.pros { border-top: 4px solid #10b981; }
.analysis-card.cons { border-top: 4px solid #f59e0b; }

.analysis-card h3 { margin-bottom: 1rem; }

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

.check-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: #475569;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.check-list.warning li::before {
    content: '!';
    color: #f59e0b;
}

/* Rating Progress Bars */
.rating-row {
    margin-bottom: 1.2rem;
}

.rating-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background-color: #f1f5f9;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 5px;
}

/* --- 10. RESPONSIVE (GLOBAL) --- */
@media (max-width: 968px) {
    /* Home Hero */
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }
    .hero-text-wrapper { margin: 0 auto; }
    .cta-group { justify-content: center; }
    .hero-image-wrapper { justify-content: center; margin-top: 2rem; width: 100%; }
    .hero-image-wrapper img { max-width: 80%; }

    /* Detail Page Grid */
    .detail-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    .detail-image-container {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Navbar */
    .nav-links { display: none; }
    .hamburger { display: block; }
}