* {
    box-sizing: border-box;
    /* --- Guia Comercial Search Bar --- */
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-grey);
    font-size: 1.1rem;
    z-index: 4; /* Ensure it's above the input */
}

#search-input {
    padding-left: 50px; /* Make space for the icon */
    border-radius: 50px; /* Fully rounded */
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

#search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(4, 181, 253, 0.25);
}

:root {
    --primary-color: #04b5fd;   /* New Blue */
    --secondary-color: #18ea96; /* New Green */
    --accent-color: #ebff01;    /* New Yellow */
    --dark-grey: #2D3748;      /* Gray-800 */
    --medium-grey: #718096;    /* Gray-600 */
    --light-grey: #F6F6FC;     /* Updated background color */
    --white: #FFFFFF;
    --border-color: #E2E8F0;   /* Gray-300 */
    --border-color-rgb: 226, 232, 240;
}

body {
    font-family: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--light-grey);
    color: #253036;
    font-size: 15px; /* Reduced from 16px */
    transition: margin-left 0.3s ease;
    overflow-x: hidden; /* Prevent horizontal scroll on body */
}

.wrapper {
    display: flex;
}

.sidebar {
    width: 280px;
    background-color: var(--white);
    padding: 30px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    border-right: 1px solid var(--border-color);
    transition: width 0.3s ease, left 0.3s ease;
    overflow-x: hidden;
    z-index: 1000;
}

.main-content {
    margin-left: 280px;
    padding: 30px;
    width: calc(100% - 280px);
    transition: margin-left 0.3s ease, width 0.3s ease;
}

/* Collapsed Sidebar Styles (Desktop) */
.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .logo span,
.sidebar.collapsed .menu .nav-link span {
    display: none;
}

.sidebar.collapsed .menu .nav-link {
    justify-content: center;
}

body.sidebar-collapsed .main-content {
    margin-left: 80px;
    width: calc(100% - 80px);
}

.sidebar .logo {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    white-space: nowrap;
}

.sidebar .logo i {
    font-size: 28px;
    color: var(--primary-color);
    margin-right: 12px;
}

.sidebar .logo span {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-grey);
}

.sidebar .menu {
    list-style: none;
    padding: 0;
}

.sidebar .menu li {
    margin-bottom: 15px;
}

.sidebar .menu a {
    display: flex;
    align-items: center;
    color: #253036;
    text-decoration: none;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.sidebar .menu a:hover,
.sidebar .menu a.active {
    color: var(--primary-color);
    background-color: transparent;
    border-left: 3px solid var(--primary-color);
    padding-left: 12px; /* Adjust padding to compensate for border */
}

.sidebar .menu a.active {
    font-weight: 600;
}

.sidebar .menu a i {
    margin-right: 20px;
    font-size: 20px;
}

.sidebar-toggle {
    position: absolute;
    bottom: 20px;
    left: 25px;
    cursor: pointer;
    font-size: 20px;
    color: var(--medium-grey);
}

.mobile-menu-toggle, .sidebar-close {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

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

.search-bar {
    width: 300px;
    position: relative;
    margin-right: 20px;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-grey);
}

.user-info {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.user-info i {
    font-size: 20px;
    margin-right: 20px;
    color: var(--medium-grey);
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.card-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.card-col {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
}

.card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.map-container {
    width: 100%;
    height: 70vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative; /* Added for Leaflet */
    background-color: #f0f0f0; /* Temporary background to see boundaries */
}

/* Mobile Styles */
@media (max-width: 768px) {
    .sidebar {
        left: -280px;
        width: 280px;
    }
    .sidebar.open {
        left: 0;
    }
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }
    .sidebar-toggle {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .sidebar-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    .main-header {
        justify-content: flex-start;
    }
    .search-bar {
        width: 100%;
        margin-left: 15px;
    }
    .user-info {
        display: none; /* Hide user info on mobile to simplify header */
    }
}

/* Masonry layout using CSS Columns */
.masonry-grid {
    column-count: 4; /* Default to 4 columns */
    column-gap: 1.5rem;
}
.masonry-item, .clean-card {
    background-color: var(--white);
    border-radius: 18px; /* Increased to match hero */
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Softer shadow */
    transition: all 0.3s ease-in-out;
    overflow: hidden; /* Ensures child elements respect the border radius */
    animation: fadeIn 0.5s ease-in-out;
    border: none; /* Removed border */
}

.masonry-item:hover, .clean-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Slightly more pronounced hover */
}

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

.masonry-item img, .clean-card img {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom: 1px solid var(--border-color);
}
.masonry-content, .clean-card-content {
    padding: 1.25rem; /* 20px */
}

.masonry-content .card-text {
    color: var(--medium-grey); /* Lighter color for description */
}

/* Responsive Masonry */
@media (max-width: 992px) { /* Adjust for medium screens */
    .masonry-grid {
        column-count: 3;
    }
}
@media (max-width: 768px) { /* Adjust for small screens */
    .masonry-grid {
        column-count: 2;
    }
}
@media (max-width: 500px) { /* Adjust for extra small screens */
    .masonry-grid {
        column-count: 1;
    }
}

/* --- Theme Toggle Button --- */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--medium-grey);
    padding: 5px;
    margin-right: 15px;
}

