﻿/* =========================================
   1. Design System & Variables
   ========================================= */
:root {
    --me-primary: #DF5B0F;
    --me-primary-dark: #DF6C2A;
    --me-primary-light: #FFEADD;
    --me-text: #212529;
    --me-text-muted: #6c757d;
    --me-bg: #F5F5F7;
    --me-white: #ffffff;
    --me-border: #e9ecef;
    --me-radius: 12px;
    --me-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    --me-card-hover: 0 5px 15px rgba(0, 0, 0, 0.1);
    --me-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Scoped Reset */
.me-container-layout *,
.me-container-layout ::before,
.me-container-layout ::after {
    box-sizing: border-box;
}

.me-container-layout {
    font-family: var(--me-font-sans);
    color: var(--me-text);
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    margin: 30px 0;
}

.me-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* =========================================
   2. Sidebar & Filters
   ========================================= */
.me-sidebar {
    background: var(--me-white);
    padding: 24px;
    border-radius: var(--me-radius);
    border: 1px solid var(--me-border);
    height: fit-content;
}

.me-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--me-border);
}

.me-sidebar-header h3 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 700;
}

.me-btn-link {
    background: none;
    border: none;
    color: var(--me-primary);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
}

.me-btn-link:hover {
    text-decoration: underline;
}

.me-filter-widget {
    margin-bottom: 24px;
}

.me-filter-widget h4 {
    font-size: 0.95rem;
    color: var(--me-primary);
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.me-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.me-filter-list li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.me-filter-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #495057;
}

.me-filter-list input[type="radio"] {
    accent-color: var(--me-primary);
}

.me-filter-list input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.15rem;
    height: 1.15rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    vertical-align: middle;
}

.me-filter-list input[type="checkbox"]:checked {
    background-color: var(--me-primary);
    border-color: var(--me-primary);
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.me-filter-list input[type="checkbox"]:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--me-primary-light);
    /* fallback hex if var missing */
}

/* Toggle Switch */
.me-toggle-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.me-toggle-control input {
    display: none;
}

.me-toggle-slider {
    width: 2.75rem;
    /* Match previous inline style ~44px */
    height: 1.5rem;
    /* Match previous inline style ~24px */
    background: #E5E7EB;
    /* Default grey */
    border-radius: 9999px;
    position: relative;
    transition: 0.3s;
}

.me-toggle-slider::before {
    content: '';
    position: absolute;
    width: 1.25rem;
    /* Adjusted for height 1.5rem (24px - 4px padding = 20px) -> 1.25rem is 20px */
    height: 1.25rem;
    background: white;
    border-radius: 50%;
    top: 0.125rem;
    /* (1.5 - 1.25)/2 = 0.125rem */
    left: 0.125rem;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    /* Add drop shadow for depth */
}

input:checked+.me-toggle-slider {
    background: #22c55e;
    /* Green 500 equivalent */
}

input:checked+.me-toggle-slider::before {
    transform: translateX(1.25rem);
    /* Move to right (2.75 - 1.25 - 0.125*2) = 1.25 */
}

/* =========================================
   3. Main Header
   ========================================= */
.me-results-header {
    margin-bottom: 20px;
}

.me-breadcrumbs {
    font-size: 0.8rem;
    color: var(--me-text-muted);
    margin-bottom: 8px;
}

.me-results-header h1 {
    font-size: 1.8rem;
    margin: 0 0 15px;
    font-weight: 800;
}

.me-results-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--me-white);
    padding: 15px;
    border-radius: var(--me-radius);
    border: 1px solid var(--me-border);
}

#me-results-count {
    font-size: 0.9rem;
    color: var(--me-text-muted);
}

.me-sort-dropdown select {
    border: 1px solid var(--me-border);
    padding: 5px 10px;
    border-radius: 4px;
    color: var(--me-text);
}

/* =========================================
   4. Horizontal Cards (Refactored)
   ========================================= */
.me-card-horizontal {
    display: flex;
    background: var(--me-white);
    border: 1px solid var(--me-border);
    border-radius: var(--me-radius);
    margin-bottom: 20px;
    overflow: hidden;
    min-height: 220px;
    /* Ensure visual balance */
}

.me-card-horizontal:hover {
    transform: translateY(-2px);
    border-color: #b0c4de;
}

/* New Left Content Area */
.me-card-content {
    flex: 1;
    /* Takes up remaining space */
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.me-card-header-row {
    display: flex;
    gap: 15px;
    /* Space between logo and text */
    align-items: flex-start;
}

/* Logo Styling */
.me-card-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff8e1;
    /* Light background for transparent logos */
    border: 1px solid #eee;
    flex-shrink: 0;
}

.me-card-logo.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cccccc;
    background-color: #eaf4fc;
}

.me-card-logo.placeholder .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
}

/* Header Content Stack */
.me-card-header-info {
    flex: 1;
}

.me-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.me-card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.me-card-title a {
    color: var(--me-text);
    text-decoration: none;
}

.me-btn-heart {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #ccc;
    transition: 0.2s;
    padding: 0;
    margin-left: 10px;
}

.me-btn-heart:hover {
    color: #dc3545;
}

.me-card-meta-row {
    font-size: 0.85rem;
    color: var(--me-text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.me-cat-tag {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    color: #495057;
    text-transform: capitalize;
}

.me-price {
    color: var(--me-text);
    font-weight: 600;
}

/* Inline Status Logic */
.me-status-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 5px;
}

.status-icon::before {
    font-family: dashicons;
    content: "\f469";
    /* clock icon */
    font-size: 14px;
}

.me-status-inline .open-text {
    color: #28a745;
    font-weight: 600;
}

.me-status-inline .closed-text {
    color: #dc3545;
    font-weight: 600;
}

.me-card-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.me-card-address {
    font-size: 0.9rem;
    color: var(--me-text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Actions */
.me-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

/* Right Image Column */
.me-card-right-image {
    width: 300px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    min-height: 220px;
    border-left: 1px solid var(--me-border);
}

@media (max-width: 768px) {
    .me-card-right-image {
        display: none;
        /* Hide right image on mobile or move to top? User didn't specify, but usually hide or stack. */
    }
}

.me-card-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.me-stars {
    font-weight: 700;
}

.me-review-count {
    color: var(--me-text-muted);
    font-size: 0.8rem;
}

.me-card-excerpt {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.me-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--me-border);
    padding-top: 15px;
}

.me-status-text {
    font-weight: 700;
    font-size: 0.85rem;
}

.me-status-text.open {
    color: #28a745;
}

.me-status-text.closed {
    color: #dc3545;
}

.me-status-time {
    font-size: 0.85rem;
    color: var(--me-text-muted);
    margin-left: 5px;
}

.me-action-buttons {
    display: flex;
    gap: 10px;
}

.me-btn-outline {
    background: transparent;
    border: 1px solid var(--me-border);
    color: var(--me-text);
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
}

.me-btn-outline:hover {
    border-color: var(--me-primary);
    color: var(--me-primary);
}

.me-btn-primary.small {
    padding: 5px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
    padding: 8px;
}

/* =========================================
   5. Mobile Responsiveness
   ========================================= */
@media (max-width: 900px) {
    .me-container-layout {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 15px 0;
    }

    .me-card-horizontal {
        flex-direction: column;
    }

    .me-card-image {
        width: 100%;
        height: 200px;
    }

    .me-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .me-action-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .me-action-buttons a {
        flex: 1;
        text-align: center;
    }
}

/* =========================================
   6. User Dashboard & Form
   ========================================= */

.me-user-dashboard {
    max-width: 900px;
    margin: 40px auto;
}

.me-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.me-dashboard-body {

    width: 100%;
}

.me-listings-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--me-radius);
    overflow: hidden;
}

.me-listings-table th,
.me-listings-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--me-border);
}

.me-listings-table th {
    background: #f1f3f5;
    font-weight: 600;
}

/* Form Styles */
.me-card {
    background: white;
    padding: 40px;
    border-radius: var(--me-radius);
    border: 1px solid var(--me-border);
}

.me-text-muted {
    color: var(--me-text-muted);
}

/* Progress Bar */
.me-form-step-indicator {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--me-text);
    margin-bottom: 10px;
    margin-top: 30px;
    font-size: 0.9rem;
}

.me-progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-bottom: 40px;
    overflow: hidden;
}

.me-progress-fill {
    height: 100%;
    width: 25%;
    background: var(--me-primary);
    border-radius: 3px;
}

/* Grid System */
.me-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.me-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.me-form-group {
    margin-bottom: 20px;
}

/* Inputs */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #333;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="time"],
select.me-select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #f8f9fa;
    font-size: 1rem;
    color: var(--me-text);
    transition: 0.2s;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--me-primary);
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Hours Grid */
.me-hours-grid {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.me-hours-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.me-hours-row:last-child {
    margin-bottom: 0;
}

/* Upload Box */
.me-upload-box {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #fdfdfd;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
}

.me-upload-box:hover {
    background: #fff;
    border-color: var(--me-primary);
}

.me-upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.me-upload-box::before {
    content: '☁️';
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    color: #adb5bd;
}

.me-upload-box::after {
    content: 'Clique ou arraste arquivos aqui';
    display: block;
    font-size: 0.9rem;
    color: var(--me-text-muted);
}

/* Buttons */
.me-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: 0.2s;
}

.me-btn-primary,
.me-btn-light {
    background: var(--me-primary);
    border: 1px solid var(--me-border);
    color: var(--me-bg-light);
    padding: 8px;
    border-radius: var(--me-radius);
}

.me-btn-primary:hover {
    background: var(--me-primary-dark);
    color: var(--me-white)
}

.me-btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.me-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    transition: 0.2s;
    border: 1px solid #e9ecef;
}

.me-social-icons a:hover {
    transform: translateY(-3px);
    background: white;
    box-shadow: none;
}

@media (max-width: 768px) {
    .me-row {
        flex-direction: column;
        gap: 15px;
    }

    .me-hours-row {
        flex-wrap: wrap;
    }

    /* Stack Header on Mobile */
    .me-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .me-header-logo {
        margin-bottom: 15px;
    }

    .me-badges {
        justify-content: center;
    }
}

/* =========================================
   7. Single Listing Page
   ========================================= */

