/* =========================================
   1. Front Page Wrapper & Reset
   ========================================= */
.me-front-page-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--me-font-sans, 'Inter', sans-serif);
    color: var(--me-text);
}

.me-section {
    padding: 60px 0;
}

.me-bg-light {
    background-color: #f8f9fa;
}

.me-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.me-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--me-text);
}

.text-center {
    text-align: center;
}

/* =========================================
   2. Hero Section
   ========================================= */
.me-hero-section {
    position: relative;
    height: 600px;
    /* Taller hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #1a1a1a;
    background-image: url('/wp-content/uploads/2025/12/manaus-am-area.jpeg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    margin-bottom: 0;
}

/* Gradient Overlay */
.me-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(20, 20, 20, 0.6) 100%);
    z-index: 1;
}

.me-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.me-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: #fff;
}

.me-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.me-hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.me-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.me-btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.me-btn-xl {
    padding: 16px 40px;
    font-size: 1.25rem;
}

.me-btn-primary {
    background-color: var(--me-primary, #DF5B0F);
    color: #fff;
    border: 2px solid var(--me-primary, #DF5B0F);
}

.me-btn-primary:hover {
    background-color: var(--me-primary-dark, #c44e0d);
    border-color: var(--me-primary-dark, #c44e0d);
    color: #fff;
    transform: translateY(-2px);
}

.me-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.me-btn-outline:hover {
    background: #fff;
    color: var(--me-text);
    transform: translateY(-2px);
}

.me-btn-white {
    background: #fff;
    color: var(--me-primary, #DF5B0F);
    border: 2px solid #fff;
}

.me-btn-white:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
    transform: translateY(-2px);
}

/* =========================================
   3. Location Bar (Smart Location)
   ========================================= */
.me-location-bar {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.me-location-bar .me-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.me-location-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #495057;
}

.me-loc-icon {
    color: var(--me-primary, #DF5B0F);
}

.me-change-city-link {
    background: transparent;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--me-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.me-change-city-link:hover {
    background: #f8f9fa;
    border-color: #000000;
}

.me-change-city-link .material-symbols-rounded {
    font-size: 18px;
}

/* =========================================
   3.1 City Switcher Modal
   ========================================= */
.me-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.me-modal-box {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: meModalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes meModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.me-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #adb5bd;
    cursor: pointer;
}

.me-modal-close:hover {
    color: #333;
}

.me-modal-title {
    margin: 0 0 10px;
    font-size: 1.5rem;
    text-align: center;
}

.me-modal-desc {
    text-align: center;
    color: #6c757d;
    margin-bottom: 25px;
}

.me-input-wrapper {
    position: relative;
}

.me-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
}

#me-city-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: 0.2s;
    outline: none;
}

#me-city-input:focus {
    border-color: var(--me-primary, #DF5B0F);
    box-shadow: 0 0 0 4px rgba(223, 91, 15, 0.1);
}

/* UI Autocomplete Overrides */
.ui-autocomplete {
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: none !important;
    padding: 10px 0 !important;
    max-height: 300px;
    overflow-y: auto;
    z-index: 10000 !important;
    /* Ensure it's above the modal (z-index 9999) */
}

.ui-menu-item-wrapper {
    padding: 12px 20px !important;
    font-size: 1rem;
    font-family: inherit;
}

.ui-state-active,
.ui-widget-content .ui-state-active {
    background: #f8f9fa !important;
    border: none !important;
    color: var(--me-primary, #DF5B0F) !important;
    font-weight: 600;
}

/* =========================================
   4. Categories Grid
   ========================================= */
.me-front-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.me-front-cat-card {
    background: #fff;
    border: 1px solid var(--me-border, #e9ecef);
    border-radius: 16px;
    padding: 24px 15px;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.me-front-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.me-front-cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 15px;
}

.me-front-cat-name {
    font-weight: 600;
    color: var(--me-text);
    margin-bottom: 5px;
    line-height: 1.2;
}

.me-front-cat-count {
    font-size: 0.85rem;
    color: #6c757d;
}

/* =========================================
   5. Premium Showcase
   ========================================= */
.me-premium-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.me-premium-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: 0.3s;
}

.me-premium-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.me-premium-thumb-link {
    display: block;
    position: relative;
    padding-top: 65%;
    /* Aspect Ratio 3:2 */
    overflow: hidden;
}

.me-premium-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: 0.5s;
}

.me-thumb-placeholder {
    background-color: #e9ecef;
}

.me-premium-card:hover .me-premium-thumb {
    transform: scale(1.05);
}

.me-badge-premium {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #FFD700;
    color: #333;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.me-premium-info {
    padding: 20px;
}

.me-premium-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.me-premium-cat {
    color: var(--me-primary, #DF5B0F);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.me-premium-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: #f59e0b;
}

.me-premium-rating .material-symbols-rounded {
    font-size: 16px;
}

.me-premium-title {
    margin: 0 0 10px;
    font-size: 1.15rem;
    line-height: 1.3;
}

.me-premium-title a {
    text-decoration: none;
    color: var(--me-text);
    font-weight: 700;
}

.me-premium-title a:hover {
    color: var(--me-primary, #DF5B0F);
}

.me-premium-address {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.me-premium-address .material-symbols-rounded {
    font-size: 16px;
}

/* =========================================
   6. CTA Section
   ========================================= */
.me-cta-section {
    background: var(--me-primary, #DF5B0F);
    background: linear-gradient(135deg, var(--me-primary) 0%, var(--me-primary-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.me-cta-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffffff;
}

.me-cta-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* =========================================
   7. Recent Feed
   ========================================= */
.me-recent-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.me-recent-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.me-recent-item:hover {
    border-color: var(--me-border, #ddd);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.me-recent-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #f1f3f5;
    overflow: hidden;
    flex-shrink: 0;
}

.me-recent-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.me-placeholder-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

.me-recent-body {
    flex-grow: 1;
}

.me-recent-title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--me-text);
}

.me-recent-loc {
    font-size: 0.85rem;
    color: #888;
}

.me-recent-action {
    color: #ccc;
    font-size: 24px;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 992px) {
    .me-premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .me-hero-title {
        font-size: 2.25rem;
    }

    .me-hero-section {
        height: 500px;
    }

    .me-premium-grid {
        grid-template-columns: 1fr;
    }

    .me-recent-list {
        grid-template-columns: 1fr;
    }

    .me-cta-content h2 {
        font-size: 1.75rem;
    }

    .me-front-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .me-section {
        padding: 30px 0;
    }
}