/* --- DISEÑO INFOPICO 2025 PORTED TO YCLAS --- */
:root {
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --color-brand: #009640;
    --color-police: #dc2626;
    --color-sports: #2563eb;
    --color-field: #d97706;
    --radius-lg: 16px;
    --header-height: 70px;
}

body {
    background-color: var(--bg-body) !important;
    color: var(--text-main) !important;
    font-family: 'Inter', sans-serif !important;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.ip-wrapper * {
    box-sizing: border-box;
}

.ip-wrapper a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.ip-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.ip-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hide header brand badge on mobile to prevent displacement */
@media (max-width: 767px) {
    .ip-header .brand-badge {
        display: none;
    }
}

.ip-flex-center {
    display: flex;
    align-items: center;
}

.ip-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-white {
    color: white !important;
}

.text-muted {
    color: var(--text-muted);
}

.font-bold {
    font-weight: 700;
}

.ip-header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

/* Fix "Featured" badge positioning inside card */
.triangle-top-left {
    top: 15px;
    left: 15px;
    z-index: 10;
}

.ip-header-content {
    width: 100%;
}

.ip-header .dropdown-menu {
    z-index: 1050 !important;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.ip-nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ip-nav-links li a {
    display: block;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.ip-nav-links li a:hover {
    color: var(--color-brand);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    z-index: -1;
    pointer-events: none;
    overflow-y: auto;
    padding-bottom: 80px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.mobile-menu-overlay.is-active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    z-index: 2000;
    pointer-events: auto;
}

.mobile-menu-header {
    margin-bottom: 40px;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: block;
    color: var(--text-main);
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

/* YClas overrides to fit design */
.navbar-default {
    background-color: transparent !important;
    border-color: transparent !important;
    margin-bottom: 0 !important;
}

footer {
    background: #111;
    color: #888;
    padding: 60px 0 20px 0;
    font-size: 0.9rem;
}

footer a {
    color: #ccc;
    text-decoration: none;
}

footer a:hover {
    color: white;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 10px;
}

/* Override Default Theme Colors */
a {
    color: var(--color-brand);
}

a:hover,
a:focus {
    color: var(--color-brand);
    text-decoration: underline;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.primary-btn {
    background-color: var(--color-brand) !important;
    border-color: var(--color-brand) !important;
    color: white !important;
}

.text-primary {
    color: var(--color-brand) !important;
}

.pagination>.active>a,
.pagination>.active>span,
.pagination>.active>a:hover,
.pagination>.active>span:hover,
.pagination>.active>a:focus,
.pagination>.active>span:focus {
    background-color: var(--color-brand) !important;
    border-color: var(--color-brand) !important;
}

/* --- MODERN UI ENHANCEMENTS --- */

/* 1. Modern Cards */
.categorie,
#related li a,
.widget,
.custom_box_content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    height: 100%;
    display: block;
}

.categorie:hover,
#related li a:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

.categorie {
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
}

#related li {
    margin-bottom: 30px;
}

#related li a {
    text-decoration: none;
    color: inherit;
}

#related .text {
    padding: 15px;
}

#related .text p {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 5px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#related .text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 2. Enhanced Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.slider-h1,
.slider-h2,
.item-title,
.widget-title {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-main);
}

.slider-h1 {
    font-size: 3.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 3. Hero Section Refresh */
#slider-homepage {
    position: relative;
    padding: 100px 0;
}

#slider-homepage .search-frm {
    max-width: 700px;
    margin: 30px auto 0;
    position: relative;
}

#slider-homepage .search-input {
    height: 64px;
    border-radius: 50px;
    padding-left: 30px;
    font-size: 1.2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: none;
}

#slider-homepage .search-frm button {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    border-radius: 50px;
    padding: 0 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 150, 64, 0.3);
}

/* 4. Button Polish */
.btn,
.primary-btn {
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 10px 24px;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Clean up spacing */
section#main {
    padding-top: 20px;
}

.item-title {
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.item-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 4px;
    background: var(--color-brand);
    border-radius: 2px;
}

/* --- UI REFINEMENTS (SCREENSHOT FIXES) --- */

/* 1. Header Button Fix */
.ip-header .primary-btn.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px !important;
    border-radius: 50px !important;
    font-size: 0.9rem;
    line-height: 1;
    width: auto !important;
    margin-top: 0;
    box-shadow: 0 4px 10px rgba(0, 150, 64, 0.2);
}

.ip-header .primary-btn.header-btn i {
    margin-left: 8px;
}

/* Mobile Menu Button alignment */
.mobile-services-grid .service-item .icon-box {
    flex-shrink: 0;
}

/* 2. Ad Listing Cards (List View) */
.list-view {
    padding: 0;
    list-style: none;
}