.me-single-header {
    margin-bottom: 30px;
}

.me-breadcrumbs-single {
    font-size: 0.825rem;
    color: var(--me-text-muted);
    margin-bottom: 20px;
}

.me-breadcrumbs-single a:hover {
    text-decoration: underline;
}

.me-single-title {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.1;
}

.me-section-title {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
}

.me-section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.me-sidebar-title {
    font-size: 1.1rem;
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: 700;
}

.me-single-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--me-border);
    margin-top: 40px;
}

.me-tab-link {
    padding-bottom: 15px;
    font-weight: 600;
    color: var(--me-text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    font-size: 1.05rem;
}

.me-tab-link:hover {
    color: var(--me-primary);
}

.me-tab-link.active {
    color: var(--me-primary);
    border-bottom-color: var(--me-primary);
}

/* Gallery Grid Single */
.me-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.me-gallery-item {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: var(--me-radius);
    cursor: pointer;
    transition: transform 0.2s;
}

.me-gallery-item:hover {
    transform: scale(1.02);
}

.me-gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
    height: 415px;
    /* 200*2 + 15 gap */
}

/* Sidebar Sticky */
.me-sidebar-col {
    position: sticky;
    top: 20px;
}

.me-sidebar-box {
    background: white;
    padding: 25px;
    border-radius: var(--me-radius);
    border: 1px solid var(--me-border);
    margin-bottom: 20px;
}

.me-info-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.me-info-list li:last-child {
    border-bottom: none;
}

.me-hours-table {
    width: 100%;
    font-size: 0.95rem;
}

.me-hours-table td {
    padding: 8px 0;
    border-bottom: 1px dotted #eee;
}

.me-hours-table tr:last-child td {
    border-bottom: none;
}

/* Reviews List */
.me-review-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--me-border);
}

.me-review-item:last-child {
    border-bottom: none;
}

.me-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 15px;
}

.me-review-avatar img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.me-review-author strong {
    display: block;
    font-size: 1rem;
}

.me-review-date {
    font-size: 0.8rem;
    color: var(--me-text-muted);
}

/* =========================================
   LocalGuide Admin Panel
   ========================================= */

/* Layout Wrapper */
.me-admin-wrapper {
    display: flex;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    background: #f4f6f9;
    min-height: calc(100vh - 32px);
    /* WP Admin Bar spacing */
    margin-left: -20px;
    /* Counteract WP wrap margin */
    margin-top: -10px;
    margin-right: -20px;
    margin-bottom: -20px;
}

/* Sidebar */
.me-admin-sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.me-sidebar-brand {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.me-logo-icon {
    width: 36px;
    height: 36px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.me-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.me-brand-text strong {
    font-size: 16px;
    color: #2c3e50;
}

.me-brand-text span {
    font-size: 12px;
    color: #888;
}

.me-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 20px;
    flex: 1;
}

.me-sidebar-menu li {
    margin-bottom: 5px;
}

.me-menu-header {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 0 10px 10px;
}

.me-sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.me-sidebar-menu a:hover {
    background: #f8f9fa;
    color: #007bff;
}

.me-sidebar-menu a.active {
    background: #e7f1ff;
    color: #007bff;
}

.me-sidebar-menu .dashicons {
    margin-right: 12px;
    color: #999;
    font-size: 18px;
    height: 18px;
    width: 18px;
}

.me-sidebar-menu a:hover .dashicons,
.me-sidebar-menu a.active .dashicons {
    color: #007bff;
}

.me-badge-count {
    margin-left: auto;
    background: #dc3545;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

/* Main Content */
.me-admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Top Header */
.me-top-header {
    background: #fff;
    height: 70px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-radius: var(--me-radius)
}

.me-search-bar {
    position: relative;
    width: 400px;
}

.me-search-bar input {
    width: 100%;
    padding: 10px 15px 10px 35px;
    background: #f8f9fa;
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 14px;
    transition: 0.2s;
}

.me-search-bar input:focus {
    background: #fff;
    border-color: #e9ecef;
    box-shadow: none;
    outline: none;
}

.me-search-bar .dashicons {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.me-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.me-notify-icon {
    font-size: 20px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.me-notify-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
    border: 2px solid #fff;
}

.me-help-link {
    display: flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    gap: 5px;
}

/* Content Body */
.me-main-content {
    padding: 0px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.me-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.me-dashboard-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.me-dashboard-header p {
    color: #888;
    margin: 0;
    font-size: 14px;
}

.me-dashboard-actions {
    display: flex;
    gap: 12px;
}

.me-btn-white {
    background: #fff;
    border: 1px solid #dce0e5;
    color: #555;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.me-btn-blue {
    background: #007bff;
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: 0.2s;
    border: none;
}

.me-btn-blue:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-2px);
    box-shadow: none;
}

/* Stats Cards */
.me-stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.me-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: none;
    border: 1px solid #f0f2f5;
    transition: 0.2s;
}

.me-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.card-icon-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.icon-box.blue {
    background: #e7f1ff;
    color: #007bff;
}

.icon-box.yellow {
    background: #fff3cd;
    color: #ffc107;
}

.icon-box.purple {
    background: #f3e5f5;
    color: #ab47bc;
}

.icon-box.red {
    background: #fbe9eb;
    color: #dc3545;
}

.trend {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    height: fit-content;
}

.trend.positive {
    background: #d4edda;
    color: #155724;
}

.trend.negative {
    background: #f8d7da;
    color: #721c24;
}

.trend.neutral {
    background: #e9ecef;
    color: #495057;
}

.card-value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.card-label {
    font-size: 14px;
    color: #888;
}

/* Charts Row */
.me-charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.me-chart-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: none;
    border: 1px solid #f0f2f5;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.me-chart-card h3 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
}

.chart-subtitle {
    margin: 0 0 20px 0;
    color: #888;
    font-size: 13px;
}

.badge {
    background: #f8f9fa;
    color: #666;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.badge.yellow {
    background: #fff3cd;
    color: #856404;
}

.me-fake-chart-wave {
    height: 180px;
    width: 100%;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.me-fake-chart-wave svg {
    width: 100%;
    height: 100%;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    color: #999;
    font-size: 12px;
}

/* Category Bars */
.me-category-bars {
    margin-top: 30px;
}

.cat-bar-item {
    margin-bottom: 20px;
}

.cat-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
}

.progress-bg {
    height: 8px;
    background: #f1f3f5;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #007bff;
    border-radius: 4px;
}

.view-all-link {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* Table Card */
.table-card {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: none;
    border: 1px solid #f0f2f5;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subtitle {
    margin: 5px 0 20px 0;
    color: #888;
    font-size: 14px;
}

.me-admin-table {
    width: 100%;
    border-collapse: collapse;
}

.me-admin-table th {
    text-align: left;
    color: #999;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 10px;
    border-bottom: 1px solid #e9ecef;
}

.me-admin-table td {
    padding: 20px 10px;
    border-bottom: 1px solid #f8f9fa;
    vertical-align: middle;
    color: #333;
    font-size: 14px;
}

.table-listing-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.thumb-placeholder {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border-radius: 8px;
}

.action-link {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
}

/* Section Header for Settings */
.me-section-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
}

.me-section-header h1 {
    font-size: 24px;
    color: #2c3e50;
    margin: 0;
}

@media (max-width: 1200px) {
    .me-stat-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   User Dashboard (Guia Local Layout)
   ========================================= */
.me-user-dashboard-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 2rem auto;
    font-family: var(--me-font-sans);
}

/* Dashboard Sidebar */
.me-dashboard-sidebar {
    width: 280px;
    background: #fff;
    border-radius: var(--me-radius);
    padding: 24px;
    height: fit-content;
    flex-shrink: 0;
    border: 1px solid var(--me-border);
}

.me-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.me-sidebar-user img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.me-user-details strong {
    display: block;
    font-size: 0.95rem;
    color: #333;
}

.me-user-details span {
    font-size: 0.8rem;
    color: #888;
}

.me-dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.me-dashboard-menu li {
    margin-bottom: 5px;
}

.me-dashboard-menu span {
    padding: 0 5px 0 0;
}

.me-dashboard-menu a {
    display: flex;
    align-items: center;
    padding: 10px 10px;
    color: #555;
    text-decoration: none;
    border-radius: var(--me-radius);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.2s;
}

.me-dashboard-menu a:hover,
.me-dashboard-menu a.active {
    background: #e7f1ff;
    color: var(--me-primary);
}

.me-dashboard-menu .dashicons {
    margin-right: 12px;
    font-size: 18px;
    color: #aaa;
}

.me-dashboard-menu a:hover .dashicons,
.me-dashboard-menu a.active .dashicons {
    color: var(--me-primary);
}

.me-badge-count-blue {
    margin-left: auto;
    background: var(--me-primary);
    color: white;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
}

.me-sidebar-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.me-sidebar-footer a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    gap: 10px;
    border-radius: 8px;
}

.me-sidebar-footer a:hover {
    background: #f8f9fa;
}

.me-sidebar-footer .logout-link {
    color: #dc3545;
}

/* Dashboard Content */
.me-dashboard-content {
    flex: 1;
    min-width: 0;
}

.me-welcome-header {
    margin-bottom: 30px;
    position: relative;
}

.me-welcome-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #212529;
}

.me-welcome-header p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

.me-welcome-header .me-btn-primary {
    position: absolute;
    right: 0;
    top: 5px;
    border-radius: 30px;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 900px) {
    .me-welcome-header .me-btn-primary {
        position: static;
        margin-top: 15px;
        width: fit-content;
    }
}

/* Stats Row */
.me-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.me-stat-box {
    padding: 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: none;
    border: 1px solid #f0f0f0;
}

.me-stat-box.white {
    background: #fff;
}

.me-stat-box .icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.icon-circle.blue {
    background: #e7f1ff;
    color: #007bff;
}

.icon-circle.purple {
    background: #f3e5f5;
    color: #ab47bc;
}

.icon-circle.yellow {
    background: #fff3cd;
    color: #ffc107;
}

