/* ============================================================
   COSTA LIFE GUIDE — Premium Design System (GYG-Inspired)
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
    /* Primary palette */
    --primary: #0057b8;
    --primary-dark: #003f8a;
    --primary-light: #e8f2ff;
    --primary-ultra-light: #f0f7ff;

    /* Accent */
    --accent: #ff5722;
    --accent-hover: #e64a19;
    --accent-light: #fff3ef;

    /* Teal (verified badges) */
    --teal: #00897b;
    --teal-light: #e0f2f1;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #1a1a2e;

    /* Semantic */
    --text-primary: #1a1a2e;
    --text-secondary: #5a5a72;
    --text-muted: #8e8e9e;
    --bg-body: #f8f9fb;
    --bg-card: #ffffff;

    /* Ratings */
    --star-color: #ffb300;

    /* WhatsApp */
    --whatsapp: #25d366;
    --whatsapp-hover: #1da855;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.14);
    --shadow-card-hover: 0 12px 28px rgba(0, 87, 184, 0.12);

    /* Layout */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;
    --max-width: 1200px;
    --header-height: 64px;

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-mid: 0.3s var(--ease-out);
    --transition-slow: 0.5s var(--ease-out);
}

body[data-theme="dark"] {
    --white: #111827;
    --gray-50: #0f172a;
    --gray-100: #111827;
    --gray-200: #1f2937;
    --gray-300: #334155;
    --gray-400: #475569;
    --gray-500: #64748b;
    --gray-600: #94a3b8;
    --gray-700: #cbd5e1;
    --gray-800: #e2e8f0;
    --gray-900: #f8fafc;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-body: #09111d;
    --bg-card: #0f172a;
    --shadow-card-hover: 0 12px 28px rgba(0, 0, 0, 0.4);
}

body[data-theme="dark"] header {
    background: rgba(17, 24, 39, 0.96);
    border-bottom-color: var(--gray-200);
}

body[data-theme="dark"] .nav-link:hover,
body[data-theme="dark"] .dropdown-highlight,
body[data-theme="dark"] .profile-dropdown,
body[data-theme="dark"] .nav-dropdown-menu,
body[data-theme="dark"] .wishlist-sidebar,
body[data-theme="dark"] .wishlist-overlay {
    background-color: var(--bg-card);
}

body[data-theme="dark"] .nav-link,
body[data-theme="dark"] .profile-dropdown a,
body[data-theme="dark"] .profile-dropdown h3,
body[data-theme="dark"] .dropdown-highlight span,
body[data-theme="dark"] .wishlist-item-title,
body[data-theme="dark"] .wishlist-item-price,
body[data-theme="dark"] .empty-wishlist p,
body[data-theme="dark"] .nav-icon-btn {
    color: var(--text-primary);
}

body[data-theme="dark"] .dropdown-highlight span,
body[data-theme="dark"] .profile-dropdown .dropdown-divider {
    border-color: var(--gray-300);
}

body[data-theme="dark"] .card,
body[data-theme="dark"] .article-card,
body[data-theme="dark"] .featured-card,
body[data-theme="dark"] .footer,
body[data-theme="dark"] .newsletter {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1200;
    display: none;
}

.cookie-banner.open {
    display: block;
}

.cookie-content {
    max-width: 980px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 1rem 1.25rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
    align-items: center;
}

.cookie-content h3 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.cookie-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.legal-page {
    padding: 4rem 0 5rem;
}

.legal-shell {
    max-width: 980px;
    margin: 0 auto;
}

