:root {
    --brand: #236fa1;
    --brand-dark: #164a6d;
    --brand-light: #e8f1f8;
    --brand-lighter: #f5f9fc;
    --accent: #f39c12;
    --accent-dark: #d68910;
    --success: #27ae60;
    --success-light: #eaf6ee;
    --text: #2c3e50;
    --text-muted: #7f8c8d;
    --border: #e0e6ed;
    --bg: #f5f7fa;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(35,111,161,0.15);
}

/* ============= SITE HEADER MOCK ============= */
.site-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.site-logo {
    font-weight: 800;
    font-size: 22px;
    color: var(--brand);
    letter-spacing: -0.5px;
}
.site-logo span { color: var(--text-muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.site-nav {
    display: flex;
    gap: 22px;
    align-items: center;
    font-size: 14px;
}
.site-nav a { color: var(--text); text-decoration: none; }
.site-nav a:hover { color: var(--brand); }
.site-nav a.active { color: var(--brand); font-weight: 600; }
.lang-switcher {
    display: flex;
    gap: 4px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
    font-size: 12px;
}
.lang-switcher a { color: var(--text-muted); padding: 4px 8px; border-radius: 4px; text-decoration: none; }
.lang-switcher a.active { background: var(--brand-light); color: var(--brand); font-weight: 600; }

/* ============= HERO ============= */
.hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: white;
    padding: 48px 32px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.hero::before { width: 400px; height: 400px; top: -200px; right: -100px; }
.hero::after { width: 300px; height: 300px; bottom: -150px; left: -50px; }
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; }
.hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}
.hero .subtitle {
    font-size: 17px;
    opacity: 0.95;
    margin-bottom: 32px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ============= SEARCH ============= */
.search-container {
    display: flex;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto 20px;
    flex-wrap: wrap;
}
.search-box {
    flex: 1;
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    min-width: 300px;
}
.search-icon {
    display: flex;
    align-items: center;
    padding: 0 14px 0 18px;
    color: var(--text-muted);
    font-size: 18px;
}
.search-box input {
    flex: 1;
    padding: 16px 0;
    border: none;
    font-size: 15px;
    outline: none;
    font-family: inherit;
}
.search-box button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0 28px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    font-family: inherit;
}
.search-box button:hover { background: var(--accent-dark); }

.geolocation-btn {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    padding: 14px 22px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.geolocation-btn:hover {
    background: white;
    color: var(--brand);
    border-color: white;
}
.geolocation-btn.active {
    background: var(--success);
    border-color: var(--success);
    color: white;
}
.geolocation-status {
    margin-top: 14px;
    font-size: 13px;
    opacity: 0.9;
    min-height: 20px;
}

.head{
    margin-bottom: 5px;
}

/* ============= FILTERS ============= */
.filters {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 32px 32px;
    position: sticky;
    top: 65px;
    z-index: 90;
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
}
.filters-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr auto auto;
    gap: 24px;
    align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.filter-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    font-weight: 700;
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
    padding: 11px 13px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    background: white;
    transition: all 0.15s;
    color: var(--text);
    user-select: none;
    font-weight: 500;
}
.chip:hover { border-color: var(--brand); background: var(--brand-lighter); }
.chip.active {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}
select {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    color: var(--text);
    font-family: inherit;
}
select:focus { border-color: var(--brand); outline: none; }
.view-toggle {
    display: flex;
    background: var(--bg);
    border-radius: 8px;
    padding: 3px;
    border: 1.5px solid var(--border);
}
.view-toggle button {
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--text-muted);
    font-family: inherit;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.view-toggle button.active {
    background: white;
    color: var(--brand);
    box-shadow: var(--shadow-sm);
}

/* ============= MAIN CONTENT ============= */
.content {
    max-width: 1400px;
    margin: 32px auto;
    padding: 0 32px;
}
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.results-count {
    font-size: 15px;
    color: var(--text);
}
.results-count strong { color: var(--brand); font-weight: 700; }
.reset-btn {
    padding: 8px 16px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    font-family: inherit;
    transition: all 0.2s;
}
.reset-btn:hover { color: var(--brand); border-color: var(--brand); }