.me-stat-box .stat-label {
    display: block;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.me-stat-box .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

/* Dashboard Grid 2:1 */
.me-dashboard-grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {

    .me-user-dashboard-wrapper,
    .me-stats-row,
    .me-dashboard-grid-2-1 {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .me-dashboard-sidebar {
        width: 100%;
    }
}

/* Featured Section */
.me-featured-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.me-featured-section h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
}

.me-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.me-feat-card {
    height: 220px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.me-feat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.me-fav-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    border: none;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: 0.2s;
}

.me-fav-btn.active,
.me-fav-btn:hover {
    color: #dc3545;
}

.me-feat-content h4 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.me-feat-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0 0 10px 0;
}

.rating-badge {
    background: #d4edda;
    color: #155724;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 700;
}

.me-feat-content .tags span {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

/* Status Sidebar Widget */
.me-widget-box {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f0f0f0;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.widget-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.me-status-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.me-status-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f8f9fa;
}

.me-status-list li:last-child {
    border-bottom: none;
}

.status-info {
    display: flex;
    flex-direction: column;
}

.status-info strong {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 2px;
}

.status-info span {
    font-size: 0.75rem;
    color: #999;
}

.status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.status-badge.green {
    background: #e6fcf5;
    color: #0fab76;
}

.status-badge.yellow {
    background: #fff9db;
    color: #fcc419;
}

.view-all-text {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--me-primary);
    text-decoration: none;
}

.empty-msg {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    margin: 20px 0;
}

/* Listings Grid for Favorites */
.me-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* =========================================
   9. Nav Style Filters (Categories & Amenities)
   ========================================= */

.me-nav-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.me-nav-filter-list li {
    margin-bottom: 2px;
}

.me-nav-item {
    display: flex;
    align-items: center;
    padding: 5px 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    background: transparent;
    color: #495057;
    font-size: 0.95rem;
    font-weight: 500;
}

.me-nav-item:hover,
.me-nav-item.active {
    background: #f1f3f5;
    color: var(--me-primary);
}

.me-nav-item.active {
    font-weight: 600;
    background: #e7f1ff;
    color: var(--me-primary);
}

.me-nav-sub-list {
    padding: 0px;
}

.me-nav-icon {
    margin-right: 12px;
    font-size: 18px;
    color: #adb5bd;
    display: none;
    /* Fix alignment */
    align-items: center;
}

.me-nav-item:hover .me-nav-icon,
.me-nav-item.active .me-nav-icon {
    color: var(--me-primary);
}

.me-nav-text {
    flex-grow: 1;
}

.me-nav-chevron {
    font-size: 16px;
    color: #ccc;
    margin-left: auto;
}

.me-nav-item:hover .me-nav-chevron,
.me-nav-item.active .me-nav-chevron {
    color: var(--me-primary);
}

/* Custom Checkbox Box for Amenities */
.me-nav-check-box {
    width: 18px;
    height: 18px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    background: white;
}

.me-nav-check-box .dashicons {
    font-size: 14px;
    opacity: 0;
    color: white;
    transform: scale(0.5);
    transition: 0.2s;
}

.me-nav-item.active .me-nav-check-box {
    background: var(--me-primary);
    border-color: var(--me-primary);
}

.me-nav-item.active .me-nav-check-box .dashicons {
    opacity: 1;
    transform: scale(1);
}

.me-nav-item:hover .me-nav-check-box {
    border-color: var(--me-primary);
}


/* =========================================
   8. Active Filters & Pagination (New)
   ========================================= */

/* Active Filters Chips */
.me-active-filters-widget {
    margin-bottom: 20px;
}

#me-active-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.me-filter-chip {
    display: inline-flex;
    align-items: center;
    background: #FFEADD;
    color: var(--me-text);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.2s;
}

.me-filter-chip:hover {
    background: #dde2e6;
}

.me-filter-chip .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-left: 5px;
    cursor: pointer;
    color: #888;
}

.me-filter-chip .dashicons:hover {
    color: #dc3545;
}

/* Pagination Links */
.me-pagination-links {
    display: inline-flex;
    gap: 5px;
    margin-top: 20px;
}

.me-page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e9ecef;
    color: var(--me-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.me-page-link:hover,
.me-page-link.active {
    background: var(--me-primary);
    color: white;
    border-color: var(--me-primary);
}

.me-page-link.prev,
.me-page-link.next {
    width: auto;
    padding: 0 12px;
}

.me-amenities-list-scroll::-webkit-scrollbar {
    width: 6px;
}

.me-amenities-list-scroll::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 3px;
}

.me-pag-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--me-text-muted);
    font-size: 1.2rem;
    line-height: 1;
}

/* =========================================
   8. Search Widget
   ========================================= */

.me-search-widget-container {
    background: #fff;
    border-radius: 10px;
    /* Soft shadow like Airbnb/Yelp */
    padding: 0px;
    max-width: 850px;
    /* Adjust as needed */
    margin: 0 auto;
    border: 1px solid #e0e0e0;
}

.me-search-widget-form {
    display: flex;
    align-items: center;
    position: relative;
    /* Height removed to allow flexibility */
    /* Divide with vertical line handled by separate div */
}

/* Groups (What / Where) */
.me-search-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 20px;
    min-height: 50px;
    /* Changed from fixed height to min-height */
}

.me-search-divider {
    width: 1px;
    height: 32px;
    background-color: #ddd;
}

/* Icons */
.me-search-icon {
    font-size: 20px;
    color: #555;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 8px;
}

/* Inputs */
.me-search-group input {
    border: none;
    background: transparent;
    font-size: 1rem;
    width: 100%;
    color: #333;
    font-weight: 500;
    padding: 0;
    /* Remove padding to align with icon */
    outline: none;
    box-shadow: none !important;
    /* Override global input focus */
}

input#me-search-input-what {
    border: none;
    background: none;
}

input#me-search-input-where {
    border: none;
    background: none;
}

.me-search-group input::placeholder {
    color: #999;
    font-weight: 400;
}

/* Search Button */
.me-search-btn {
    background: var(--me-primary);
    color: #fff;
    border: none;
    border-radius: 0 20% 20% 0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.me-search-btn:hover {
    background: var(--me-primary-dark);
}

.me-search-btn .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Autocomplete Dropdown */
.me-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    overflow: hidden;
    /* Scroll support */
    max-height: 250px;
    /* Approx 5 items */
    overflow-y: auto;
    padding: 10px 0;
    border: 1px solid #eee;
    display: none;
    /* Toggled by JS */
}

/* Where input specific alignment */
.me-search-where .me-autocomplete-dropdown {
    left: 0;
    width: 100%;
}

.me-ac-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
    padding: 8px 20px;
    letter-spacing: 0.5px;
}

.me-ac-item {
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.05s;
}

.me-ac-item:hover {
    background-color: #f7f7f7;
}

/* Category Item */
.me-ac-cat .dashicons {
    color: #777;
    background: #f0f0f0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.me-ac-text {
    font-weight: 500;
    color: #333;
}

/* Listing Item */
.me-ac-listing {
    align-items: flex-start;
}

.me-ac-img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    flex-shrink: 0;
}

.me-ac-content {
    flex: 1;
}

.me-ac-title {
    font-weight: 500;
    color: #333;
    font-size: 0.85rem;
    line-height: 1.2;
}

.me-ac-meta {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.me-ac-rating {
    display: flex;
    align-items: center;
    color: #ffa500;
    font-weight: 700;
}

.me-ac-rating .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Current Location Option */
.me-location-option {
    padding: 4px 14px;
    cursor: pointer;
    color: #333;
    transition: background-color 0.2s;
}

.me-location-option:hover {
    background-color: #f8f9fa;
}

.me-location-option.current-location {
    color: var(--me-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.me-location-option.current-location:hover {
    background-color: #f0f7ff;
}

/* Responsive */
@media (max-width: 768px) {
    .me-search-widget-container {
        border-radius: var(--me-radius);
        /* Box style on mobile */

    }

    .me-search-widget-form {
        flex-direction: row;
    }

    .me-search-group {
        flex: 1;
        /* Distribute space equally */
        width: auto;
        /* Override explicit width */
        min-height: 24px;
        /* Consistent height with button */
        font-size: 0.8rem;
        min-width: 0;
        /* Allow shrinking */
    }

    .me-search-group:last-of-type {
        border-bottom: none;
    }

    .me-search-divider {
        display: none;
    }

    .me-search-btn {
        width: 44px;
        /* Fixed width for icon */
        border-radius: 0 20% 20% 0;
        margin: 0;
        /* Remove vertical margins for alignment */
        /* Match inputs */
        padding: 0;
        /* Center icon */
        flex-shrink: 0;
        /* Prevent button from squishing */
    }

    .me-autocomplete-dropdown {
        position: fixed;
        /* Full screen or fixed pos on mobile usually better, but let's stick to absolute relative to input first */
        top: 100%;
        z-index: 9999;
        width: 100%;
        left: 0;
    }
}

/* =========================================
   Mobile Filter Toggle & Sidebar
   ========================================= */
@media (max-width: 768px) {

    /* Hide Sidebar by default */
    .me-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: 9999;
        overflow-y: auto;
        padding: 20px;
        box-shadow: none;
    }

    /* Open State */
    .me-sidebar.me-mobile-open {
        display: block;
    }

    /* Header in Sidebar */
    .me-sidebar-header {
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 10;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
        margin-bottom: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Toggle Button Visibility */
    #me-mobile-filter-toggle {
        display: inline-flex !important;
        align-items: center;
        gap: 5px;
        border-radius: var(--me-radius);
        width: 100%
    }

    /* Close Button Visibility */
    .me-sidebar-close {
        display: block !important;
    }

    /* Adjust Layout */
    .me-container-layout {
        display: block;
        /* Stack sidebar/main */
    }
}

/* END MOBILE ONLY MEDIA QUERY */



/* =========================================
   Dashboard Redesign
   ========================================= */

/* Ensure background for dashboard body */
.me-dashboard-body {
    border-radius: 0 var(--me-radius) var(--me-radius) 0;
    /* Match sidebar radius if side-by-side */
    flex: 1;
}

/* Promo Box in Sidebar */
.me-sidebar-promo {
    background: var(--me-primary);
    color: #fff;
    border-radius: var(--me-radius);
    padding: 20px;
    margin-top: auto;
    /* Push to bottom */
    text-align: left;
}

.me-sidebar-promo h4 {
    color: #fff;
    margin: 5px 0 10px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.me-sidebar-promo p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    margin-bottom: 15px;
}

.me-sidebar-promo .me-btn-light {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 8px;
    border-radius: calc(var(--me-radius) / 2);
    font-size: 0.85rem;
    display: block;
    text-decoration: none;
}

.me-sidebar-promo .me-btn-light:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Dashboard Home Header */
.me-db-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.me-db-header h1 {
    font-size: 2rem;
    color: #111;
    margin: 0 0 5px 0;
}

.me-db-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Grid Layout for Main Content */
.me-db-grid-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    align-items: start;
    /* Prevent stretching */
}

/* Explicit width for columns to ensure they exist */
.me-db-col-left {
    min-width: 0;
    /* Prevent grid overflow */
}

.me-db-col-right {
    min-width: 0;
}

@media (max-width: 992px) {
    .me-db-grid-area {
        grid-template-columns: 1fr;
    }
}

/* Widget Styles */
.me-db-widget {
    background: #fff;
    border-radius: var(--me-radius);
    padding: 24px;
    border: 1px solid #f0f0f0;
    /* Softer border */
    margin-bottom: 25px;
    box-shadow: none;
    /* Subtle shadow */
}

.me-db-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.me-db-widget-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-weight: 600;
}