.list-view>li.col-xs-12 {
    background: #fff;
    border-radius: 8px;
    /* Slightly reduced radius */
    padding: 10px;
    /* Reduced padding from 15px */
    margin-bottom: 10px;
    /* Reduced margin from 20px */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Lighter, flatter shadow */
    /* Subtle shadow */
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-wrap: wrap;
    /* Ensure responsiveness */
}

.list-view>li.col-xs-12:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

/* Adjust image container within card */
.list-view .adimage {
    padding-left: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.list-view .adimage img {
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 1/1;
    /* Ensure square aspect ratio if possible, or keep original layout */
}

/* 3. Price Tag Refinement */
.list-view .price {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: auto;
    top: auto;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    backdrop-filter: blur(4px);
    width: auto;
    /* Prevent full width */
    text-align: left;
}

.list-view .price p {
    margin: 0;
    line-height: normal;
}

/* 4. Text Content Adjustments */
.list-view .text h2 {
    font-size: 1.3rem;
    /* Increased from 1.15rem */
    margin-top: 0;
    margin-bottom: 4px;
    /* Reduced from 8px */
    font-weight: 700;
}

.list-view .text h2 a {
    color: var(--text-main);
    text-decoration: none;
}

.list-view .text span {
    font-size: 1rem;
    /* Increased from 0.85rem */
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
}

/* Remove default separator lines if any */
.list-view li {
    border-bottom: none !important;
}



/* 5. Mobile Scroll Fixes */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

.ip-wrapper {
    overflow: visible;
    width: 100%;
}

/* Ensure Ad Listing doesn't overflow */
.list-view {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100%;
}

.list-view>li.col-xs-12 {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100vw;
    /* Hard stop */
}

/* Ensure row inside page-header doesn't push out */
#page-header .row,
#main .row {
    margin-left: 0;
    margin-right: 0;
}

.container.no-gutter {
    padding-left: 15px;
    padding-right: 15px;
}

/* --- UI MODERNIZATION (STEP 2) --- */

/* 1. Header Refinements */
.ip-header .primary-btn.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px !important;
    border-radius: 50px !important;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    width: auto !important;
    margin-top: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 150, 64, 0.2);
    /* Ensure icon spacing */
}

.ip-header .primary-btn.header-btn i {
    margin-left: 8px;
    font-size: 14px;
}

/* Style "Ingresar" link */
.ip-flex-center>a[data-target="#login-modal"] {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 50px;
    transition: background 0.2s;
    text-decoration: none;
    margin-right: 4px;
}

.ip-flex-center>a[data-target="#login-modal"]:hover {
    background: #f3f4f6;
    color: var(--color-brand);
}

/* 2. Featured Ads Highlight */
.list-view>li.featured {
    position: relative;
    border: 2px solid var(--color-brand) !important;
    background: #f0fdf4 !important;
    /* Very subtle green tint */
}

.list-view>li.featured .triangle-top-left {
    display: none;
    /* Remove old triangle */
}

.list-view>li.featured .featured-text {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--color-brand);
    color: white;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom-right-radius: 8px;
    z-index: 20;
    transform: none;
    /* Remove rotation */
    letter-spacing: 0.5px;
}

/* 3. Grid View Modernization */
/* When not in list view (col-xs-12), assume grid */
.listing-overview ul:not(.list-view)>li,
.listing-overview ul li:not(.col-xs-12) {
    border: none;
    background: transparent;
    margin-bottom: 15px;
    /* Reduced from 30px */
}

/* Internal Card for Grid View items to ensure consistent height and style */
.listing-overview ul:not(.list-view)>li .adimage,
.listing-overview ul li:not(.col-xs-12) .adimage {
    background: #fff;
    border-radius: 8px;
    /* Consistent radius */
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    /* Reset list-view styles */
    padding: 0;
    width: 100%;
    margin-bottom: 10px;
    aspect-ratio: 4/3;
}

.listing-overview ul:not(.list-view)>li:hover .adimage,
.listing-overview ul li:not(.col-xs-12):hover .adimage {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.listing-overview ul:not(.list-view)>li img,
.listing-overview ul li:not(.col-xs-12) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    /* Card handles radius */
}

/* Featured in Grid */
.listing-overview ul:not(.list-view)>li.featured .adimage,
.listing-overview ul li:not(.col-xs-12).featured .adimage {
    border: 3px solid var(--color-brand);
}

/* Price in Grid */
.listing-overview ul:not(.list-view)>li .price,
.listing-overview ul li:not(.col-xs-12) .price {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    position: absolute;
    bottom: 8px;
    right: 8px;
    left: auto;
    font-weight: 700;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
}

/* Content in Grid */
.listing-overview ul:not(.list-view)>li .text,
.listing-overview ul li:not(.col-xs-12) .text {
    padding: 5px;
}