.theme-toggle-btn:hover {
    color: var(--primary-color);
}

/* --- Dark Mode Palette --- */
html[data-theme='dark'] {
    --primary-color: #04b5fd;   /* New Blue */
    --secondary-color: #18ea96; /* New Green */
    --accent-color: #ebff01;    /* New Yellow */
    --dark-grey: #EAECEF;      /* Was text color, now light for dark bg */
    --medium-grey: #A0AEC0;    /* Was secondary text, now a lighter grey */
    --light-grey: #1A202C;     /* Was body bg, now dark */
    --white: #2D3748;          /* Was card/sidebar bg, now dark grey */
    --border-color: #4A5568;   /* A darker border color */
    --border-color-rgb: 74, 85, 104;
}

/* Dark mode specific adjustments if needed */
html[data-theme='dark'] .card {
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

html[data-theme='dark'] .masonry-item {
    box-shadow: 0 4px 6px rgba(0,0,0,0.25);
}

html[data-theme='dark'] .masonry-item:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.35);
}

html[data-theme='dark'] .map-container {

    /* You might want a different tile layer for dark mode maps */

}

/* Dark mode Bootstrap Overrides */
html[data-theme='dark'] .text-dark {
    color: var(--dark-grey) !important;
}

html[data-theme='dark'] .text-muted {
    color: var(--medium-grey) !important;
}

html[data-theme='dark'] .bg-light {
    background-color: var(--light-grey) !important;
    color: var(--dark-grey) !important;
}

html[data-theme='dark'] .bg-white {
    background-color: var(--white) !important;
    color: var(--dark-grey) !important;
}

/* Fix Bootstrap badges in dark mode if they use bg-light text-dark */
html[data-theme='dark'] .badge.bg-light {
    background-color: var(--border-color) !important;
    color: var(--dark-grey) !important;
}

/* Fix Dropdowns in Dark Mode */
html[data-theme='dark'] .dropdown-menu {
    background-color: var(--white);
    border-color: var(--border-color);
}

html[data-theme='dark'] .dropdown-item {
    color: var(--dark-grey);
}

html[data-theme='dark'] .dropdown-item:hover {
    background-color: var(--light-grey);
    color: var(--primary-color);
}

html[data-theme='dark'] .dropdown-divider {
    border-top-color: var(--border-color);
}


/* --- Destaques Page Specific Styles --- */
.destaque-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px; /* Match .clean-card */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out;
}

.destaque-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

.destaque-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the area */
}

.destaque-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    padding: 40px 20px 20px 20px;
    transform: translateY(100%);
    transition: all 0.4s ease-in-out;
    opacity: 0;
}

.destaque-card:hover .destaque-overlay {
    transform: translateY(0);
    opacity: 1;
}

.destaque-overlay h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--white);
}

.destaque-overlay .btn {
    margin-top: 0.5rem;
    background-color: var(--white);
    color: var(--dark-grey);
    font-weight: 600;
    border: none;
}

.destaque-overlay .btn:hover {
    background-color: #f0f0f0;
}


input[type="text"],

input[type="email"],

input[type="password"],

.form-control {

    transition: border-color 0.3s ease, box-shadow 0.3s ease;

}



input[type="text"]:focus,

input[type="email"]:focus,

input[type="password"]:focus,

.form-control:focus {

    border-color: var(--primary-color);

    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2);

    outline: none;

}





/* --- Micro-interactions & Animations --- */

@keyframes rotate-icon {

    from {

        transform: rotate(0deg);

    }

    to {

        transform: rotate(360deg);

    }

}