/* History List */
.me-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.me-history-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.me-history-item:last-child {
    border-bottom: none;
}

.me-history-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #666;
    flex-shrink: 0;
}

.me-history-content h4 {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
}

.me-history-content span {
    font-size: 0.8rem;
    color: #999;
}

.me-history-arrow {
    margin-left: auto;
    color: #ccc;
    font-size: 1.2rem;
}

/* My Reviews Compact */
.me-review-compact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.me-review-compact-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.me-review-compact-item:last-child {
    border-bottom: none;
}

/* Request Widget */
.me-req-widget-item {
    background: #f8f9fa;
    border-radius: var(--me-radius);
    padding: 15px;
    margin-bottom: 15px;
}

.me-req-badge {
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: calc(var(--me-radius) / 3);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.me-req-title {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

.me-req-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.me-req-progress {
    height: 4px;
    background: #e9ecef;
    border-radius: calc(var(--me-radius) / 6);
    margin-top: 10px;
    overflow: hidden;
}

.me-req-bar {
    height: 100%;
    background: #ffc107;
    width: 30%;
    /* Mock */
}

/* Adjust Sidebar Height for flexible content */
.me-dashboard-sidebar {
    display: flex;
    flex-direction: column;
}

/* Ensure menu takes available space but promo sits at bottom */
.me-dashboard-menu {
    flex: 1;
}

/* Icons Colors for Stats */
.me-stat-icon-bg.blue {
    background: #e7f5ff;
    color: #0d6efd;
}

.me-stat-icon-bg.pink {
    background: #fff0f6;
    color: #d6336c;
}

.me-stat-icon-bg.yellow {
    background: #fff9db;
    color: #fcc419;
}

.me-stat-icon-bg.purple {
    background: #f3f0ff;
    color: #7950f2;
}

/* Stats Cards Container */
.me-stats-cards-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Individual Stat Card */
.me-stat-card-new {
    background: #fff;
    border-radius: var(--me-radius);
    /* Rounded corners */
    padding: 20px;
    flex: 1;
    min-width: 200px;
    box-shadow: none;
    /* Subtle shadow */
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease;
}

/* Stat Card Header (Icon + Badge) */
.me-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

/* Stat Icon Circle */
.me-stat-icon-bg {
    width: 45px;
    height: 45px;
    border-radius: var(--me-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Stat Badge (e.g., +2 this month) */
.me-stat-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: calc(var(--me-radius) * 2);
    font-weight: 600;
}

.me-stat-badge.green {
    background: #d3f9d8;
    color: #2b8a3e;
}

.me-stat-badge.red {
    background: #ffe3e3;
    color: #c92a2a;
}

.me-stat-badge.gray {
    background: #f8f9fa;
    color: #868e96;
}

.me-stat-badge.yellow {
    background: #fff3cd;
    color: #856404;
}

/* Stat Values */
.me-stat-label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}

.me-stat-value {
    font-size: 1.75rem;
    /* Large number */
    font-weight: 700;
}

/* Sidebar Box */
.me-sidebar-box {
    background: white;
    padding: 25px;
    border-radius: var(--me-radius);
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

/* ==================================================================================
   Stitch Design System
   ================================================================================== */

/* Variables matching User Prompt (Tailwind Config) */
:root {
    --me-primary: #DF5B0F;
    /* Royal Blue */
    --me-bg-light: #F3F4F6;
    /* Gray 100 */
    --me-bg-dark: #111827;
    /* Gray 900 */
    --me-surface-light: #FFFFFF;
    --me-surface-dark: #1F2937;
    /* Gray 800 */

    --me-text-main: #111827;
    /* gray-900 */
    --me-text-muted: #4B5563;
    /* gray-600 */
    --me-border-light: #E5E7EB;
    /* gray-200 */
    --me-border-dark: #374151;
    /* gray-700 */

    --me-radius: 0.375rem;
    /* rounded-md */
}

/* Dark Mode Overrides (Class strategy) */
.dark,
[data-theme="dark"] {
    --me-bg-light: #111827;
    /* background-dark */
    --me-surface-light: #1F2937;
    /* surface-dark */
    --me-border-light: #374151;
    /* gray-700 */
    --me-text-main: #F3F4F6;
    /* gray-100 */
    --me-text-muted: #9CA3AF;
    /* gray-400 */
}

/* Base Form Styling overrides for Dark Mode context */
.me-stitch-form-card {
    background: var(--me-surface-light);
    border: 1px solid var(--me-border-light);
    box-shadow: none;
}

.me-stitch-input-field,
.me-stitch-select,
.me-stitch-textarea {
    background-color: #fff;
    border-color: #D1D5DB;
    color: #111827;
}

.dark .me-stitch-input-field,
.dark .me-stitch-select,
.dark .me-stitch-textarea {
    background-color: #1F2937;
    /* gray-800 */
    border-color: #4B5563;
    /* gray-600 */
    color: #F9FAFB;
}

.dark .me-stitch-input-field::placeholder,
.dark .me-stitch-textarea::placeholder {
    color: #9CA3AF;
    /* gray-400 */
}

/* Material Symbols Class */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Base Layout */
.me-stitch-container {
    max-width: 80rem;
    /* max-w-7xl */
    margin: 0 auto;
    padding: 2rem 0rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .me-stitch-container {
        /* flex-direction: row;  <-- Removed to prevent layout issues with wrapper */
    }
}

/* Specific Container for Form Pages (No Sidebar, Stacks Vertically) */
.me-stitch-form-page-container {
    max-width: 64rem;
    /* max-w-5xl */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Sidebar */
.me-stitch-sidebar {
    width: 100%;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .me-stitch-sidebar {
        width: 25%;
    }
}

.me-stitch-filter-box {
    background: var(--me-surface-light);
    border-radius: var(--me-radius);
    border: 1px solid var(--me-border-light);
    padding: 1rem;
    position: sticky;
    top: 1rem;
    box-shadow: none;
}

.me-stitch-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--me-border-light);
}

.me-stitch-filter-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--me-text-main);
}

.me-stitch-btn-clear {
    font-size: 0.875rem;
    color: var(--me-primary);
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
}

/* Filter Sections */
.me-stitch-filter-section {
    margin-bottom: 1.5rem;
}

.me-stitch-filter-title {
    font-size: 1rem;
    /* font-medium in Tailwind usually base for headers */
    color: var(--me-primary);
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: block;
    font-weight: 600;
}

/* Inputs */
.me-stitch-input {
    width: 100%;
    padding: 0rem;
    font-size: 0.875rem;
    border: 1px solid var(--me-border-light);
    border-radius: var(--me-radius);
    background: #fff;
}

#me-order-filter {
    padding: 0rem 1rem;
    font-size: 0.75rem;
}

.me-stitch-input:focus {
    border-color: var(--me-primary);
    outline: none;
    box-shadow: none;
}

/* Nav List */
.me-stitch-nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 0.5rem;
    color: #4B5563;
    /* gray-600 */
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: color 0.2s;
}

.me-stitch-nav-btn:hover {
    color: var(--me-primary);
}

.me-stitch-nav-btn.active {
    background-color: #F9FAFB;
    /* gray-50 */
    color: var(--me-text-main);
    font-weight: 500;
}

/* Checkboxes */
.me-stitch-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    /* gray-700 */
}

.me-stitch-checkbox {
    height: 1.25rem;
    width: 1.25rem;
    border-radius: 0.25rem;
    border: 1px solid #D1D5DB;
    color: var(--me-primary);
}

/* Main Content */
.me-stitch-main {
    width: 100%;
}

@media (min-width: 1024px) {
    .me-stitch-main {
        flex: 1;
        /* Automatically fill remaining space */
        width: auto;
    }
}

.me-stitch-breadcrumbs {
    font-size: 0.825rem;
    color: var(--me-text-muted);
    margin-bottom: 0.5rem;
}

.me-stitch-results-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;

}

.me-no-results {
    text-align: center;
}