.listing-overview ul:not(.list-view)>li .text h2,
.listing-overview ul li:not(.col-xs-12) .text h2 {
    font-size: 1rem;
    /* Reduced for density */
    margin-bottom: 4px;
    line-height: 1.3;
}

.listing-overview ul:not(.list-view)>li .text span,
.listing-overview ul li:not(.col-xs-12) .text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 6. Footer Widget Fix */
body .ip-footer .widget,
footer .widget {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    color: inherit;
}

body .ip-footer .widget h3,
footer .widget h3,
.ip-footer .widget .widget-title {
    color: white !important;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* 7. Filter Bar Refinement (First Scroll Fix) */
.filter {
    background: transparent !important;
    border: none !important;
    margin-bottom: 20px;
    padding: 10px 0;
    border-radius: 0;
    box-shadow: none;
}

.filter .nav-tabs {
    border-bottom: none !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.filter .nav-tabs>li {
    float: none !important;
    margin-bottom: 0 !important;
}

.filter .nav-tabs>li>a,
.filter .nav-tabs>li>button {
    border: 1px solid #e5e7eb !important;
    border-radius: 50px !important;
    padding: 8px 16px !important;
    margin-right: 0 !important;
    color: var(--text-main);
    background: white;
    font-weight: 500;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    line-height: 1.2;
}

.filter .nav-tabs>li>a:hover,
.filter .nav-tabs>li>button:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

.filter .nav-tabs>li.active>a,
.filter .nav-tabs>li.active>a:hover,
.filter .nav-tabs>li.active>a:focus,
.filter .nav-tabs>li>button.active {
    border: 1px solid var(--color-brand) !important;
    background: var(--color-brand) !important;
    color: white !important;
    cursor: default;
}

/* Fix dropdown menus in filter */
.filter .nav-tabs .dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 5px;
    /* Add margin around here if needed, but the main fix is z-index */
    z-index: 1050;
    /* Ensure high z-index */
}

/* Page Header Tweak (Blue Section) */
#page-header {
    background: white !important;
    /* Cleaner look */
    border-bottom: 1px solid #eee;
}

#page-header h1 {
    color: var(--text-main) !important;
    font-size: 1.75rem;
}

#page-header .breadcrumbs {
    color: var(--text-muted);
}



/* Page Header Tweak (Blue Section - Now White) */
#page-header {
    background: white !important;
    /* Cleaner look */
    border-bottom: 1px solid #eee;
    padding: 5px 0 10px 0;
    /* Reduced padding top/bottom */
    margin-bottom: 15px;
    /* Reduced bottom margin */
}

#page-header h1 {
    color: var(--text-main) !important;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: none !important;
}

#page-header .breadcrumbs {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    margin-top: 0;
}

#page-header .breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

/* Force hide the blue overlay */
#page-header .overlay {
    display: none !important;
    background: none !important;
}

/* Specific fix for "Category" bubble in header if present */
#page-header h1,
#page-header h2,
#page-header h3,
#page-header .h1,
#page-header .h2 {
    color: var(--text-main) !important;
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 0;
    text-shadow: none !important;
    background: transparent !important;
    /* Ensure no background on text */
    padding: 0 !important;
}

/* --- HOLISTIC DESIGN IMPROVEMENTS (STEP 3) --- */

/* 1. Single Ad View - Gallery */
#slider {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

#slider .carousel-inner .item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #f8f9fa;
    max-height: 500px;
}

#slider-thumbs {
    margin-top: 15px;
}

#slider-thumbs ul {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

#slider-thumbs ul li {
    padding: 0;
    border: none;
    flex: 0 0 80px;
    /* Fixed width thumbnails */
}

#slider-thumbs a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.2s;
}

#slider-thumbs a.selected,
#slider-thumbs a:hover {
    border-color: var(--color-brand);
    opacity: 1;
}

#slider-thumbs img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

/* 2. Single Ad View - Details & Price */
.detaillist {
    padding: 0;
    list-style: none;
}

.detaillist li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.detaillist li>i:first-child {
    color: var(--color-brand);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Modern Price Display in Single View */
.detaillist li.price {
    margin-bottom: 20px;
}

.detaillist li.price .pricebtn {
    background: transparent !important;
    color: var(--text-main) !important;
    font-size: 2.5rem !important;
    font-weight: 800;
    padding: 0 !important;
    border: none !important;
    display: block;
    line-height: 1;
}

.detaillist li.price .pricebtn::before {
    content: '' !important;
    /* Remove any icon styling if present */
}

/* 3. List View - Cleaner Price Tags */
/* Overriding previous "dark badge" style */
.listing-overview ul:not(.list-view)>li .price,
.listing-overview ul li:not(.col-xs-12) .price,
.list-view li .price {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--text-main) !important;
    font-weight: 700;
    padding: 4px 10px !important;
    border-radius: 50px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem !important;
    backdrop-filter: blur(4px);
    /* Position adjustments */
    bottom: 10px;
    right: 10px;
}