.theme-toggle-btn i.rotating {

    animation: rotate-icon 0.5s ease-in-out;

}
/* Estilos para a área de upload e galeria */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.upload-area:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-color);
}
.logo-preview, .gallery-img {
    width: 120px; /* Adjusted from 150px */
    height: 120px; /* Adjusted from 150px */
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}
.gallery-item {
    position: relative;
}
.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 12px;
    line-height: 25px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .delete-btn {
    opacity: 1;
}
/* Estilos para o modal do Cropper */
#cropper-modal .modal-lg { max-width: 800px; }
#cropper-container { height: 400px; }
#cropper-container img { max-width: 100%; }
.disabled-link {
    pointer-events: none; /* Prevents click events */
    cursor: default;     /* Changes cursor to default */
    opacity: 0.6;        /* Visually dims the link */
}

/* --- Profile Dashboard Styles --- */
.dashboard-header {
    margin-bottom: 2.5rem;
}

.dashboard-header h1 {
    font-weight: 700;
    color: var(--dark-grey);
}

h1, .h1, .display-4,
.section-header h2,
.section-header .h2,
.dashboard-section-title,
.home-section h2,
.home-section .h2 {
    font-family: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 36px;
    line-height: 40px;
    font-weight: 700;
    letter-spacing: -0.9px;
    color: #020817;
}

.dashboard-section-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.stat-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

/* New Stats Section Styles */
.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 2.5rem 0;
    margin: 3.5rem 0;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.2rem; /* Slightly increased gap */
    position: relative;
    padding: 0 1.5rem;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50px;
    background-color: rgba(var(--border-color-rgb), 0.5); /* Lighter separator */
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color); /* Will be replaced with user's specific green hex */
    line-height: 1;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--dark-grey);
}

.stat-label {
    font-size: 0.95rem; /* Slightly smaller font */
    font-weight: 500; /* Lighter font weight */
    color: var(--medium-grey);
    margin-top: -5px;
}

/* Dark mode adjustments for stats */
html[data-theme='dark'] .stat-number {
    color: var(--dark-grey); /* This is a light color in dark mode */
}

html[data-theme='dark'] .stat-item:not(:last-child)::after {
    background-color: rgba(var(--border-color-rgb), 0.5); /* Lighter separator in dark mode */
}

/* Responsive adjustments for stats */
@media (max-width: 992px) {
    .stats-container {
        justify-content: center;
    }
    .stat-item {
        flex-basis: 30%; /* Three items per row */
        justify-content: center;
    }
    .stat-item:nth-child(3)::after {
        display: none; /* Hide separator after 3rd item */
    }
}

@media (max-width: 768px) {
    .stat-item {
        flex-basis: 45%; /* Two items per row */
        justify-content: flex-start;
    }
    .stat-item:not(:last-child)::after {
        display: block; /* Show all separators */
    }
    .stat-item:nth-child(even)::after {
        display: none; /* Hide separator after even items */
    }
    .stat-item:nth-child(3)::after {
        display: block; /* Re-show 3rd separator */
    }
}

@media (max-width: 576px) {
    .stat-item {
        flex-basis: 100%; /* One item per row */
        justify-content: center;
    }
     .stat-item:not(:last-child)::after {
        display: none; /* Hide all separators on smallest screens */
    }
}

.stat-card__icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    margin-right: 1rem;
    color: var(--white);
}

.stat-card__icon.icon-primary { background-color: var(--primary-color); }
.stat-card__icon.icon-success { background-color: var(--secondary-color); } /* Emerald-500 */
.stat-card__icon.icon-warning { background-color: var(--accent-color); } /* Amber-500 */
.stat-card__icon.icon-info { background-color: var(--primary-color); }    /* Blue-500 */

.stat-card__info h5 {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: var(--medium-grey);
    font-weight: 500;
    text-transform: uppercase;
}

.stat-card__info p {
    margin-bottom: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-grey);
}

.dashboard-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.dashboard-card .list-group-item {
    border: none;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}
.dashboard-card .list-group-item:last-child {
    border-bottom: none;
}

.home-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.dashboard-card .list-group-item a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 500;
    transition: color 0.3s ease;
}

.dashboard-card .list-group-item a:hover {
    color: var(--primary-color);
}

