/* ==========================================================================
   1. GENERAL VARIABLES & RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fdfdfd;
}

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

main.container {
    display: block !important;
    min-height: 100vh !important;
}

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

a {
    text-decoration: none;
    transition: 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom: 3px solid #D52B1E;
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    border-radius: 5px;
}

.logo span { color: #D52B1E; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #555;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover, 
.nav-links a.active {
    color: #D52B1E;
}

.swiss-time {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 50px;
    padding: 6px 15px;
    font-size: 13px;
    color: #D52B1E;
    font-weight: bold;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: #111;
    cursor: pointer;
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('images/hero.jpg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    width: 100%;
}

.hero-content h1 {
    font-size: 45px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background: #D52B1E;
    color: #fff;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
}

.cta-btn:hover { background: #b02016; }

/* ==========================================================================
   4. TYPOGRAPHY & LAYOUT GRIDS
   ========================================================================== */
.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #D52B1E;
    margin: 10px auto 0;
}

.sub-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #34495e;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 30px;
}

.margin-bottom { margin-bottom: 40px; }

/* ==========================================================================
   5. CARDS & COMPONENTS
   ========================================================================== */
.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    border: 1px solid #eee;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body { padding: 25px; }

.category {
    font-size: 12px;
    text-transform: uppercase;
    color: #D52B1E;
    font-weight: 700;
}

.card-body h3 {
    font-size: 20px;
    margin: 10px 0;
    color: #2c3e50;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #D52B1E;
    font-weight: 600;
}

/* Amazon Product Cards */
.product-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}

.product-card img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    padding: 10px;
    display: block;
    margin: 0 auto;
}

.product-info {
    padding: 25px;
    background: #fafafa;
    border-top: 1px solid #eee;
    flex-grow: 1;
}

.affiliate-btn {
    display: block;
    text-align: center;
    background: #FF9900;
    color: #111;
    font-weight: 700;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
}

.affiliate-btn:hover { background: #e68a00; }

/* Booking Cards & Boxes */
.booking-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid #D52B1E;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    border-left: 5px solid #D52B1E;
}

.booking-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.booking-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    border-radius: 5px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.booking-btn.hotel { background: #003580; }
.booking-btn.hotel:hover { background: #002252; }
.booking-btn.transport { background: #ff5722; }
.booking-btn.transport:hover { background: #e04819; }

.blog-booking-box {
    background-color: #f9f9f9;
    border-left: 4px solid #d92323;
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.booking-box-text {
    font-weight: 500;
    color: #333;
    font-size: 15px;
    margin: 0;
}

.blog-booking-btn {
    background-color: #d92323;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-booking-btn:hover {
    background-color: #b01a1a;
    transform: translateY(-2px);
}

/* ARTICLE / BLOG ELEMENTS */
.destination-section { margin: 70px 0; }

.section-number {
    display: inline-block;
    background: #D52B1E;
    color: #fff;
    padding: 8px 14px;
    border-radius: 30px;
    font-weight: 700;
    margin-bottom: 15px;
}

.article-image {
    width: 100%;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.travel-tip, .photo-spot {
    background: #f8f9fa;
    padding: 22px;
    border-left: 5px solid #D52B1E;
    border-radius: 10px;
    margin: 30px 0;
}

.info-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 15px;
    margin: 35px 0;
}

.info-box div {
    background: #fff;
    border: 1px solid #eee;
    padding: 18px;
    border-radius: 10px;
    text-align: center;
}

.ticket-box {
    background: linear-gradient(135deg, #D52B1E, #ef5350);
    padding: 28px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: #fff;
    margin: 40px 0;
    flex-wrap: wrap;
}

.ticket-btn {
    background: #fff;
    color: #D52B1E;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 700;
}

.ticket-btn:hover { transform: translateY(-2px); }

.section-divider {
    margin: 70px 0;
    border: none;
    border-top: 1px solid #eee;
}

.article-text, .article-text p {
    display: block !important;
    visibility: visible !important;
    color: #444444 !important;
    font-size: 16px !important;
    line-height: 1.9 !important;
    opacity: 1 !important;
}

/* DATA TABLES */
.matrix-table-wrapper {
    margin: 30px 0;
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
    background-color: #ffffff;
    min-width: 100%;
}

.matrix-table th {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 10px 12px;
    font-weight: 700;
    white-space: nowrap;
}

.matrix-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
footer {
    background: #222;
    color: #bbb;
    font-size: 14px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-about { max-width: 450px; }

.footer-about h3, .footer-links h3 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: #bbb; }
.footer-links ul li a:hover { color: #fff; }

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #333;
    background: #1a1a1a;
}

.disclosure {
    font-size: 11px;
    color: #777;
    margin-bottom: 8px;
}

/* ==========================================================================
   7. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    /* Layout Reset */
    .container {
        padding: 40px 12px !important;
    }

    .hero {
        padding: 40px 15px !important;
        height: auto !important;
        min-height: 50vh !important;
    }

    .hero-content h1 { font-size: 32px; }

    /* Navigation Mobile Fixes */
    header nav {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 15px !important;
    }

    .logo { order: 1 !important; }

    .swiss-time {
        order: 2 !important;
        margin-left: auto !important;
        margin-right: 15px !important;
        font-size: 12px !important;
        padding: 4px 10px !important;
    }

    .menu-toggle {
        display: block !important;
        order: 3 !important;
        font-size: 24px !important;
    }

    .nav-links {
        display: none !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        box-shadow: 0 8px 15px rgba(0,0,0,0.1) !important;
        padding: 15px 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        z-index: 9999 !important;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        width: 100% !important;
        text-align: center !important;
        margin: 10px 0 !important;
    }

    .nav-links li a {
        display: block !important;
        padding: 8px 0 !important;
        font-size: 16px !important;
    }

    /* Grids & Cards Mobile Fixes */
    .grid-2, .gear-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .card, .booking-card, .tool-box, .ticket-box, .blog-booking-box {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero, .blog-hero, article img, .article-image, main img {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important;
    }

    [style*="min-width:320px"],
    [style*="min-width: 320px"],
    [style*="min-width:280px"],
    [style*="min-width: 280px"],
    [style*="min-width:200px"],
    [style*="min-width: 200px"] {
        min-width: 0 !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }

    .info-box,
    .travel-tip,
    .photo-spot,
    .ticket-box,
    .card-body {
        min-width: 0;
        max-width: 100%;
    }

    .swiss-time {
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: repeat(1, 1fr);
    }
}