/* 4. Description Readability */
#main p {
    font-size: 1.8rem;
    /* Increased from 1rem */
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* 5. Contact Buttons Area in Single View */
.contact .col-left .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

.contact .col-left .btn-group .btn {
    flex: 1;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Hide legacy sidebar elements if needed */
/* Fix for List View Blue Overlay Glitch */
.list-view .overlay,
.list-image-overlay {
    display: none !important;
    background: none !important;
}

/* Ensure price tag is visible and formatted correctly */
.list-view li .price p {
    margin: 0;
    line-height: 1;
}

/* --- MOBILE MENU IMPROVEMENTS & BRANDING --- */

/* Brand Badge (Clasificados) */
.brand-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: -0.5px;
    line-height: 1;
}

/* Mobile Menu Styling */
.mobile-menu-overlay nav {
    padding: 0 15px !important;
}

.mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 10px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.mobile-link:hover {
    background-color: #f9fafb;
    padding-left: 15px;
    /* Slight movement on hover */
    color: var(--color-brand) !important;
}

/* Add chevron to links */
.mobile-link::after {
    content: '›';
    font-size: 1.5rem;
    color: #ccc;
    line-height: 0;
    margin-bottom: 5px;
}

/* Specific Link Colors (overrides) */
.mobile-link[href*="policial"] {
    color: var(--color-police);
}

.mobile-link[href*="social"] {
    color: var(--text-main);
}

/* La Ciudad */
.mobile-link[href*="deportivo"] {
    color: var(--color-sports);
}

/* Make Services Grid look better */
.mobile-services-grid {
    padding: 20px 15px !important;
    background: #fff;
}

.mobile-services-grid .service-item {
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.mobile-services-grid .service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-color: var(--color-brand) !important;
}

/* Ensure Publicar button in menu text doesn't overflow */
.mobile-services-grid .service-item span {
    font-size: 0.85rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Header Search Bar */
.header-search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.header-search-form {
    width: 100%;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.header-search-input {
    width: 100%;
    padding: 10px 15px;
    padding-right: 45px;
    /* Space for button */
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    background-color: #f9fafb;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
    height: 42px;
}

.header-search-input:focus {
    background-color: #fff;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(0, 150, 64, 0.1);
}

.header-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.header-search-btn:hover {
    color: var(--color-brand);
    background-color: rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
    .header-search-container {
        margin: 0 10px;
        max-width: 100%;
    }
}

/* --- ENHANCED CHECKOUT & MERCADOPAGO BUTTON --- */
.mp-button-wrapper {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #e5e7eb;
}

.mp-btn-container {
    display: inline-block;
}

/* Base styles for the MP button (links or actual buttons) */
.mp-btn-container a,
.mp-btn-container button,
.mp-btn-container .mercadopago-button {
    background-color: #009EE3 !important;
    color: white !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 30px !important;
    border-radius: 12px !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 158, 227, 0.3) !important;
    transition: all 0.3s ease !important;
    font-size: 1.1rem !important;
}

.mp-btn-container a:hover,
.mp-btn-container button:hover,
.mp-btn-container .mercadopago-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 158, 227, 0.4) !important;
    background-color: #008cd1 !important;
}

/* Fix for duplicate text: Hide original text while keeping the button functional */
.mp-btn-container a {
    font-size: 0 !important;
}

.mp-btn-container a::before {
    content: 'Pagar con Mercado Pago';
    font-size: 1.1rem !important;
    visibility: visible;
}

.mp-btn-container a::after {
    display: none !important;
}

/* Highlight for Featured Ad row in table */
.featured-order-item {
    background-color: #fff9db !important;
    /* Soft yellow highlight */
    border: 2px solid #fab005 !important;
    position: relative;
    box-shadow: 0 4px 10px rgba(250, 176, 5, 0.1);
}

.featured-order-item td {
    padding: 20px 15px !important;
    vertical-align: middle !important;
}

.featured-item-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #856404;
    display: flex;
    align-items: center;
}

.featured-item-title::before {
    content: '\f521';
    /* Crown icon icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 12px;
    color: #fab005;
    font-size: 1.4rem;
}

.featured-order-item em {
    color: #f08c00;
    font-weight: 700;
}

/* Thanks page highlight button */
.premium-featured-btn {
    background: linear-gradient(135deg, #009640 0%, #00c853 100%) !important;
    border: none !important;
    padding: 15px 30px !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    border-radius: 50px !important;
    box-shadow: 0 10px 20px rgba(0, 150, 64, 0.2) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white !important;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
}

.premium-featured-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 150, 64, 0.3) !important;
    color: white !important;
    text-decoration: none !important;
}