.legal-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
    background: var(--primary-ultra-light);
    color: var(--primary);
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.legal-card h1 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal-intro {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.legal-grid article {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.legal-grid h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.legal-grid p,
.legal-grid a {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .cookie-content,
    .legal-grid {
        grid-template-columns: 1fr;
    }

    .legal-card {
        padding: 1.25rem;
    }
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

/* --- UTILITY: SCROLL REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 87, 184, 0.3);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--gray-300);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-ultra-light);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.25);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 87, 34, 0.35);
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.97);
}

.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
}

.logo span {
    color: var(--accent);
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.nav-dropdown {
    position: relative;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
    border: none;
    background: transparent;
}

.nav-link:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

.nav-link i.fa-chevron-down {
    font-size: 0.6rem;
    transition: transform var(--transition-fast);
}

.nav-link:hover i.fa-chevron-down {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 190px;
    padding: 0.4rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.35rem);
    transition: all var(--transition-fast);
    z-index: 20;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

/* Nav Actions (right side) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.lang-switch:hover {
    background-color: var(--gray-100);
    color: var(--text-primary);
}

.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.nav-icon-btn:hover {
    background-color: var(--gray-100);
    color: var(--text-primary);
    border-color: var(--gray-200);
}

/* Mobile Hamburger */
.mobile-home-link {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border: none;
    background: none;
    gap: 5px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.hamburger:hover {
    background-color: var(--gray-100);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-mid);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%);
    color: var(--text-primary);
    text-align: center;
    padding: 4rem 1.5rem 3.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(0, 87, 184, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.25rem;
    line-height: 1.6;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* --- SERVICE PATHS --- */
.service-paths {
    max-width: var(--max-width);
    margin: 2.5rem auto 0;
    padding: 0 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.8fr);
    align-items: center;
    gap: 2rem;
    position: relative;
}

.service-paths::before {
    content: '';
    position: absolute;
    inset: -1rem 0 1.5rem;
    z-index: -1;
    border: 1px solid #cfe0f4;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, #f0f7ff 0%, #ffffff 72%);
}

.service-paths-intro .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-pill);
    background: var(--primary-light);
}

.service-paths-intro h2 {
    margin-top: 0.45rem;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.15;
}

.service-paths-intro p {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.service-paths-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.service-path {
    min-height: 142px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid #d8e2ee;
    border-top: 3px solid var(--primary);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 6px 18px rgba(0, 63, 138, 0.08);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.service-path:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 12px 26px rgba(0, 63, 138, 0.16);
}

.service-path-trade {
    border-top-color: var(--teal);
}

.service-path-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 1rem;
}

.service-path-trade .service-path-icon {
    color: var(--teal);
    background: var(--teal-light);
}

.service-path-copy {
    display: grid;
    gap: 0.35rem;
}

.service-path-copy strong {
    font-size: 1rem;
}

.service-path-copy span {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.45;
}

.service-path-arrow {
    color: var(--primary);
}

/* Search Box */
.search-box {
    background: var(--white);
    padding: 0.4rem;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    max-width: 640px;
    margin: 0 auto;
    transition: box-shadow var(--transition-mid), border-color var(--transition-mid);
}

.search-box:focus-within {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.location-select {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    color: var(--text-primary);
    background-color: transparent;
    border-right: 1.5px solid var(--gray-200);
    cursor: pointer;
    min-width: 180px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239e9e9e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.search-input {
    flex: 1;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    color: var(--text-primary);
    background: transparent;
    min-width: 0;
}

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

.search-box .btn-primary {
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================================
   LAYOUT CONTAINER
   ============================================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.content-section {
    margin-bottom: 3.5rem;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.section-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.icon-accent {
    color: var(--accent);
}

.icon-primary {
    color: var(--primary);
}

.view-all {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.view-all:hover {
    background-color: var(--primary-ultra-light);
    color: var(--primary-dark);
}

/* ============================================================
   CARDS GRID — Activity Cards (GetYourGuide Style)
   ============================================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* Article / Activity Card */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-mid);
    display: flex;
    flex-direction: row;
    cursor: pointer;
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
    border-color: transparent;
}

.card-img-wrapper {
    position: relative;
    width: 160px;
    min-height: 160px;
    flex-shrink: 0;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-img {
    transform: scale(1.06);
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.card-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.card-wishlist:hover {
    background: var(--white);
    color: var(--accent);
    transform: scale(1.1);
}

.card-body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.card-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a {
    color: inherit;
}

.card-title a:hover {
    color: var(--primary);
}

.card-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-rating i {
    color: var(--star-color);
    font-size: 0.75rem;
}

.card-rating .rating-count {
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0.15rem;
}

.card-price {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
}

.card-price strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   TRADESMEN / SERVICE CARDS
   ============================================================ */
.trade-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-mid);
    position: relative;
    overflow: hidden;
}

.trade-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--teal));
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.trade-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
    border-color: transparent;
}

.trade-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.trade-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    background: #fff8e1;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
}

