/*
Theme Name: amiguz.com
Theme URI: https://amiguz.com
Description: Lateinamerika Unterkunft Bewertungen - Reiseziele, Magazin, Ratgeber.
Version: 1.1
Author: amiguz.com
*/

/* Global Styles & Design Tokens */
:root {
    --main-blue: #0772b0;
    --main-hover: #055a8e;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* ==========================================================================
   ELEMENTOR OVERRIDES (Fix für .elementor-kit-38)
   ========================================================================== */
button.burger-menu-btn,
button.drawer-close-btn,
.elementor-kit-38 button.burger-menu-btn,
.elementor-kit-38 button.drawer-close-btn,
.elementor-kit-38 .burger-menu-btn,
.elementor-kit-38 .drawer-close-btn {
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    outline-width: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    -webkit-tap-highlight-color: transparent; /* Verhindert blauen Mobil-Schatten */
}

/* Header & Desktop Navigation */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.site-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: 2rem;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.site-logo span {
    color: var(--main-blue);
    font-weight: 700;
}

/* Navigation & Mega Menus */
.desktop-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
}

.desktop-nav ul li {
    position: relative;
}

.desktop-nav ul li a {
    display: block;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    border-radius: 6px;
}

.desktop-nav ul li a:hover {
    color: var(--main-blue);
    background-color: #f1f5f9;
}

/* Dropdowns */
.desktop-nav ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    min-width: 220px;
    border-radius: 8px;
    display: none;
    flex-direction: column;
    padding: 8px 0;
    gap: 0;
}

.desktop-nav ul li:hover ul {
    display: flex;
}

.desktop-nav ul li ul li a {
    border-radius: 0;
    padding: 8px 20px;
    font-weight: 600;
}

/* Blaue Buttons */
.btn-blue-accent {
    background-color: var(--main-blue) !important;
    color: var(--white) !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
}

.btn-blue-accent:hover {
    background-color: var(--main-hover) !important;
    color: var(--white) !important;
}

/* Mobile Burger Menu Button Default */
.burger-menu-btn {
    display: none;
    background: none;
    border: none !important;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* 2-Teiliges Mobile Drawer Menü (Modesy Identisch) */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: var(--white);
    box-shadow: 5px 0 25px rgba(0,0,0,0.15);
    z-index: 10000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.is-open {
    left: 0;
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Modesy Navigation Tabs */
.drawer-tabs {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border-color);
}

.drawer-tab-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #d7dbde;
    background: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--text-muted);
    text-align: center;
}

.drawer-tab-btn.active {
    background: var(--white);
    color: var(--main-blue);
}

.drawer-content-panel {
    flex: 1;
    overflow-y: auto;
    display: none;
    padding: 15px 0;
}

.drawer-content-panel.active {
    display: block;
}

/* Vertikale Menülisten im Drawer */
.drawer-menu-list {
    list-style: none;
}

.drawer-menu-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    font-weight: 600;
    border-bottom: 1px solid #f8fafc;
}

.drawer-menu-list li a:hover {
    background: #f8fafc;
    color: var(--main-blue);
}

.drawer-close-btn {
    background: none;
    border: none !important;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    display: none;
}

.drawer-overlay.is-open {
    display: block;
}

/* Hero & Clean Search Bar Desktop */
.hero-wrapper {
    background: linear-gradient(rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.45)), url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    height: 55vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.search-box-clean {
    background: var(--white);
    padding: 15px;
    border-radius: 50px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 750px;
}

.search-inner-form {
    display: flex;
    align-items: center;
}

.search-inner-form input {
    flex: 1;
    border: none;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-family: 'Nunito', sans-serif;
    outline: none;
    background: transparent;
}