@media (min-width: 768px) {
    .me-stitch-results-controls {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.me-stitch-controls-box {
    border-radius: var(--me-radius);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    margin-bottom: 20px;
}

/* Cards */
.me-stitch-card {
    background: var(--me-surface-light);
    border: 1px solid var(--me-border-light);
    border-radius: var(--me-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.me-stitch-card:hover {
    box-shadow: none;
}

.me-stitch-card-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .me-stitch-card-content {
        flex-direction: row;
    }
}

.me-stitch-thumb {
    width: 100%;
    height: 5rem;
    /* 24 * 0.25rem = 6rem */
    flex-shrink: 0;
    background-color: #F3F4F6;
    border-radius: var(--me-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    background-size: cover;
    background-position: center;
}

@media (min-width: 768px) {
    .me-stitch-thumb {
        width: 5rem;
    }
}

.me-stitch-card-body {
    flex-grow: 1;
}

.me-stitch-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.me-stitch-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

.me-stitch-card-title a {
    color: inherit;
    text-decoration: none;
}

.me-stitch-card-title a:hover {
    color: var(--me-primary);
}

.me-stitch-tags {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.me-stitch-tag {
    background: #F3F4F6;
    color: #4B5563;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.me-stitch-status {
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.me-stitch-status.open {
    color: #16A34A;
}

.me-stitch-status.closed {
    color: #DC2626;
}

.me-stitch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.me-stitch-btn-action {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    height: 2rem;
}

.me-stitch-btn-action:hover {
    background-color: #F9FAFB;
}

.me-stitch-btn-whatsapp {
    background-color: #22C55E;
    color: #fff;
    border-color: transparent;
}

.me-stitch-btn-whatsapp:hover {
    color: #fff;
}

.me-stitch-btn-whatsapp:hover {
    background-color: #16A34A;
}

/* Pagination */
/* Pagination */
.me-stitch-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    isolation: isolate;
}

/* Use higher specificity to override .me-page-link */
.me-stitch-pagination .me-stitch-page-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 2.5rem;
    /* Fixed width for squares */
    height: 2.5rem;
    border: 1px solid #D1D5DB;
    background-color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
    text-decoration: none;
    cursor: pointer;
    margin-left: -1px;
    /* Merge borders */
    border-radius: 0;
    /* Reset global radius */
    box-sizing: border-box;
}

/* Override .me-page-link.prev specificity */
.me-stitch-pagination .me-stitch-page-link.prev,
.me-stitch-pagination .me-stitch-page-link.next {
    width: 2.5rem;
    padding: 0;
}

/* Fix first child start */
.me-stitch-pagination .me-stitch-page-link:first-child {
    margin-left: 0;
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.me-stitch-pagination .me-stitch-page-link:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.me-stitch-pagination .me-stitch-page-link:hover {
    background-color: #F9FAFB;
    color: #374151;
    z-index: 2;
    text-decoration: none;
}

.me-stitch-pagination .me-stitch-page-link:focus {
    z-index: 3;
    outline: 2px solid var(--me-primary);
    outline-offset: -2px;
}

.me-stitch-pagination .me-stitch-page-link.active {
    background-color: var(--me-primary);
    border-color: var(--me-primary);
    color: #fff;
    z-index: 10;
}

/* Disabled State */
.me-stitch-pagination .me-stitch-page-link.disabled {
    cursor: default;
    background-color: #fff;
    color: #D1D5DB;
    pointer-events: none;
}

/* Dots */
.me-stitch-pagination .me-stitch-page-link.dots {
    cursor: default;
    background-color: #fff;
    color: #6B7280;
    pointer-events: none;
}

/* =========================================
   Toggle Switch (Stitch)
   ========================================= */
.me-toggle-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.me-toggle-control input {
    display: none;
}

.me-toggle-slider {
    width: 2.75rem;
    height: 1.5rem;
    background-color: #E5E7EB;
    /* gray-200 */
    border-radius: 9999px;
    position: relative;
    transition: background-color 0.2s;
}

.me-toggle-slider::before {
    content: '';
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    background: white;
    border-radius: 50%;
    top: 0.125rem;
    left: 0.125rem;
    transition: transform 0.2s;
    box-shadow: none;
}

input:checked+.me-toggle-slider {
    background-color: var(--me-primary);
}

input:checked+.me-toggle-slider::before {
    transform: translateX(1.25rem);
}

/* =========================================
   Active Filter Chips (Stitch)
   ========================================= */
.me-filter-chip {
    display: inline-flex;
    align-items: center;
    background-color: #FFEADD;
    /* indigo-50 like */
    color: var(--me-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    gap: 0.5rem;
}

.me-filter-chip .material-icons {
    font-size: 1.1rem !important;
    cursor: pointer;
    color: var(--me-primary);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.me-filter-chip .material-icons:hover {
    opacity: 1;
}

/* =========================================
   Stitch Form System (Add Listing)
   ========================================= */

/* Form Wrapper */
.me-stitch-form-card {
    background: var(--me-surface-light);
    border: 1px solid var(--me-border-light);
    border-radius: var(--me-radius);
    padding: 2rem;
    box-shadow: none;
}

.me-stitch-form-header {
    margin-bottom: 2rem;
}

.me-stitch-form-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--me-text-main);
    margin-bottom: 0.5rem;
}

.me-stitch-section {
    margin-bottom: 2rem;
}

.me-stitch-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--me-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--me-border-light);
}

/* Grid System */
.me-stitch-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .me-stitch-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .me-stitch-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .me-stitch-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Inputs */
.me-stitch-form-group {
    margin-bottom: 0;
    /* managed by grid gap usually */
}

.me-stitch-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    /* gray-700 */
    margin-bottom: 0.25rem;
}

.me-stitch-input-field,
.me-stitch-select,
.me-stitch-textarea {
    display: block;
    width: 100%;
    border-radius: var(--me-radius);
    border: 1px solid #D1D5DB;
    /* gray-300 */
    background: #fff;
    font-size: 0.875rem;
    color: var(--me-text-main);
    box-shadow: none;
}

.me-stitch-input-field:focus,
.me-stitch-select:focus,
.me-stitch-textarea:focus {
    border-color: var(--me-primary);
    outline: none;
    box-shadow: none;
}

.me-stitch-textarea {
    resize: vertical;
}

/* Disabled Input */
.me-stitch-input-field:disabled,
.me-stitch-select:disabled {
    background-color: #F3F4F6;
    cursor: not-allowed;
    color: #9CA3AF;
}

/* Amenities Checkboxes */
.me-stitch-checkbox-group {
    display: flex;
    align-items: center;
}

.me-stitch-checkbox-group input[type="checkbox"] {
    height: 1rem;
    width: 1rem;
    color: var(--me-primary);
    border-radius: 0.25rem;
    border: 1px solid #D1D5DB;
    margin-right: 0.5rem;
}

/* Hours */
.me-stitch-hours-row {
    display: flex;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--me-border-light);
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .me-stitch-hours-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.me-stitch-day-label {
    width: 6rem;
    font-weight: 600;
    color: var(--me-text-main);
    padding-left: 10px;
}

/* Upload Zone */
.me-stitch-upload-zone {
    border: 2px dashed #D1D5DB;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    background: #fff;
    position: relative;
}

.dark .me-stitch-upload-zone {
    background: #1F2937;
    border-color: #4B5563;
}

.me-stitch-upload-zone:hover {
    background-color: #F9FAFB;
}

.dark .me-stitch-upload-zone:hover {
    background-color: #374151;
    /* gray-700 */
}

.me-stitch-upload-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.me-stitch-upload-icon {
    font-size: 2.25rem;
    color: #9CA3AF;
    margin-bottom: 0.5rem;
}

/* Buttons */
.me-stitch-btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.625rem 1.5rem;
    border-radius: var(--me-radius);
    background-color: var(--me-primary);
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: none;
}

.me-stitch-btn-primary:hover {
    background-color: var(--me-primary-dark);
    /* blue-700 */
}

.me-stitch-btn-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.625rem 1.5rem;
    border-radius: var(--me-radius);
    background-color: #E5E7EB;
    /* gray-200 */
    color: #374151;
    /* gray-700 */
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

.dark .me-stitch-btn-secondary {
    background-color: #374151;
    /* gray-700 */
    color: #E5E7EB;
    /* gray-200 */
}

.me-stitch-btn-secondary:hover {
    background-color: #D1D5DB;
}

.dark .me-stitch-btn-secondary:hover {
    background-color: #4B5563;
    /* gray-600 */
}

.me-stitch-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #D1D5DB;
    border-radius: var(--me-radius);
    background: white;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    box-shadow: none;
}

.dark .me-stitch-btn-outline {
    background: #374151;
    /* gray-700 */
    border-color: #4B5563;
    /* gray-600 */
    color: white;
}

.me-stitch-btn-outline:hover {
    background-color: #F9FAFB;
}

.dark .me-stitch-btn-outline:hover {
    background-color: #4B5563;
    /* gray-600 */
}

.me-stitch-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--me-border-light);
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .me-stitch-footer {
        flex-direction: row;
        justify-content: flex-end;
    }
}

/* =========================================
   TomSelect / Select2 Stitch Theme
   ========================================= */
.ts-control {
    border: 1px solid #D1D5DB !important;
    border-radius: var(--me-radius) !important;
    padding: 0.5rem 0.75rem !important;
    box-shadow: none !important;
    background-image: none !important;
    min-height: 42px !important;
}

.ts-control:focus-within {
    border-color: var(--me-primary) !important;
    box-shadow: none !important;
}

/* Items (Tags) */
.ts-control .item {
    background-color: #FFECE1 !important;
    /* blue-100 */
    color: var(--me-primary) !important;
    /* blue-800 */
    border: none !important;
    border-radius: 0.25rem !important;
    padding: 0.125rem 0.5rem !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
}

.ts-control .item.active {
    background-color: #FFECE1 !important;
}

.ts-wrapper.multi .ts-control>div {
    margin: 0 4px 4px 0 !important;
}

/* Dropdown */
.ts-dropdown {
    border: 1px solid #E5E7EB !important;
    border-radius: 0.375rem !important;
    box-shadow: none !important;
    margin-top: 4px !important;
}

.ts-dropdown .option {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
    color: #1F2937 !important;
}

.ts-dropdown .option.active {
    background-color: #F3F4F6 !important;
    color: #111827 !important;
}

/* =========================================
   Custom Form Controls (Tailwind Replica)
   ========================================= */

/* Checkbox */
.me-stitch-form-card input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1rem;
    /* h-4 */
    height: 1rem;
    /* w-4 */
    border: 1px solid #D1D5DB;
    /* gray-300 */
    border-radius: 0.25rem;
    /* rounded */
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    margin-right: 10px;
}

.me-stitch-form-card input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em white;
    background-color: white;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.me-stitch-form-card input[type="checkbox"]:checked {
    background-color: var(--me-primary);
    border-color: var(--me-primary);
}

.me-stitch-form-card input[type="checkbox"]:checked::before {
    transform: scale(1);
}

/* Radio */
.me-stitch-form-card input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1rem;
    /* h-4 */
    height: 1rem;
    /* w-4 */
    border: 1px solid #D1D5DB;
    border-radius: 50%;
    display: grid;
    place-content: center;
    cursor: pointer;
}