/* ============= MAP VIEW ============= */
.map-view { display: none; }
.map-view.active { display: block; }
#map {
    height: 620px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.pw-marker {
    background: var(--brand);
    color: white;
    width: 40px; height: 40px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
.pw-marker.online { background: var(--success); }
.pw-marker.you { background: var(--accent); }
.pw-marker span {
    transform: rotate(45deg);
    font-weight: 700;
    font-size: 11px;
}

/* ============= LIST VIEW ============= */
.list-view { display: block; }
.list-view.hidden { display: none; }

/* ============= COUNTRY SECTION ============= */
.country-section {
    margin-bottom: 32px;
}
.country-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--brand);
}
.country-flag {
    font-size: 36px;
    line-height: 1;
}
.country-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: -0.5px;
}
.country-stats {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: auto;
    display: flex;
    gap: 12px;
    align-items: center;
}
.country-stat {
    background: var(--brand-light);
    color: var(--brand);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}
.country-section.secondary .country-header { border-bottom-color: var(--text-muted); }
.country-section.secondary .country-name { color: var(--text-muted); }
.country-section.online .country-header { border-bottom-color: var(--success); }
.country-section.online .country-name { color: var(--success); }

/* ============= REGION ACCORDION ============= */
.region {
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s;
}
.region:hover { box-shadow: var(--shadow); }
.region-header {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    transition: background 0.15s;
    user-select: none;
}
.region-header:hover { background: var(--brand-lighter); }
.region-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.region-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.region-info h3 {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 3px;
    font-weight: 700;
}
.region-info .meta {
    font-size: 13px;
    color: var(--text-muted);
}
.region-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.count-badge {
    background: var(--brand);
    color: white;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
}
.arrow {
    color: var(--brand);
    font-size: 20px;
    transition: transform 0.3s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.region.open .arrow { transform: rotate(90deg); }
.region-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.region.open .region-body {
    max-height: 4000px;
}
.region-body-inner {
    padding: 4px 24px 24px;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 16px;
    margin-top: 4px;
}

/* ============= AGENCY CARD ============= */
.agency {
    background: var(--brand-lighter);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.2s;
    position: relative;
}
.agency:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.agency-top {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.agency-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: white;
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
    border: 2px solid var(--brand-light);
    text-align: center;
    padding: 4px;
    line-height: 1.1;
}
.agency-title { flex: 1; min-width: 0; }
.agency-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}
.agency-legal {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.agency-labels {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.label-city {
    background: var(--brand-light);
    color: var(--brand-dark);
}
.label-online {
    background: var(--success-light);
    color: var(--success);
}
.label-distance {
    background: #fef3e0;
    color: var(--accent-dark);
}
.label-nearest {
    background: var(--accent);
    color: white;
}

.agency-details {
    background: white;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
    font-size: 14px;
}
.detail-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    align-items: baseline;
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
}
.detail-row:last-child { border-bottom: 0; }
.detail-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.detail-value { color: var(--text); }
.detail-value a { color: var(--brand); text-decoration: none; }
.detail-value a:hover { text-decoration: underline; }
.detail-value .phone-list { display: flex; flex-direction: column; gap: 3px; }
.map-link {
    display: inline-block;
    font-size: 12px;
    color: var(--brand);
    margin-top: 4px;
    text-decoration: none;
    font-weight: 600;
}
.map-link:hover { text-decoration: underline; }

/* Social icons */
.socials {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s;
}
.social:hover { border-color: var(--brand); background: var(--brand-lighter); }
.social-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dot-ig { background: linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.dot-fb { background: #1877F2; }
.dot-tg { background: #0088cc; }
.dot-vb { background: #7360F2; }
.dot-wa { background: #25D366; }

/* Certifications */
.agency-certs {
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    border-top: 3px solid var(--brand);
}
.certs-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.certs-count {
    color: var(--brand);
    background: var(--brand-light);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}
.certs-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    border: 1.5px solid;
    background: white;
    line-height: 1;
}
.cert-badge.tier-expert { border-width: 2px; }
.cert-badge.tier-master {
    border-width: 2px;
    color: white !important;
}
.badge-msc { color: #003399; border-color: #003399; }
.badge-msc.tier-master { background: #003399; }
.badge-ncl { color: #003057; border-color: #003057; }
.badge-ncl.tier-master { background: #003057; }
.badge-rci { color: #0060a9; border-color: #0060a9; }
.badge-rci.tier-master { background: #0060a9; }
.badge-celebrity { color: #002c5f; border-color: #002c5f; }
.badge-celebrity.tier-master { background: #002c5f; }
.badge-costa { color: #b8860b; border-color: #b8860b; }
.badge-costa.tier-master { background: #f5b91b; color: #4a3800 !important; }
.badge-explora { color: #3a7a80; border-color: #3a7a80; }
.badge-explora.tier-master { background: #5eb2b8; }
.badge-celestyal { color: #0e7876; border-color: #0e7876; }
.badge-celestyal.tier-master { background: #16a5a3; }
.badge-azamara { color: #5a3d80; border-color: #5a3d80; }
.badge-azamara.tier-master { background: #5a3d80; }

.agency-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}
.btn-primary, .btn-secondary {
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}
.btn-primary {
    background: var(--brand);
    color: white;
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary {
    background: white;
    color: var(--brand);
    border: 1.5px solid var(--brand);
}
.btn-secondary:hover { background: var(--brand-lighter); }

/* ============= EMPTY STATE ============= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    border: 2px dashed var(--border);
}
.empty-state .icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}
.empty-state h3 {
    color: var(--text);
    margin-bottom: 6px;
}
.empty-state p { color: var(--text-muted); }

/* ============= LEGEND ============= */
.legend {
    background: white;
    border-radius: 12px;
    padding: 32px;
    margin-top: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.legend h2 {
    font-size: 24px;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 800;
}
.legend-subtitle {
    color: var(--text-muted);
    margin-bottom: 24px;
}
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.tier-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--brand-lighter);
}
.tier-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 8px;
}
.tier-example {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    border: 1.5px solid var(--brand);
    color: var(--brand);
    background: white;
}
.tier-example.expert { border-width: 2px; }
.tier-example.master { border-width: 2px; background: var(--brand); color: white; }
.tier-desc { font-size: 13px; color: var(--text-muted); }
.companies-title {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 14px;
    font-weight: 700;
}
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}
.company-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--brand-lighter);
    border-radius: 8px;
    font-size: 13px;
}

/* ============= JOIN CTA ============= */
.join-cta {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: white;
    padding: 60px 32px;
    text-align: center;
    border-radius: 16px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}
.join-cta::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    top: -200px; right: -100px;
}
.join-cta-inner { max-width: 800px; margin: 0 auto; position: relative; }
.join-cta h2 {
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 800;
}
.join-cta p.lead {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 30px;
    line-height: 1.5;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    text-align: left;
}
.benefit {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}
.benefit .icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}
.benefit h4 { font-size: 15px; margin-bottom: 6px; font-weight: 700; }
.benefit p { font-size: 13px; opacity: 0.9; line-height: 1.5; }
.btn-join {
    background: var(--accent);
    color: white;
    padding: 16px 42px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-join:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ============= FOOTER ============= */
.site-footer {
    background: var(--brand-dark);
    color: rgba(255,255,255,0.8);
    padding: 32px;
    text-align: center;
    font-size: 13px;
    margin-top: 40px;
}
.site-footer a { color: white; text-decoration: none; }

/* ============= RESPONSIVE ============= */
@media (max-width: 900px) {
    .site-header { padding: 12px 16px; }
    .site-nav a { display: none; }
    .site-nav a.active, .lang-switcher { display: flex; }
    .hero { padding: 32px 20px; }
    .hero h1 { font-size: 26px; }
    .hero .subtitle { font-size: 15px; }
    .filters { padding: 16px 20px; }
    .filters-inner { grid-template-columns: 1fr; gap: 14px; }
    .content { padding: 0 16px; }
    .country-header { flex-wrap: wrap; }
    .country-stats { margin-left: 0; width: 100%; }
    .tiers-grid, .benefits-grid { grid-template-columns: 1fr; }
    .agency-actions { flex-wrap: wrap; }
    .join-cta { padding: 40px 20px; }
    .join-cta h2 { font-size: 24px; }
    .region-header { padding: 16px 18px; }
    .region-info h3 { font-size: 15px; }
}
