/* ============================================
   ServiceAzi — Design System
   Modern, clean, Apple-inspired
   ============================================ */

:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #DBEAFE;
    --text: #1F2937;
    --text-light: #6B7280;
    --text-lighter: #9CA3AF;
    --bg: #FFFFFF;
    --bg-alt: #F9FAFB;
    --bg-card: #FFFFFF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.04), 0 10px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 8px 30px rgba(0,0,0,0.12);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    height: 72px;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 36px;
    width: auto;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    padding: 10px 16px;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    background: var(--bg);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.nav-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link-primary {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.nav-link-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.nav-user {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-close {
    display: none;
}

/* Mobile menu — outside navbar for proper z-index */
.navbar-mobile-menu {
    display: none;
}

.navbar-mobile-menu.open {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--bg);
    padding: 24px;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-xl);
    z-index: 1100;
    overscroll-behavior: contain;
}

.navbar-mobile-menu .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    background: var(--bg);
    cursor: pointer;
    margin-bottom: 16px;
    align-self: flex-end;
    transition: all var(--transition);
}

.navbar-mobile-menu .nav-close:hover {
    border-color: var(--error);
    background: #FEF2F2;
    color: var(--error);
}

.navbar-overlay {
    display: none;
}

.navbar-overlay.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1050;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 100px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: var(--bg);
    color: var(--text);
    border: 1.5px solid var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: var(--radius-xs);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 0.9375rem;
    border-radius: 100px;
}

.btn-block {
    width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 60%, #FFFFFF 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.03) 40%, transparent 70%);
    pointer-events: none;
    animation: float-orb 8s ease-in-out infinite;
}

@keyframes float-orb {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-20px); }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    padding: 10px 20px;
    border-radius: 100px;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 32px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, #1D4ED8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 48px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 56px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

.trust-item svg {
    color: var(--success);
}

/* ============================================
   Steps Section — Timeline Style
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 52px;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-light));
    z-index: 0;
}

.step-card {
    text-align: center;
    padding: 0 24px;
    background: transparent;
    border: none;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

.step-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.step-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.step-number {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 10px;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 280px;
    margin: 0 auto;
}

/* ============================================
   Features Grid (Homepage)
   ============================================ */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.highlight-card {
    padding: 40px 32px;
    border-radius: 20px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.highlight-featured {
    background: linear-gradient(135deg, #1E3A5F 0%, #1E293B 100%);
    border: none;
    color: #fff;
}

.highlight-featured h3 {
    color: #fff;
}

.highlight-featured p {
    color: #94A3B8;
}

.highlight-emoji {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.highlight-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.highlight-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 28px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Stats Showcase */
.stats-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0;
    background: var(--bg);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-showcase-item {
    padding: 56px 32px;
    border-right: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.stat-showcase-item:last-child {
    border-right: none;
}

.stat-showcase-item:hover {
    background: var(--primary-light);
    transform: scale(1.02);
    z-index: 1;
}

.stat-showcase-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, #1D4ED8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-showcase-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Premium Card (wraps sections) */
.premium-card {
    background: linear-gradient(145deg, #F8FAFC 0%, #F1F5F9 100%);
    border-radius: 28px;
    padding: 72px 56px;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Install App Block */
.install-block {
    text-align: center;
    padding: 72px 48px;
    background: var(--bg);
    border-radius: 24px;
    border: 2px dashed var(--border);
    position: relative;
}

.install-block:hover {
    border-color: var(--primary-light);
}

.install-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--primary);
}

.install-block h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.install-block p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 28px;
}

.install-hint {
    font-size: 0.8125rem !important;
    color: var(--text-lighter) !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}

/* Install Guide Overlay */
.install-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.install-overlay-card {
    background: var(--bg);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    max-width: 360px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.install-overlay-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-lighter);
    cursor: pointer;
}

.install-overlay-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.install-overlay-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.install-overlay-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.install-step {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.5;
}

.install-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* CTA Block */
.cta-block {
    text-align: center;
    padding: 80px 56px;
    background: linear-gradient(135deg, #1E3A5F 0%, #1E293B 100%);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    border: none;
}

.cta-block::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.cta-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-light);
    background: rgba(59, 130, 246, 0.15);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.cta-content {
    position: relative;
}

.cta-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: #fff;
}

.cta-content p {
    font-size: 1.0625rem;
    color: #94A3B8;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 36px;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    padding: 32px;
    transition: all var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Forms
   ============================================ */
.form-container {
    max-width: 440px;
    margin: 0 auto;
    padding: 140px 24px 80px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    transition: all var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: var(--text-lighter);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.form-footer a {
    color: var(--primary);
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-xs);
    font-size: 0.875rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-error {
    background: #FEF2F2;
    color: var(--error);
    border: 1px solid #FECACA;
}

.alert-success {
    background: #F0FDF4;
    color: var(--success);
    border: 1px solid #BBF7D0;
}

/* ============================================
   Map Page
   ============================================ */
.map-page {
    padding-top: 72px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Navbar full-width on map page */
.page-map .navbar-inner {
    max-width: 100%;
    padding: 0 24px;
}

.page-map .navbar {
    touch-action: manipulation;
}

/* Service page — full-width layout like map */
.page-service .navbar-inner {
    max-width: 100%;
    padding: 0 24px;
}

.page-service .service-page .container {
    max-width: 100%;
    padding: 0 24px;
}

/* Full-width navbar and footer on all pages */
.navbar-inner {
    max-width: 100%;
    padding: 0 24px;
}

.footer .container {
    max-width: 100%;
    padding: 0 24px;
}

body.page-map {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}

.map-toolbar {
    padding: 12px 24px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 800;
    touch-action: manipulation;
}

.toolbar-greeting {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.toolbar-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Dropdown filter */
.map-dropdown-wrapper {
    position: relative;
}

.map-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.map-dropdown-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.map-dropdown-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.dropdown-arrow {
    transition: transform var(--transition);
}

.map-dropdown-btn.open .dropdown-arrow {
    transform: rotate(180deg);
}

.map-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 900;
    display: none;
}

.map-dropdown-menu.open {
    display: block;
}

.dropdown-search {
    padding: 4px 4px 8px;
}

.dropdown-search input {
    width: 100%;
    padding: 8px 12px;
    font-family: var(--font);
    font-size: 0.8125rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    outline: none;
    transition: border-color var(--transition);
}

.dropdown-search input:focus {
    border-color: var(--primary);
}

.dropdown-list {
    max-height: 280px;
    overflow-y: auto;
}

.dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.dropdown-list::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: background var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-alt);
}

.dropdown-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.map-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 6px 14px;
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    background: var(--bg);
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-chip:hover,
.filter-chip.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.map-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    touch-action: none;
    min-height: 0;
}

#map {
    width: 100%;
    height: 100%;
    touch-action: manipulation;
}