.me-stitch-form-card input[type="radio"]::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em white;
    background-color: white;
}

.me-stitch-form-card input[type="radio"]:checked {
    background-color: var(--me-primary);
    border-color: var(--me-primary);
}

.me-stitch-form-card input[type="radio"]:checked::before {
    transform: scale(1);
}

/* Dark Mode Form Controls */
.dark .me-stitch-form-card input[type="checkbox"],
.dark .me-stitch-form-card input[type="radio"] {
    background-color: #1F2937;
    /* gray-800 */
    border-color: #4B5563;
    /* gray-600 */
}

.dark .me-stitch-form-card input[type="checkbox"]:checked,
.dark .me-stitch-form-card input[type="radio"]:checked {
    background-color: var(--me-primary);
    border-color: var(--me-primary);
}

/* Hours Flex Layout (Reference Match) */
.me-stitch-hours-flex-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--me-border-light);
    margin-bottom: 0.75rem;
}

/* Remove last border */
.me-stitch-hours-flex-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

@media (min-width: 768px) {
    .me-stitch-hours-flex-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
}

.me-stitch-day-label {
    font-weight: 600;
    color: var(--me-text-main);
    width: 6rem;
    /* w-24 approx */
    flex-shrink: 0;
}

.me-stitch-closed-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--me-text-muted);
    font-size: 0.875rem;
    white-space: nowrap;
}

.me-stitch-hours-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-grow: 1;
    /* Allow it to take space if needed, or center */
    justify-content: center;
    /* Center times in their space */
}

/* Add Button properly styled as link/icon */
.me-button-add-hours {
    color: var(--me-primary);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.me-button-add-hours:hover {
    text-decoration: underline;
}

/* Hours Grid Clean Up */
.me-stitch-hours-grid-row {
    display: grid;
    gap: 1rem;
    border-bottom: 1px solid var(--me-border-light);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .me-stitch-hours-grid-row {
        grid-template-columns: 100px 1fr;
        align-items: center;
    }
}

.me-stitch-hours-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* =========================================
   8. Mobile Filter Sidebar
   ========================================= */
.me-mobile-filter-btn {
    background: #fff;
    border: 1px solid var(--me-border);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--me-text);
    cursor: pointer;
}

.me-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.me-sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 900px) {

    /* Show Toggle Button */
    #me-mobile-filter-toggle {
        display: inline-flex !important;
    }

    /* Hide Controls Box Default items if needed or adjust layout */
    .me-stitch-controls-box {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Sidebar Off-Canvas */
    .me-stitch-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        /* Fully Hidden */
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 1000;

        /* Flexbox Layout for Sticky Footer */
        display: flex;
        flex-direction: column;

        box-sizing: border-box;
        transition: transform 0.3s ease-in-out;
        border: none;
        border-radius: 0;
        padding: 0;
        /* Remove padding from parent */
    }

    /* Scrollable Content Area */
    .me-stitch-filter-box {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
        padding-bottom: 20px;
    }

    .me-stitch-sidebar.open {
        transform: translateX(0);
        /* Slide in */
    }

    /* Apply Button Container - Natural Flex Footer */
    .me-mobile-apply-btn-container {
        display: block !important;
        width: 100%;
        background: white;
        padding: 15px;
        border-top: 1px solid #eee;
        z-index: 1001;
        box-sizing: border-box;
        flex-shrink: 0;
        /* Don't shrink */
    }

    /* Remove old close button if exists */
    #me-mobile-filter-close {
        display: none !important;
    }

    /* TomSelect: Hide disabled options to mimic "remove" behavior */
    .ts-dropdown .option.disabled {
        display: none !important;
    }

    /* Adjust Content Layout since sidebar is out of flow */
    .me-stitch-content-wrapper {
        display: block !important;
        /* Stack content */
    }

    /* Single Listing Responsiveness */
    .me-stitch-main-grid {
        display: flex !important;
        flex-direction: column;
    }

    /* Flatten content column to reorder children */
    .me-stitch-col-main {
        display: contents !important;
    }

    /* Define Order - Mobile Priority: About -> Sidebar (Hours/Map) -> Reviews -> Related -> Gallery */
    #sobre {
        order: 1;
    }

    .me-stitch-col-sidebar {
        order: 2;
        width: 100% !important;
        position: static !important;
    }

    #avaliacoes {
        order: 3;
    }

    #relacionados {
        order: 4;
    }

    #fotos {
        order: 5;
    }

    /* Styling */
    #avaliacoes .me-stitch-card,
    #relacionados .me-stitch-card {
        background: #f3f4f6;
    }

    #relacionados {
        order: 5;
    }

    #avaliacoes .me-stitch-card,
    #relacionados .me-stitch-card {
        background: #f3f4f6;
        /* Subtle distinction or keep white */
    }

    #avaliacoes .me-stitch-card {
        background: #cccccc;
    }

    .me-header-content {
        flex-direction: column !important;
    }

    .me-header-logo {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .me-sidebar-col {
        width: 100% !important;
        position: static !important;
    }


    .me-stitch-main {
        width: 100%;
    }
}

/* =========================================
   9. New Stitch Design (Clean Implementation)
   ========================================= */

:root {
    --me-stitch-primary: #C62828;
    /* Red from logo */
    --me-stitch-primary-bg: #FEF2F2;
    /* red-50 */
    --me-stitch-text-main: #111827;
    /* gray-900 */
    --me-stitch-text-muted: #6B7280;
    /* gray-500 */
    --me-stitch-bg: #F3F4F6;
    --me-stitch-card-bg: #FFFFFF;
    --me-stitch-border: #E5E7EB;
}

.dark {
    --me-stitch-bg: #111827;
    --me-stitch-card-bg: #1F2937;
    --me-stitch-text-main: #F9FAFB;
    --me-stitch-text-muted: #9CA3AF;
    --me-stitch-border: #374151;
}

/* Base Layout */
.me-stitch-body {
    background-color: var(--me-stitch-bg);
    color: var(--me-stitch-text-main);
    font-family: 'Inter', sans-serif;
}

.me-stitch-container {
    max-width: 80rem;
    /* max-w-7xl */
    margin: 0 auto;
    padding: 1rem 1rem;
}

/* Breadcrumbs */
.me-stitch-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.825rem;
    color: var(--me-stitch-text-muted);
    margin-bottom: 1rem;
    list-style: none;
    padding: 0;
}

.me-stitch-breadcrumb li {
    display: flex;
    align-items: center;
}

.me-stitch-breadcrumb a {
    color: var(--me-stitch-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.me-stitch-breadcrumb a:hover {
    color: var(--me-stitch-primary);
}

.me-stitch-breadcrumb span.separator {
    margin: 0 0.5rem;
}

/* Header Card */
.me-stitch-card {
    background-color: var(--me-stitch-card-bg);
    border: 1px solid var(--me-stitch-border);
    border-radius: 0.5rem;
    box-shadow: none;
    padding: 1rem;
    margin-bottom: 1rem;
}

.me-stitch-header-inner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.me-stitch-logo {
    width: 6rem;
    height: 6rem;
    flex-shrink: 0;
    background-color: white;
    border: 1px solid var(--me-stitch-border);
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.me-stitch-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.me-stitch-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--me-stitch-text-main);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .me-stitch-title {
        font-size: 1.875rem;
    }

    .me-stitch-logo {
        width: 6rem;
        height: 6rem;
    }
}



/* Tags */
.me-stitch-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.me-stitch-tag {
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.me-tag-blue {
    background-color: #DBEAFE;
    color: #1D4ED8;
}

.me-tag-gray {
    background-color: #F3F4F6;
    color: #374151;
}

.me-text-green {
    color: #16a34a;
    font-weight: 700;
}

.me-text-red {
    color: #dc2626;
    font-weight: 700;
}

/* Header Tabs & Actions */
.me-stitch-nav-row {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--me-stitch-border);
    display: none;
    /* Mobile hidden by default logic, but we want flex on MD */
}

@media (min-width: 768px) {
    .me-stitch-nav-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.me-stitch-tabs {
    display: flex;
    gap: 2rem;
}

.me-stitch-tab {
    padding: 0.5rem 0.25rem;
    border-bottom: 2px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--me-stitch-text-muted);
    text-decoration: none;
}

.me-stitch-tab:hover {
    color: var(--me-stitch-text-main);
}

.me-stitch-tab.active {
    color: var(--me-stitch-primary);
    border-bottom-color: var(--me-stitch-primary);
}

/* Mobile Actions Grid */
.me-stitch-mobile-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--me-stitch-border);
    padding-top: 1rem;
}

@media (min-width: 768px) {
    .me-stitch-mobile-actions {
        display: none;
    }
}

.me-mobile-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: none;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    color: var(--me-stitch-text-main);
    text-decoration: none;
}

.me-mobile-action-btn:hover {
    background-color: var(--me-stitch-bg);
}

.me-mobile-action-btn span {
    font-size: 1.25rem;
    border-radius: 50px;
    border: 1px solid #ccc;
    padding: 10px;
}

/* Icon size */
.me-mobile-action-btn div {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Main Grid */
.me-stitch-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .me-stitch-main-grid {
        grid-template-columns: 2fr 1fr;
        /* 2/3 and 1/3 roughly */
        gap: 2rem;
    }
}

.me-stitch-col-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.me-stitch-col-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Content Sections */
.me-stitch-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--me-stitch-text-main);
    margin-bottom: 1.5rem;
}

/* Amenities Grid */
.me-stitch-amenities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem 2rem;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .me-stitch-amenities-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.me-stitch-amenity-item {
    display: flex;
    align-items: center;
    color: var(--me-stitch-text-muted);
}

.me-stitch-amenity-item span {
    margin-right: 0.5rem;
    color: #22c55e;
}

/* Green check */

/* Gallery Scroll */
.me-stitch-gallery-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    /* Firefox */
}

.me-stitch-gallery-scroll::-webkit-scrollbar {
    display: none;
}

.me-stitch-gallery-item {
    flex-shrink: 0;
    width: 16rem;
    height: 9.375rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: var(--me-stitch-bg);
}

.me-stitch-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.me-stitch-gallery-item:hover img {
    transform: scale(1.05);
}