.coupon-card {
    background-color: var(--light-grey);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.coupon-card .coupon-code {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    background-color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    margin: 0.5rem 0;
}

html[data-theme='dark'] .dashboard-card,
html[data-theme='dark'] .stat-card {
    background-color: var(--white); /* which is #2D3748 in dark mode */
    box-shadow: 0 4px 6px rgba(0,0,0,0.25);
}

html[data-theme='dark'] .dashboard-header h1,
html[data-theme='dark'] .dashboard-section-title,
html[data-theme='dark'] .stat-card__info p,
html[data-theme='dark'] .dashboard-card .list-group-item a {
    color: var(--dark-grey); /* which is #EAECEF in dark mode */
}

html[data-theme='dark'] .coupon-card {
    background-color: var(--light-grey); /* which is #1A202C in dark mode */
    border-color: var(--border-color);
}

html[data-theme='dark'] .coupon-card .coupon-code {
    background-color: #4A5568; /* A bit lighter than the card bg */
}

/* --- Premium Tier Styles for Masonry Items --- */
.masonry-item {
    position: relative; /* Needed for absolute positioning of badge */
}

.masonry-item.item-anunciante {
    border: 1px solid var(--primary-color); /* Blue border for Anunciante */
}

.masonry-item.item-destaque {
    border: 1px solid var(--accent-color); /* Gold border for Destaque */
}

.badge-premium {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: bold;
    color: var(--white);
    z-index: 10;
}

.badge-anunciante {
    background-color: var(--primary-color); /* Blue */
}

.badge-destaque {
    background-color: var(--accent-color); /* Gold */
    color: var(--dark-grey); /* Darker text for contrast on gold */
}

/* Dark mode adjustments for premium items */
html[data-theme='dark'] .masonry-item.item-anunciante {
    border-color: var(--primary-color); /* Slightly different blue for dark mode */
}

html[data-theme='dark'] .masonry-item.item-destaque {
    border-color: var(--accent-color); /* Slightly different gold for dark mode */
}

html[data-theme='dark'] .badge-destaque {
    color: var(--dark-grey); /* Ensure dark text on gold in dark mode */
}

/* --- Filter Card Styles --- */
.filter-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
}

.filter-card .card-title {
    color: var(--dark-grey);
    font-weight: 600;
}

html[data-theme='dark'] .filter-card {
    background-color: var(--white); /* Corresponds to #2D3748 in dark mode */
    border-color: var(--border-color);
}

html[data-theme='dark'] .filter-card .card-title {
    color: var(--dark-grey); /* Corresponds to #EAECEF in dark mode */
}
/* Global link color */
a {
    color: var(--primary-color);
}

/* Bootstrap Primary Button Override */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: var(--primary-color) !important; /* Keep same color on hover for consistency */
    border-color: var(--primary-color) !important;
    filter: brightness(90%); /* Slightly darken on hover */
}

.btn-primary:focus, .btn-primary.focus {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(4, 181, 253, 0.25); /* Use new primary color for focus ring */
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: var(--white) !important; /* Text becomes white on hover */
    border-color: var(--primary-color) !important;
}

/* Dark mode adjustments for buttons */
html[data-theme='dark'] .btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme='dark'] .btn-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    filter: brightness(90%);
}

html[data-theme='dark'] .btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

html[data-theme='dark'] .btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: var(--dark-grey) !important; /* Text becomes dark-grey (light) on hover in dark mode */
    border-color: var(--primary-color) !important;
}

/* Gamification Badge in Listings */
.gamification-badge-img-listing {
    height: 18px;
    width: 18px;
    margin-left: 8px;
    vertical-align: middle;
    object-fit: contain;
}

/* --- Rating Stars --- */
.rating-stars {
    font-size: 1.5rem;
    color: #ccc; /* Cor das estrelas não preenchidas */
    cursor: pointer;
}

.rating-stars i {
    transition: color 0.2s ease;
}

.rating-stars i.fas {
    color: #ffc107; /* Cor das estrelas preenchidas (amarelo) */
}

/* Estilos para exibir as avaliações já feitas */
.rating-display {
    font-size: 1.2rem;
    color: #ffc107; /* Cor das estrelas preenchidas */
}

.rating-display i.far {
    color: #ccc; /* Cor das estrelas não preenchidas */
}

.rating-display i.fas.filled {
    color: #ffc107; /* Certifica que a estrela preenchida mantém a cor */
}