/* Make Leaflet attribution smaller and subtle */
.leaflet-control-attribution {
    font-size: 9px !important;
    opacity: 0.5;
    background: rgba(255,255,255,0.6) !important;
    padding: 2px 6px !important;
}

.leaflet-control-attribution:hover {
    opacity: 1;
}

.map-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    z-index: 500;
    gap: 16px;
}

.map-loading p {
    font-size: 0.9375rem;
    color: var(--text-light);
    font-weight: 500;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Map popup */
.map-popup {
    font-family: var(--font);
    min-width: 220px;
}

.map-popup h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.map-popup p {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.map-popup .popup-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    margin-bottom: 8px;
}

.popup-status.open {
    background: #D1FAE5;
    color: #065F46;
}

.popup-status.closed {
    background: #FEE2E2;
    color: #991B1B;
}

.map-popup .popup-link {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 4px;
}

/* Nearest service badge */
.nearest-badge {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    white-space: nowrap;
}

.nearest-badge.visible {
    display: flex;
}

.nearest-badge .badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    flex-shrink: 0;
}

.nearest-badge .badge-text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
}

.nearest-badge .badge-text span {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   Service Page
   ============================================ */
.service-page {
    padding: 112px 0 80px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 24px;
    transition: color var(--transition);
}

.back-link:hover {
    color: var(--primary);
}

.service-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.service-title h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.service-title .service-address {
    font-size: 0.9375rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.service-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
    min-width: 0;
}

.service-info-grid > div {
    min-width: 0;
}

.service-description {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--text-light);
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.service-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.meta-card {
    padding: 20px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.meta-card h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-lighter);
    margin-bottom: 8px;
}

.meta-card p, .meta-card li {
    font-size: 0.9375rem;
    color: var(--text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.schedule-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
}

.schedule-list li:last-child {
    border-bottom: none;
}

.schedule-list .today {
    font-weight: 600;
    color: var(--primary);
}

.schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.schedule-header h4 {
    margin-bottom: 0;
}

.open-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
}

.open-status.is-open {
    background: #D1FAE5;
    color: #065F46;
}

.open-status.is-closed {
    background: #FEE2E2;
    color: #991B1B;
}

.service-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.category-tag {
    padding: 4px 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 100px;
}

/* Rating display */
.rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: var(--warning);
}

.star.empty {
    color: var(--border);
}

.rating-count {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Reviews */
.reviews-section {
    margin-top: 48px;
    overflow: hidden;
}

.reviews-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    word-wrap: break-word;
}