/* Hours Sidebar */
.me-stitch-hours-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--me-stitch-border);
    font-size: 0.875rem;
}

.me-stitch-hours-row:last-child {
    border-bottom: none;
}

.me-hour-day {
    font-weight: 500;
    color: var(--me-stitch-text-main);
    width: 40%;
}

.me-hour-time {
    color: var(--me-stitch-text-muted);
    text-align: right;
    width: 60%;
}

/* Sidebar Info Blocks */
.me-stitch-info-block {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.me-stitch-info-icon {
    flex-shrink: 0;
    margin-top: 0.25rem;
    color: #3b82f6;
    /* blue-500 */
}

.me-stitch-info-content {
    margin-left: 0.75rem;
}

.me-stitch-info-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--me-stitch-text-main);
}

.me-stitch-info-text {
    font-size: 0.875rem;
    color: var(--me-stitch-text-muted);
}

.me-stitch-info-link {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--me-text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: 0.25rem;
}

.me-stitch-info-link:hover {
    color: var(--me-text-muted);

}

/* Buttons Grid */
.me-stitch-btn-row {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.me-stitch-btn-flex {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

.me-btn-light {
    background-color: var(--me-primary-light);
    color: var(--me-primary);
    display: inline-flex;
    align-items: center;
}

.me-btn-map {
    background-color: var(--me-primary-light);
    color: var(--me-primary);
    display: inline-flex;
    align-items: center;
    padding: 5px;
    border-radius: var(--me-radius);
}

.me-btn-light:hover {
    background-color: var(--me-stitch-bg);
    color: var(--me-primary);
}

.me-btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
}

.me-btn-whatsapp:hover {
    background-color: #20bd5a;
    color: white;
}

/* Related Grid */
.me-stitch-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .me-stitch-related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.me-stitch-related-card {
    display: flex;
    /* gray-50 */
    border-radius: 0.5rem;
    text-decoration: none;
}

.me-stitch-related-card:hover {
    box-shadow: none;
}

.me-stitch-related-img {
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: white;
    border: 1px solid #E5E7EB;
}

/* Dashboard Card Style */
.me-dashboard-card {
    background: var(--me-white);
    padding: 30px;
    border-radius: var(--me-radius);
    border: 1px solid var(--me-border);
    max-width: 800px;
}

/* Verified Icon */
.me-verified-icon {
    color: #3b82f6;
    /* Blue check */
    font-size: 0.9em;
    vertical-align: middle;
    margin-left: 6px;
    display: inline-block;
}

.me-stitch-card-title .me-verified-icon,
.me-stitch-related-card .me-verified-icon {
    font-size: 16px;
    margin-top: -2px;
}

.me-stitch-title .me-verified-icon {
    font-size: 1.5rem;
    margin-top: -4px;
}

/* --- Dashboard Requests Redesign --- */

/* Page Header */
.me-page-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.me-page-title {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    /* Dark black/blue */
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.me-page-subtitle {
    font-size: 15px;
    color: #6b7280;
    /* Gray */
    margin: 0;
    font-weight: 400;
}

.me-btn-primary-add {
    background-color: var(--me-primary, #007bff);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    /* Fully rounded */
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.me-btn-primary-add:hover {
    background-color: #0069d9;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}

.me-btn-primary-add .material-icons {
    font-size: 18px;
}

.me-requests-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f1f1;
}

/* Search */
.me-search-form {
    flex: 1;
    min-width: 250px;
}

.me-search-input-wrapper {
    position: relative;
    width: 100%;
}

.me-dash-search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    /* Larger padding */
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    /* Slightly less rounded than pill, or match image? Image looked like standard rounded input */
    background: #fff;
    /* White background */
    font-size: 14px;
    color: #1f2937;
    outline: none;
    transition: all 0.2s;
}

.me-dash-search-input:focus {
    background: #fff;
    border-color: var(--me-primary, #007bff);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.me-search-icon {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 20px;
    pointer-events: none;
}

/* Active Heart Button */
.me-btn-heart.active {
    color: #ef4444 !important;
    /* Red */
}

.me-btn-heart.active .material-icons {
    color: #ef4444 !important;
}

/* Filter Pills */
.me-filter-pills {
    display: flex;
    gap: 8px;
    align-items: center;
}

.me-pill-tab {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.me-pill-tab:hover {
    background: #e5e7eb;
    color: #1f2937;
    text-decoration: none;
}

.me-pill-tab.active {
    background: var(--me-primary, #007bff);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2, 5px rgba(0, 123, 255, 0.3);
}

/* Sort Dropdown */
.me-sort-dropdown {
    position: relative;
}

.me-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.me-sort-btn .material-icons {
    font-size: 18px;
    color: #888;
}

/* Table Redesign */
.me-table-responsive {
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f1f1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    padding: 5px;
}

.me-listings-table.me-table-redesign {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.me-table-redesign th {
    text-align: left;
    padding: 15px 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #9ca3af;
    border-bottom: 1px solid #f3f4f6;
    letter-spacing: 0.5px;
    background: transparent;
}

.me-table-redesign td {
    padding: 15px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #f9f9f9;
    color: #374151;
    font-size: 14px;
    background: transparent;
}

.me-table-redesign tr:last-child td {
    border-bottom: none;
}

.me-table-redesign tr:hover td {
    background-color: #fbfbfb;
}

/* Table Cols */
.me-row-flex {
    display: flex;
    align-items: center;
    gap: 15px;
}

.me-listing-thumb-round {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: cover;
    background: #eee;
}

.me-listing-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
    font-size: 14px;
    line-height: 1.2;
}

.me-listing-cat {
    font-size: 12px;
    color: #6b7280;
}

/* Status Pills */
.me-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.me-status-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
    background: currentColor;
}

.me-status-pill.green {
    background-color: #d1fae5;
    color: #059669;
}

.me-status-pill.yellow {
    background-color: #fef3c7;
    color: #d97706;
}

.me-status-pill.gray {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* Actions */
.me-col-actions {
    white-space: nowrap;
    text-align: right;
}

.me-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #9ca3af;
    text-decoration: none;
    margin-left: 5px;
    transition: color 0.2s;
}

.me-action-icon:hover {
    color: var(--me-primary, #007bff);
}

.me-action-icon .material-icons {
    font-size: 20px;
}

.me-btn-promote {
    background: #eff6ff !important;
    border: 1px solid #dbeafe !important;
    color: var(--me-primary, #2563eb) !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    transition: all 0.2s;
}

.me-btn-promote:hover {
    background: var(--me-primary, #2563eb) !important;
    color: #fff !important;
    border-color: var(--me-primary, #2563eb) !important;
}

.me-btn-promote .material-icons {
    font-size: 16px;
    margin-right: 4px;
    transform: rotate(-15deg);
}

/* Pagination Footer */
.me-pagination-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.me-pagination-info {
    font-size: 13px;
    color: #6b7280;
}

.me-pagination-info strong {
    color: #111827;
}

.me-pagination-pages {
    display: flex;
    gap: 5px;
}

.me-page-num,
.me-page-nav {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.me-page-num:hover,
.me-page-nav:hover {
    background: #f9f9f9;
    border-color: #ddd;
    text-decoration: none;
    color: #333;
}

.me-page-num.active {
    background: var(--me-primary, #2563eb);
    color: #fff;
    border-color: var(--me-primary, #2563eb);
}

.me-pag-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    color: #aaa;
}

/* =========================================
   8. Product Catalog (Frontend & Dashboard)
   ========================================= */

.me-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.me-catalog-item {
    background: #fff;
    border: 1px solid var(--me-border);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.2s;
}

.me-catalog-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.me-catalog-thumb {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.me-catalog-info {
    padding: 15px;
}

.me-catalog-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 5px;
    line-height: 1.3;
}

.me-catalog-price {
    font-weight: 700;
    color: var(--me-primary);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.me-catalog-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #25D366;
    /* WhatsApp Green */
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
    border: none;
    width: 100%;
    cursor: pointer;
}

.me-catalog-btn:hover {
    background: #1ebc57;
    color: #fff;
}

/* Dashboard Product List */
.me-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.me-dashboard-table th,
.me-dashboard-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.me-dashboard-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.me-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #555;
    text-decoration: none;
    margin-right: 5px;
}

.me-icon-btn:hover {
    background: #e5e7eb;
    color: #000;
}

.me-icon-btn.edit {
    color: #2563eb;
}

.me-icon-btn.delete {
    color: #dc3545;
}

/* Company Selector */
.me-company-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.me-company-card-select {
    display: block;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
    text-align: center;
}

.me-company-card-select:hover {
    border-color: var(--me-primary);
    background: #fdfdfd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.me-product-form-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    max-width: 600px;
}

/* Skeleton / Lazy Load */
.bare-skeleton {
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.bare-skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.me-skeleton-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.me-skeleton-card {
    display: flex;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: var(--me-radius);
    padding: 20px;
    gap: 20px;
    height: 220px;
}

.me-skeleton-thumb {
    width: 300px;
    height: 100%;
    background: #e0e0e0;
    border-radius: 8px;
    flex-shrink: 0;
}

.me-skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.me-skeleton-title {
    width: 60%;
    height: 24px;
    margin-bottom: 15px;
}

.me-skeleton-line {
    width: 100%;
    height: 12px;
    margin-bottom: 8px;
}

.me-skeleton-line.short {
    width: 40%;
}

@media (max-width: 900px) {
    .me-skeleton-card {
        flex-direction: column;
        height: auto;
    }

    .me-skeleton-thumb {
        width: 100%;
        height: 180px;
    }
}

/* =========================================
   Mobile Filter & Controls Layout (New)
   ========================================= */

.me-stitch-input {
    border: 1px solid var(--me-border);
    border-radius: var(--me-radius);
    background-color: #fff;
    color: var(--me-text);
    font-size: 0.95rem;
    height: 42px;
    /* Consistent height for desktop too */
}

/* Main Container: Results on Left, Controls on Right */
.me-stitch-controls-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Right Group: Filter Button (Mobile) + Sort Dropdown */
.me-controls-right-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {

    /* Stack container: Results on top, Controls below */
    .me-stitch-controls-box {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }

    /* Make Right Group Full Width for spacing */
    .me-controls-right-group {
        width: 100%;
        justify-content: space-between;
        /* Filter Left, Sort Right */
    }

    /* Show Filter Button on Mobile (Override inline style) */
    #me-mobile-filter-toggle {
        display: flex !important;
        margin-right: 0 !important;
        /* Ensure it looks like a button */
        background-color: var(--me-white);
        border: 1px solid var(--me-border);
        color: var(--me-text);
        padding: 0 16px;
        /* Horizontal padding, height set below */
        border-radius: var(--me-radius);
        font-weight: 500;
        font-size: 0.95rem;
        box-shadow: var(--me-shadow);
        height: 42px;
        /* Fixed Height */
        line-height: normal;
        /* Center text */
    }

    /* Force Select to match Button */
    #me-order-filter {
        height: 42px !important;
        /* Match button height */
        padding: 0 30px 0 12px !important;
        /* Padding for text + dropdown arrow space */
        line-height: 40px !important;
        /* Vertically align text */
        border: 1px solid var(--me-border) !important;
        border-radius: var(--me-radius) !important;
        background-color: var(--me-white) !important;
        font-size: 0.95rem !important;
        box-shadow: var(--me-shadow) !important;
    }

    #me-mobile-filter-toggle:active {
        background-color: #f3f4f6;
    }
}

/* =========================================
   Listing Card Layout Fixes
   ========================================= */
.me-stitch-card-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.me-stitch-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--me-radius);
    background-color: #f3f4f6;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.me-stitch-card-body {
    flex: 1;
    min-width: 0;
    /* Prevent flex overflow */
}

/* Header inside card */
.me-stitch-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.me-stitch-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.3;
    color: var(--me-text);
}

.me-stitch-card-title a {
    color: inherit;
    text-decoration: none;
}

.me-stitch-card-title a:hover {
    color: var(--me-primary);
}

/* Tags & Badges */
.me-stitch-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.me-stitch-tag {
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.75rem;
    padding: 1px 6px;
    border-radius: 6px;
    font-weight: 600;
}

.me-stitch-status {
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
}

.me-stitch-status.open {
    color: #16a34a;
    background: #dcfce7;
}

.me-stitch-status.closed {
    color: #dc2626;
    background: #fee2e2;
}

/* Actions Footer */
.me-stitch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0px;
    /* Added margin for separation */
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
    width: 100%;
    /* Ensure full width */
}

.me-stitch-btn-action {
    font-size: 0.85rem;
    color: var(--me-text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.me-stitch-btn-action:hover {
    background: #f9fafb;
    color: var(--me-primary);
}

.me-stitch-btn-whatsapp {
    background-color: #16a34a;
    /* Green Background */
    color: #ffffff;
    /* White Text */
}

.me-stitch-btn-whatsapp:hover {
    background-color: #15803d;
    color: #ffffff;
}

@media (max-width: 768px) {
    .me-stitch-thumb {
        width: 90px;
        height: 90px;
    }

    .me-stitch-card-content {
        align-items: flex-start;
        /* Ensure it remains row (inherited from above) or force it if needed */
        flex-direction: row;
    }

    .me-stitch-card-title {
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    .me-stitch-card {
        padding: 0.6rem;
    }

    .me-stitch-address {
        font-size: 0.75rem !important;
        margin-bottom: 0 !important;
    }

    .me-search-title {
        font-size: 1.2rem !important;
        margin-bottom: 0 !important;
    }
}

/* =========================================
   14. Profile Strength Widget
   ========================================= */
.bare-profile-strength-widget {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    font-size: 0.9rem;
}

.bare-strength-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bare-strength-label {
    font-weight: 700;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
}

.bare-strength-label.red {
    color: #dc3545;
    background: #fad7db;
}

.bare-strength-label.yellow {
    color: #856404;
    background: #fff3cd;
}

.bare-strength-label.green {
    color: #0f5132;
    background: #d1e7dd;
}

.bare-progress-track {
    background: #e9ecef;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.bare-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.bare-progress-fill.red {
    background: #dc3545;
}

.bare-progress-fill.yellow {
    background: #ffc107;
}

.bare-progress-fill.green {
    background: #198754;
}

.bare-strength-missing {
    margin-top: 10px;
}

.bare-missing-title {
    font-weight: 600;
    color: #495057;
    margin: 0 0 5px 0;
    font-size: 0.85rem;
}

.bare-strength-missing ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bare-strength-missing li {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
}

.material-icon-dot {
    font-size: 14px;
    margin-right: 4px;
    line-height: 1;
}

.bare-strength-success {
    background: #d1e7dd;
    color: #0f5132;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* Report Error Modal */
.bare-report-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.bare-report-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.bare-report-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 450px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 10000;
}

.bare-report-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.25rem;
    color: #111827;
}

.bare-report-content p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.bare-report-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-size: 24px;
    line-height: 1;
    color: #9ca3af !important;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.bare-report-close:hover {
    background-color: #f3f4f6 !important;
    color: #111827 !important;
}

.bare-report-field {
    margin-bottom: 15px;
}

.bare-report-field label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #374151;
}

.bare-report-field select,
.bare-report-field textarea,
.bare-report-field input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
}

.bare-report-field textarea {
    resize: vertical;
}

.bare-report-btn {
    display: inline-flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    margin-top: 10px;
    transition: color 0.2s;
}

.bare-report-btn:hover {
    color: #dc2626;
}

#bare-report-success {
    text-align: center;
    padding: 20px;
    display: none;
}

#bare-report-success .material-icons {
    font-size: 48px;
    color: #16a34a;
    margin-bottom: 10px;
}

/* =========================================
   10. Contact Reveal System
   ========================================= */

/* Button Reset/Base */
button.bare-reveal-btn {
    border: none;
    cursor: pointer;
    font-family: var(--me-font-sans);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Specific Colors */
.bare-reveal-btn[data-type="telefone"] {
    /* Styles usually inherited from me-btn-light or mobile btn, but let's enforce if needed */
}

.bare-reveal-btn[data-type="whatsapp"] {
    /* Inherits me-btn-whatsapp */
}

/* Mobile Action Button Specifics Overlay */
.me-mobile-action-btn.bare-reveal-btn {
    /* Ensure it behaves like the 'a' tag version */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    width: 100%;
    background: transparent;
    color: var(--me-text-muted);
    font-size: 0.75rem;
    padding: 0;
}

.me-mobile-action-btn.bare-reveal-btn .bare-btn-text {
    margin-top: 2px;
}

/* Spinner */
.bare-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: bare-spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 5px;
}

.me-mobile-action-btn .bare-spinner {
    width: 20px;
    height: 20px;
    margin: 0;
}

@keyframes bare-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Revealed Link Animation */
.bare-revealed-link {
    animation: bareFadeIn 0.5s ease;
    text-decoration: none;
}

@keyframes bareFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.bare-reveal-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* =========================================
   Claim Modal Styles
   ========================================= */
.me-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 99999;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.6);
    /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.me-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.me-close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    transition: color 0.2s;
}