/* --- Estilo para Profissionais em Destaque --- */
.masonry-item.item-highlighted {
    border: 2px solid var(--accent-color); /* Uma borda chamativa */
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4); /* Uma sombra amarelada */
}

.masonry-item.item-highlighted .highlight-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: var(--dark-grey); /* Texto escuro para contraste */
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.8em;
    z-index: 5;
}



/* New Hero Section Styles */
.hero-section-background {
    position: relative;
    padding: 100px 0; /* Increased padding */
    background-size: cover;
    background-position: center;
    color: var(--white);
    border-radius: 18px; /* Slightly more rounded */
    margin-bottom: 4.5rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.55); /* Slightly darker overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem; /* Increased font size */
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Added text shadow for readability */
}

.hero-subtitle {
    font-size: 1.3rem; /* Slightly larger */
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3.5rem; /* More space before search */
}

.hero-search-box {
    background: rgba(255, 255, 255, 0.1); /* Glassmorphism background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem; /* Reduced padding for a tighter look */
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.hero-search-box .form-control,
.hero-search-box .form-select {
    height: 50px; /* Taller inputs */
    border: none;
}

.hero-search-box .btn-primary {
    width: 100%;
    height: 50px;
    font-weight: 600;
}




.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color) !important;
    width: auto;
    height: auto;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.5rem !important; /* Slightly smaller icon */
    font-weight: 900 !important;
}

.swiper-button-prev {
    left: 10px;
}
.swiper-button-next {
    right: 10px;
}

/* Style for pagination bullets */
.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #ccc;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    width: 24px;
    height: 8px;
    border-radius: 4px;
    background-color: var(--primary-color);
}

/* Swiper Carousel Styles */
.destaques-swiper {
    position: relative;
    padding: 0 40px 30px; /* Added padding-bottom to distance dots */
}

.destaques-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.destaques-swiper .swiper-slide .masonry-item {
    width: 100%;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-image-source {
    position: absolute;
    bottom: 10px;
    right: 15px;
    z-index: 3; /* Above the overlay */
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease;
}

.hero-image-source a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.hero-image-source a:hover {
    color: #fff;
    text-decoration: underline;
}

/* New Service Tags Section Styles */
.service-tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.service-tag-card {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
    flex-grow: 1;
    /* Basis for 8 columns with gap: 12.5% = 100/8 */
    flex-basis: calc(12.5% - 12px);
}

.service-tag-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.service-tag-card i {
    color: var(--medium-grey);
    transition: color 0.2s ease-in-out;
}

.service-tag-card:hover i {
    color: var(--primary-color);
}

html[data-theme='dark'] .service-tag-card {
    background-color: var(--white); /* which is #2D3748 */
    border-color: var(--border-color);
    color: var(--dark-grey);
}

html[data-theme='dark'] .service-tag-card:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Top Rated Card Styles */
.top-rated-card {
    display: block;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: var(--white);
    height: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.top-rated-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.top-rated-card:hover .top-rated-card-bg {
    transform: scale(1.05);
}

.top-rated-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.3) 100%);
}

.top-rated-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-color);
    color: var(--dark-grey);
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 2;
}

.top-rated-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2;
}

.top-rated-card-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.5rem;
    color: var(--white);
}

.top-rated-card .rating-display {
    font-size: 1rem;
    color: #ffc107;
}

.top-rated-card .rating-display span {
    color: var(--white);
    font-weight: 500;
}

/* Eventos Section Styles */
.main-event-card {
    display: block;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: var(--white);
    height: 400px; /* Adjust height as needed */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.main-event-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1; /* Ensure background is lowest */
}

.main-event-card:hover .main-event-card-bg {
    transform: scale(1.03);
}

.main-event-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.6) 100%);
    z-index: 2; /* Ensure overlay is above background */
}

.main-event-card-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 3; /* Ensure content is on top */
}

.main-event-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: var(--dark-grey);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 700;
}

.main-event-day {
    font-size: 1.5rem;
    line-height: 1;
}

.main-event-month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.main-event-title {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--white);
}

.main-event-location {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.other-events-list {
    background-color: var(--white);
    border-radius: 18px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.other-event-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark-grey);
    transition: all 0.2s ease-in-out;
}

.other-event-item:hover {
    background-color: var(--light-grey);
    transform: translateX(5px);
}

html[data-theme='dark'] .other-event-item:hover {
    background-color: var(--white); /* Dark mode card color */
}