.rating i {
    color: var(--star-color);
    font-size: 0.8rem;
}

.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: var(--teal-light);
    color: var(--teal);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.badge-verified i {
    font-size: 0.7rem;
}

.trade-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.trade-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trade-info i {
    width: 18px;
    text-align: center;
    color: var(--primary);
    font-size: 0.85rem;
}

.contact-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.btn-call {
    background-color: var(--gray-100);
    color: var(--text-primary);
    border: 1px solid var(--gray-300);
    font-size: 0.85rem;
}

.btn-call:hover {
    background-color: var(--gray-200);
    border-color: var(--gray-400);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: var(--white);
    font-size: 0.85rem;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-1px);
}

/* ============================================================
   AD BANNER — CTA
   ============================================================ */
.ad-banner {
    background: linear-gradient(135deg, #0057b8 0%, #003f8a 50%, #1a1a2e 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ad-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.ad-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.ad-content {
    position: relative;
    z-index: 1;
}

.ad-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ad-content p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

.btn-banner {
    background-color: var(--white);
    color: var(--primary);
    font-weight: 700;
    position: relative;
    z-index: 1;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.75rem;
}

.btn-banner:hover {
    background-color: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .ad-banner {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        align-items: center;
    }
}

/* ============================================================
   FOOTER — Professional Multi-Column
   ============================================================ */
footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 3.5rem 1.5rem 2rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand .logo {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-brand .logo span {
    color: var(--accent);
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--gray-500);
    max-width: 280px;
}

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-column a {
    font-size: 0.875rem;
    color: var(--gray-500);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--gray-400);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.footer-credit {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--gray-500);
}

.footer-credit strong {
    color: var(--gray-700);
    font-weight: 700;
}

.footer-credit a {
    color: var(--gray-600);
    font-weight: 600;
}