.me-close-modal:hover,
.me-close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Modal Form Styles */
.bare-form-group {
    margin-bottom: 15px;
}

.bare-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #374151;
}

.bare-form-group input,
.bare-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.bare-form-group textarea {
    resize: vertical;
}

.bare-btn-primary {
    background-color: var(--me-primary, #2563eb);
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

.bare-btn-primary:hover {
    background-color: var(--me-primary-dark, #1d4ed8);
}

.bare-btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.me-success-message h3 {
    color: #16a34a;
    margin-top: 0;
}

/* --- Related Listings Redesign (You Might Like) --- */
.me-related-scroll-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.me-related-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.me-related-scroll-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

.me-related-card-new {
    min-width: 280px;
    width: 280px;
    background: #fff;
    border: 1px solid #e5e7eb;
    /* Gray-200 */
    border-radius: 6px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.me-related-card-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.me-related-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

/* Header: Thumb + Info */
.me-related-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.me-related-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    /* Slightly grounded square */
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.me-related-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.me-related-title {
    font-size: 0.95rem;
    /* ~15px */
    font-weight: 700;
    color: #1f2937;
    /* Gray-800 */
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.me-related-cat {
    font-size: 0.75rem;
    /* ~12px */
    color: #2563eb;
    /* Blue-600 */
    font-weight: 500;
}

/* Address */
.me-related-address {
    display: flex;
    align-items: center;
    color: #6b7280;
    /* Gray-500 */
    font-size: 0.8125rem;
    /* 13px */
    gap: 4px;
}

.me-related-address .material-icons {
    font-size: 16px;
    color: #9ca3af;
    /* Gray-400 */
}

/* Buttons */
.me-related-actions {
    display: flex;
    gap: 10px;
}

.me-btn-action-gray {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #f8f9fa;
    /* Very Light Gray */
    color: #374151;
    /* Gray-700 */
    height: 28px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.me-btn-action-gray:hover {
    background-color: #e5e7eb;
}

.me-btn-action-gray .material-icons {
    font-size: 16px;
    color: #4b5563;
}

.me-btn-action-green {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #ecfdf5;
    /* Green-50 */
    color: #059669;
    /* Green-700 */
    height: 28px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.me-btn-action-green:hover {
    background-color: #d1fae5;
}

.me-btn-action-green .dashicons {
    font-size: 16px;
    line-height: 1.5;
    /* Align dashicon */
    color: #059669;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .me-related-card-new {
        min-width: 240px;
        width: 240px;
    }
}

/* Desktop Grid Override */
@media (min-width: 992px) {
    .me-related-scroll-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        overflow: visible;
        padding-bottom: 0;
    }

    .me-related-card-new {
        min-width: 0;
        width: 100%;
        margin-bottom: 0;
    }
}

/* Transparent Header Modifier */
.me-header-transparent {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
}

/* Utility: Hide on Mobile */
@media (max-width: 768px) {
    .me-hide-mobile {
        display: none !important;
    }

    /* Fixed Apply Button for Filter (Mobile) */
    .me-mobile-apply-btn-container {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding: 15px;
        border-top: 1px solid #e5e7eb;
        margin-top: 20px;
        z-index: 50;
        /* Ensure it stretches if inside a padded container */
        margin-left: -1rem;
        margin-right: -1rem;
        margin-bottom: -1rem;
        width: calc(100% + 2rem);
    }
}