.search-inner-form button {
    background-color: var(--main-blue);
    color: var(--white);
    border: none;
    padding: 14px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.search-inner-form button:hover {
    background-color: var(--main-hover);
}

/* Sections Layout */
.main-layout-container {
    max-width: 1240px;
    margin: 50px auto;
    padding: 0 20px;
}

.section-head {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.section-head h2 {
    font-size: 1.6rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-head h2::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    
    height: 3px;
    background-color: var(--main-blue);
}

/* Sektion 1: Länder (Modesy runder Kategoriestil) */
.grid-countries {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.country-item-card {
    text-align: center;
}

.country-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 4px solid var(--white);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.country-item-card:hover .country-avatar {
    transform: scale(1.06);
}

.country-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-title {
    font-weight: 700;
    font-size: 0.95rem;
}

/* Sektion 2: Echte Bewertungen */
.grid-reviews {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.review-card-layout {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.review-card-location {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 8px;
}

.review-card-img-holder {
    height: 170px;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.review-card-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.review-stars-static {
    color: #f59e0b;
    font-size: 0.85rem;
}

.review-subtext-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-left: 4px;
}

.review-score-badge {
    background: #1e293b;
    color: var(--white);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.review-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.review-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex: 1;
}

.review-card-footer-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: underline;
}

/* Sektion 3: Magazin Ratgeber */
.grid-magazine {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.magazine-post-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.magazine-img-holder {
    height: 160px;
}

.magazine-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.magazine-body {
    padding: 15px;
}

.magazine-tag {
    color: var(--main-blue);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.magazine-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.magazine-text-p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Sektion 4: Empfohlene Unterkünfte */
.grid-affiliate {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.affiliate-hotel-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.affiliate-img-holder {
    height: 180px;
}

.affiliate-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.affiliate-body {
    padding: 15px;
}

.affiliate-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 12px;
}

.affiliate-price {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--main-blue);
}

.affiliate-cta-btn {
    background: var(--main-blue);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Modesy-Stil Mega Footer */
.site-footer-markup {
    background: #111827;
    color: #9ca3af;
    padding: 60px 20px 30px;
    margin-top: 80px;
    font-size: 0.9rem;
}

.footer-inner-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 40px;
    border-bottom: 1px solid #374151;
    padding-bottom: 40px;
}

.footer-block h4 {
    color: var(--white);
    margin-bottom: 18px;
    font-size: 1rem;
}

.footer-block ul {
    list-style: none;
}

.footer-block ul li {
    margin-bottom: 10px;
}

.footer-block ul li a:hover {
    color: var(--white);
}

/* Styling für Subkategorien im mobilen Drawer (Akkordeon) */
.drawer-content-panel ul.sub-menu {
    display: none;
    background: #f8fafc;
    list-style: none;
    padding-left: 15px;
    border-left: 3px solid var(--main-blue);
}

.drawer-content-panel .menu-item-has-children.sub-menu-open > ul.sub-menu {
    display: block;
}

.drawer-content-panel .menu-item-has-children > a::after {
    content: ' \25BE';
    font-size: 0.8rem;
    float: right;
}

.drawer-content-panel .menu-item-has-children.sub-menu-open > a::after {
    content: ' \25B4';
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Optimiert & Zusammengefasst)
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-countries { grid-template-columns: repeat(4, 1fr); }
    .grid-reviews { grid-template-columns: repeat(2, 1fr); }
    .grid-magazine { grid-template-columns: repeat(2, 1fr); }
    .grid-affiliate { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .desktop-nav { 
        display: none; 
    }
    
    /* Mobil Burger Button komplett ohne Borders */
    .burger-menu-btn { 
        display: block; 
        border: none !important; 
        outline: none !important;
    }
    
    /* Hero-Höhe verkleinert für Smartphone */
    .hero-wrapper {
        height: 35vh !important; /* Nutzt 35% der Bildschirmhöhe */
    }
    
    .grid-countries { grid-template-columns: repeat(3, 1fr); }
    .grid-reviews { grid-template-columns: 1fr; }
    .grid-magazine { grid-template-columns: 1fr; }
    .grid-affiliate { grid-template-columns: 1fr; }
    .footer-inner-grid { grid-template-columns: 1fr; }
}