.review-card {
    padding: 24px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.review-author {
    font-weight: 600;
    font-size: 0.9375rem;
}

.review-date {
    font-size: 0.8125rem;
    color: var(--text-lighter);
}

.review-text {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Review form */
.review-form {
    margin-top: 32px;
    padding: 32px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    overflow: hidden;
}

.review-form h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.star-input {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.star-input button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--border);
    transition: color var(--transition);
    padding: 2px;
}

.star-input button.active,
.star-input button:hover {
    color: var(--warning);
}

/* ============================================
   Register Service Form
   ============================================ */
.register-service-page {
    padding: 120px 0 80px;
}

.register-service-page .form-container {
    max-width: 640px;
    padding: 0 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.checkbox-legal {
    align-items: flex-start;
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.5;
    gap: 10px;
}

.checkbox-legal a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    max-width: 400px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    padding: 24px;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner-content p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.cookie-banner-content p a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: var(--radius) var(--radius) 0 0;
        border-bottom: none;
    }
}

/* ============================================
   Legal Pages
   ============================================ */
.legal-page {
    padding: 120px 0 80px;
}

.legal-page h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

.legal-content {
    font-size: 0.9375rem;
    line-height: 1.9;
    color: var(--text-light);
    max-width: 800px;
}

.legal-empty {
    font-size: 0.9375rem;
    color: var(--text-lighter);
    font-style: italic;
}

/* ============================================
   Footer — Premium
   ============================================ */
.footer {
    background: var(--bg-alt);
    color: var(--text);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    gap: 80px;
    margin-bottom: 56px;
}

.footer-brand-block {
    flex-shrink: 0;
    max-width: 260px;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 38px;
    width: auto;
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
}

.footer-nav-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h5 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 0.9375rem;
    color: var(--text-light);
    transition: all var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 0.9375rem;
    color: var(--text-lighter);
    font-weight: 400;
}

.footer-developer {
    margin-top: 0;
}

.developer-logo {
    height: 46px;
    width: auto;
    opacity: 0.85;
    transition: opacity var(--transition);
    display: inline-block;
}

.developer-logo:hover {
    opacity: 1;
}

/* Developer logo in mobile menu */
.mobile-menu-developer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.mobile-menu-developer .developer-logo {
    height: 46px;
    opacity: 1;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .service-info-grid {
        grid-template-columns: 1fr;
    }

    .service-info-grid > .service-meta {
        order: -1;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-trust {
        gap: 16px;
    }

    .trust-item {
        font-size: 0.75rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .steps-grid::before {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stats-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-showcase-item {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 32px 24px;
    }

    .stat-showcase-item:nth-child(odd) {
        border-right: 1px solid var(--border-light);
    }

    .stat-showcase-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .stat-showcase-number {
        font-size: 1.75rem;
    }

    .premium-card {
        padding: 32px 20px;
        border-radius: 16px;
    }

    .cta-block {
        padding: 48px 24px;
        border-radius: 16px;
    }

    .hero-trust {
        gap: 16px;
    }

    .section {
        padding: 64px 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .navbar-links-desktop {
        display: none;
    }

    .navbar-mobile-menu.open .nav-link {
        width: 100%;
        justify-content: flex-start;
    }

    .navbar-toggle {
        display: flex;
    }

    .hero-buttons {
        gap: 12px;
    }

    .map-toolbar {
        padding: 10px 16px 14px;
    }

    .toolbar-filters {
        flex-wrap: nowrap;
    }

    .map-dropdown-btn {
        font-size: 0.8125rem;
        padding: 8px 12px;
    }

    .footer-nav-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-brand-block {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .service-header {
        flex-direction: column;
    }

    .review-card {
        padding: 16px;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .review-form {
        padding: 20px;
        margin-top: 24px;
    }

    .review-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .reviews-section h2 {
        font-size: 1.25rem;
    }

    .rating-count {
        display: block;
        margin-top: 4px;
    }

    .service-page {
        padding: 96px 0 60px;
    }

    .service-page .container {
        padding: 0 16px;
        overflow: hidden;
    }

    .meta-card {
        padding: 16px;
    }

    .meta-card p a {
        word-break: break-all;
    }

    .schedule-list li {
        font-size: 0.8125rem;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.875rem;
    }

    .hero p {
        font-size: 0.9375rem;
    }

    .container {
        padding: 0 16px;
    }

    .stat-showcase-number {
        font-size: 1.5rem;
    }

    .premium-card {
        padding: 28px 16px;
    }

    .cta-block {
        padding: 40px 20px;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   Profile Page
   ============================================ */
.profile-page {
    padding: 112px 0 60px;
}

.profile-card {
    max-width: 440px;
    margin: 0 auto;
}

.profile-card .form-header {
    margin-bottom: 24px;
}

.profile-card .form-header h1 {
    font-size: 1.75rem;
}

.profile-divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 28px 0 20px;
}

.profile-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.form-hint {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-lighter);
    margin-top: 4px;
}