.other-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--light-grey);
    color: var(--dark-grey);
    padding: 5px 8px;
    border-radius: 6px;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
    width: 55px; /* Fixed width */
    height: 55px; /* Fixed height */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

html[data-theme='dark'] .other-event-date {
    background-color: var(--white);
    color: var(--dark-grey);
}

.other-event-day {
    font-size: 1.1rem;
    line-height: 1;
}

.other-event-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    line-height: 1;
}

.other-event-info {
    flex-grow: 1;
}

.other-event-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 3px;
    color: var(--dark-grey);
}

html[data-theme='dark'] .other-event-title {
    color: var(--dark-grey);
}

.other-event-location {
    font-size: 0.85rem;
    color: var(--medium-grey);
    margin-bottom: 0;
}

/* Coupon Ticket Styles */
.coupon-ticket {
    display: flex;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.coupon-ticket:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.coupon-ticket-left {
    background-color: #f7f9fc;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 2px dashed var(--border-color);
    width: 120px;
    flex-shrink: 0;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.coupon-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    background-color: var(--light-grey);
}

.coupon-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coupon-company-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--medium-grey);
    text-align: center;
}

.coupon-ticket-right {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.coupon-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-grey);
    margin-bottom: 8px;
}

.coupon-expiry {
    font-size: 0.85rem;
    color: var(--medium-grey);
    margin-bottom: 15px;
}

.coupon-button {
    align-self: flex-start;
}

html[data-theme='dark'] .coupon-ticket {
    background-color: var(--white);
}

html[data-theme='dark'] .coupon-ticket-left {
    background-color: var(--light-grey);
    border-right-color: var(--border-color);
}

html[data-theme='dark'] .coupon-title {
    color: var(--dark-grey);
}

/* --- Global Search Overlay --- */
.global-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(240, 242, 245, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-direction: column;
    align-items: center;
    padding-top: 5%;
}

.global-search-overlay.open {
    display: flex;
    opacity: 1;
}

.close-search-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: var(--medium-grey);
    background: none;
    border: none;
    cursor: pointer;
}

.global-search-content {
    width: 100%;
    max-width: 700px;
}

#global-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    border: none;
    border-bottom: 2px solid var(--medium-grey);
    background-color: transparent;
    color: var(--dark-grey);
}

#global-search-input:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.global-search-results {
    margin-top: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-result-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
    background-color: var(--light-grey);
}

.search-result-info {
    flex-grow: 1;
}

.search-result-title {
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 3px;
}

.search-result-description {
    font-size: 0.9rem;
    color: var(--medium-grey);
    margin-bottom: 5px;
}

.search-result-type {
    font-size: 0.8rem;
    color: var(--medium-grey);
}

/* Dark mode for global search */
html[data-theme='dark'] .global-search-overlay {
    background-color: rgba(26, 32, 44, 0.95);
}

html[data-theme='dark'] #global-search-input {
    color: var(--dark-grey);
    border-bottom-color: var(--border-color);
}

html[data-theme='dark'] #global-search-input:focus {
    border-bottom-color: var(--primary-color);
}

html[data-theme='dark'] .search-result-item {
    background-color: var(--white);
}

html[data-theme='dark'] .search-result-title {
    color: var(--dark-grey);
}

/* --- Hero Shortcuts (Replacement for Search) --- */
.hero-shortcuts-wrapper {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-shortcut-card {
    background: rgba(255, 255, 255, 0.1); /* Glass effect base */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 140px;
    height: 140px;
    position: relative;
    overflow: hidden;
}

.hero-shortcut-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.2), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-shortcut-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    color: var(--white);
}

.hero-shortcut-card:hover::before {
    opacity: 1;
}

.hero-shortcut-card .icon-box {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: var(--accent-color); /* Yellow color for icon */
    transition: transform 0.3s ease;
    z-index: 2;
}

.hero-shortcut-card:hover .icon-box {
    transform: scale(1.1);
}

.hero-shortcut-card span {
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    line-height: 1.2;
    z-index: 2;
}

/* Mobile adjustments for shortcuts */
@media (max-width: 768px) {
    .hero-shortcuts-wrapper {
        gap: 10px;
    }
    .hero-shortcut-card {
        width: calc(50% - 10px); /* 2 per row */
        height: 110px;
        padding: 1rem;
    }
    .hero-shortcut-card .icon-box {
        font-size: 2rem;
    }
    .hero-shortcut-card span {
        font-size: 0.9rem;
    }
}