.footer-credit a:hover {
    color: var(--gray-800);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* Legacy footer (fallback for articles) */
.footer-links {
    margin-top: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    margin: 0 0.5rem;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        gap: 1rem;
    }

    .nav-actions {
        gap: 0.35rem;
    }

    /* Header mobile */
    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
        border-radius: var(--radius-sm);
    }

    .mobile-home-link {
        display: flex;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        padding: 0 0 0.35rem 1rem;
        border: none;
        box-shadow: none;
        transform: none;
        display: none;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu,
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-link:hover {
        background-color: var(--gray-100);
    }

    .hamburger {
        display: flex;
    }

    .articles-page .nav-actions > .btn-outline {
        display: none;
    }

    #btn-list-business {
        display: none;
    }

    /* Hero mobile */
    .hero {
        padding: 2.5rem 1rem 2rem;
    }

    .hero h1 {
        font-size: 1.85rem;
        letter-spacing: -0.5px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .search-box {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 0.5rem;
    }

    .location-select {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
        width: 100%;
        min-width: unset;
    }

    .search-input {
        width: 100%;
    }

    .search-box .btn-primary {
        width: 100%;
        border-radius: var(--radius-sm);
    }

    .service-paths {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2rem;
        padding: 1.25rem 1rem 2.25rem;
    }

    .service-paths::before {
        inset: 0 0 1.25rem;
    }

    .service-paths-grid {
        grid-template-columns: 1fr;
    }

    .service-path {
        min-height: 118px;
    }

    /* Cards */
    .grid {
        grid-template-columns: 1fr;
    }

    .card {
        flex-direction: column;
    }

    .card-img-wrapper {
        width: 100%;
        min-height: 200px;
        height: 200px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content {
        grid-template-columns: 1fr;
    }

    .cookie-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .navbar {
        padding: 0 0.9rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .lang-switch {
        display: none;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-actions .btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
    }

    .legal-card {
        padding: 1.1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .card-img-wrapper {
        width: 140px;
        min-height: 140px;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

/* ============================================================
   PROFILE DROPDOWN
   ============================================================ */
.nav-profile-container {
    position: relative;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 280px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1050;
}

.profile-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: var(--white);
    transform: rotate(45deg);
    border-top: 1px solid var(--gray-200);
    border-left: 1px solid var(--gray-200);
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.25rem 0.5rem;
}

.dropdown-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.notification-btn {
    background: var(--gray-100);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.notification-btn:hover {
    background: var(--gray-200);
}

.dropdown-menu {
    padding: 0.5rem 0 1rem;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: background var(--transition-fast);
}

.dropdown-menu li a i:first-child {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.dropdown-menu li a:hover {
    background: var(--gray-50);
}

.dropdown-highlight a {
    background: var(--gray-100);
}

.dropdown-highlight a:hover {
    background: var(--gray-200);
}

.dropdown-highlight span {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chevron-right {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dropdown-highlight span .chevron-right {
    margin-left: 0;
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0.5rem 0;
}

/* ============================================================
   WISHLIST SIDEBAR
   ============================================================ */
.wishlist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-mid);
    backdrop-filter: blur(2px);
}

.wishlist-overlay.open {
    opacity: 1;
    visibility: visible;
}

.wishlist-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background: var(--white);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.wishlist-sidebar.open {
    transform: translateX(0);
}

.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.wishlist-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.close-wishlist {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.close-wishlist:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.wishlist-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-wishlist {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    color: var(--text-secondary);
    padding: 2rem;
}

.empty-wishlist i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.empty-wishlist p:first-of-type {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-wishlist p:last-of-type {
    font-size: 0.95rem;
}

/* Wishlist Item Card */
.wishlist-item {
    display: flex;
    gap: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    position: relative;
    transition: all var(--transition-fast);
}

.wishlist-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--gray-300);
}

.wishlist-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.wishlist-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wishlist-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-item-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.wishlist-item-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--white);
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all var(--transition-fast);
}

.wishlist-item-remove:hover {
    color: var(--accent);
    background: var(--gray-50);
}

/* ============================================================
   AUTH MODAL
   ============================================================ */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-mid);
    backdrop-filter: blur(2px);
}

.auth-overlay.open {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    background: var(--white);
    width: 100%;
    max-width: 440px;
    border-radius: 1.25rem;
    padding: 2.5rem 2.5rem 2rem;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95) translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-overlay.open .auth-modal {
    transform: scale(1) translateY(0);
}

.auth-close {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: color var(--transition-fast);
    padding: 0.25rem;
}

.auth-close:hover {
    color: var(--accent);
}

.auth-title {
    text-align: center;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-input {
    width: 100%;
    padding: 1.15rem 1rem;
    border: 1.5px solid #d93025;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    outline: none;
    color: #d93025;
    font-weight: 500;
    transition: border-color var(--transition-fast);
}

.auth-input::placeholder {
    color: #d93025;
}

.auth-input:focus {
    border-color: var(--primary);
    color: var(--text-primary);
}

.auth-input:focus::placeholder {
    color: var(--text-muted);
}

.auth-input:disabled {
    background: var(--gray-50);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.auth-btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-btn-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.auth-status {
    min-height: 1.25rem;
    margin: -0.5rem 0 0;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
}

.auth-status.error {
    color: #c62828;
}

.auth-status.success {
    color: #247a4b;
}

.auth-status.info {
    color: var(--text-secondary);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    margin: 1.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-200);
}

.auth-divider span {
    padding: 0 1rem;
}

.auth-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-btn-social {
    width: 100%;
    min-height: 52px;
    padding: 0.95rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.auth-btn-social:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.10);
}

.auth-btn-social img,
.auth-btn-social i {
    font-size: 1.05rem;
    width: 1.2rem;
    text-align: center;
    flex-shrink: 0;
}

.auth-legal {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: left;
}

.auth-legal a {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: underline;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}