/* ================================================================
   AddressPage — Premium Business Directory
   Aesthetic: Luxury Editorial · Light Only · Teal + Warm Amber
   ================================================================ */

/* ── Custom Properties ──────────────────────────────────────── */
:root {
    --ap-teal:       #007a91;
    --ap-teal-deep:  #005f73;
    --ap-teal-mist:  #e8f6f8;
    --ap-teal-rgb:   0, 122, 145;
    --ap-amber:      #e8890c;
    --ap-amber-rgb:  232, 137, 12;
    --ap-ink:        #0e1726;
    --ap-ink-2:      #1c2a3d;
    --ap-slate:      #556677;
    --ap-dove:       #8899aa;
    --ap-silver:     #e4e8ec;
    --ap-snow:       #f5f7fa;
    --ap-white:      #ffffff;
    --ap-radius:     12px;
    --ap-radius-lg:  18px;
    --ap-shadow-sm:  0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
    --ap-shadow:     0 2px 8px rgba(0,0,0,0.04), 0 8px 28px rgba(0,0,0,0.06);
    --ap-shadow-lg:  0 4px 12px rgba(0,0,0,0.05), 0 20px 48px rgba(0,0,0,0.1);
    --ap-ease:       cubic-bezier(0.25, 0.1, 0.25, 1);
    --ap-font:       'Outfit', -apple-system, sans-serif;
}

/* ── Base ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; background: #1a1a2e; margin: 0; padding: 0; }

*:focus-visible {
    outline: 2px solid var(--ap-teal);
    outline-offset: 2px;
}

body {
    font-family: var(--ap-font);
    color: var(--ap-ink-2);
    background: #1a1a2e;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

.cd-public { background: #1a1a2e; }

/* Content areas stay light */
.cd-main { background: var(--ap-snow); }
.biz-page { background: #f0f4f8; }

a { color: var(--ap-teal); text-decoration: none; transition: color 0.2s var(--ap-ease); }
a:hover { color: var(--ap-teal-deep); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ap-font);
    color: var(--ap-ink);
    font-weight: 700;
    line-height: 1.25;
}

/* Font weight utilities (used by Mofi markup) */
.f-w-300 { font-weight: 300; } .f-w-400 { font-weight: 400; }
.f-w-500 { font-weight: 500; } .f-w-600 { font-weight: 600; }
.f-w-700 { font-weight: 700; } .f-w-800 { font-weight: 800; }
.f-light { font-weight: 300; }

.cd-section-heading {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}
.cd-section-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 48px; height: 3px;
    border-radius: 3px;
    background: var(--ap-teal);
}

/* ── Navbar ─────────────────────────────────────────────────── */
.cd-navbar {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow 0.3s var(--ap-ease);
}
.cd-navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.cd-navbar .navbar-brand span {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: var(--ap-teal) !important;
    -webkit-text-fill-color: var(--ap-teal);
}
.cd-navbar .nav-link {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--ap-slate) !important;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    transition: all 0.2s var(--ap-ease);
}
.cd-navbar .nav-link:hover,
.cd-navbar .nav-link.active {
    color: var(--ap-teal) !important;
    background: var(--ap-teal-mist);
}
.cd-navbar .btn-primary {
    font-weight: 600; font-size: 0.85rem;
    padding: 0.4rem 1.2rem; border-radius: 50px;
}
.cd-navbar .dropdown-menu {
    border: 1px solid var(--ap-silver);
    border-radius: var(--ap-radius);
    box-shadow: var(--ap-shadow-lg);
    padding: 0.4rem;
    animation: fadeSlideIn 0.15s var(--ap-ease);
}
.cd-navbar .dropdown-item {
    border-radius: 8px; padding: 0.5rem 0.8rem;
    font-size: 0.88rem; font-weight: 500;
    color: var(--ap-slate);
    display: flex; align-items: center; gap: 0.45rem;
    transition: all 0.15s;
}
.cd-navbar .dropdown-item:hover { background: var(--ap-teal-mist); color: var(--ap-teal); }
.cd-navbar .dropdown-item.text-danger:hover { background: #fef2f2; }
.navbar-toggler { border: none; padding: 0.3rem 0.5rem; }
.navbar-toggler:focus { box-shadow: none; }

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Main Content ───────────────────────────────────────────── */
.cd-main {
    min-height: calc(100vh - 200px);
    padding: 1.5rem 0 0;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn { font-family: var(--ap-font); transition: all 0.2s var(--ap-ease); }
.btn-primary {
    background: var(--ap-teal);
    border: none;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.55rem 1.5rem;
    box-shadow: 0 2px 8px rgba(var(--ap-teal-rgb), 0.25);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--ap-teal-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(var(--ap-teal-rgb), 0.35);
}
.btn-outline-primary {
    border: 1.5px solid var(--ap-teal);
    color: var(--ap-teal);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.5rem 1.3rem;
}
.btn-outline-primary:hover {
    background: var(--ap-teal); border-color: var(--ap-teal);
    color: #fff; transform: translateY(-1px);
}

/* ── Hero Section ───────────────────────────────────────────── */
.cd-hero {
    position: relative;
    background: linear-gradient(160deg, #006d80 0%, var(--ap-teal) 40%, #0891b2 100%);
    color: #fff;
    overflow: hidden;
}
.cd-hero::after {
    content: '';
    position: absolute; bottom: -1px; left: 0; right: 0;
    height: 64px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64'%3E%3Cpath fill='%23f5f7fa' d='M0,48L120,42.7C240,37,480,27,720,26.7C960,27,1200,37,1320,42.7L1440,48L1440,64L0,64Z'/%3E%3C/svg%3E") no-repeat bottom / 100%;
    pointer-events: none;
}
.cd-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.8rem);
    font-weight: 800; color: #fff;
    margin-bottom: 0.5rem;
}
.cd-hero .form-control {
    border: none;
    background: rgba(255,255,255,0.97);
    border-radius: 50px !important;
    padding: 0.8rem 1.3rem;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.cd-hero .form-control:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.5), 0 2px 6px rgba(0,0,0,0.08);
}
.cd-hero .form-control-lg { padding: 0.8rem 1.3rem; }
.cd-hero .btn-light { border-radius: 50px; font-weight: 700; }

/* ── Stats ──────────────────────────────────────────────────── */
.cd-stats {
    background: var(--ap-ink);
    padding: 2rem 0;
    color: #fff;
}
.cd-stat-item { text-align: center; padding: 0.5rem 1rem; }
.cd-stat-number {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 900;
    color: #67d4e8;
    line-height: 1.1;
}
.cd-stat-label {
    font-size: 0.8rem; font-weight: 500;
    color: #8899aa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.2rem;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
    border: 1px solid var(--ap-silver);
    border-radius: var(--ap-radius);
    box-shadow: var(--ap-shadow-sm);
    transition: box-shadow 0.25s var(--ap-ease), transform 0.25s var(--ap-ease);
    background: var(--ap-white);
}
.card:hover {
    box-shadow: var(--ap-shadow);
    transform: translateY(-2px);
}
.card-header {
    background: var(--ap-white) !important;
    border-bottom: 1px solid var(--ap-silver);
    padding: 0.9rem 1.2rem;
}
.card-body { padding: 1.2rem; }

/* ── Step Cards (How It Works) ──────────────────────────────── */
.cd-step-card { text-align: center; padding: 2rem 1.25rem; }
.cd-step-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--ap-teal-mist);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ap-teal);
    margin-bottom: 1rem;
    transition: all 0.25s var(--ap-ease);
}
.cd-step-card:hover .cd-step-icon {
    background: var(--ap-teal); color: #fff;
    transform: scale(1.08);
}
.cd-step-icon svg, .cd-step-icon i { width: 26px; height: 26px; }

/* ── City Cards ─────────────────────────────────────────────── */
.cd-city-card {
    display: block;
    text-align: center;
    text-decoration: none;
    background: var(--ap-white);
    border: 1px solid var(--ap-silver);
    border-radius: var(--ap-radius);
    padding: 1.5rem 1rem;
    color: var(--ap-slate);
    box-shadow: var(--ap-shadow-sm);
    transition: all 0.25s var(--ap-ease);
}
.cd-city-card:hover {
    box-shadow: var(--ap-shadow);
    transform: translateY(-3px);
    border-color: var(--ap-teal);
    color: var(--ap-teal);
}
.cd-city-card h6 { color: var(--ap-ink); }
.cd-city-card:hover h6 { color: var(--ap-teal); }

/* ── CTA Banner ─────────────────────────────────────────────── */
.cd-cta-banner {
    background: linear-gradient(150deg, var(--ap-teal) 0%, #0891b2 100%);
    border-radius: var(--ap-radius-lg);
    padding: 3.5rem 2rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cd-cta-banner::before {
    content: '';
    position: absolute;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    top: -60px; right: -40px;
    pointer-events: none;
}
.cd-cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: #fff; }
.cd-cta-banner .btn-light {
    font-weight: 700; border-radius: 50px;
    padding: 0.7rem 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.cd-cta-banner .btn-light:hover { transform: translateY(-2px); }

.cd-pulse { animation: pulse 2s infinite; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}

/* ── Footer ─────────────────────────────────────────────────── */
.cd-footer {
    background: var(--ap-ink) !important;
    color: #8899aa !important;
    font-size: 0.88rem;
}
.cd-footer h5, .cd-footer h6 { color: #dde3ea !important; font-weight: 700; }
.cd-footer a { color: #8899aa; text-decoration: none; transition: color 0.2s; }
.cd-footer a:hover { color: #dde3ea; }
.cd-footer hr { border-color: rgba(255,255,255,0.06) !important; }

.cd-social-links { display: flex; gap: 0.4rem; }
.cd-social-links a {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06);
    color: #8899aa;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
    transition: all 0.2s;
}
.cd-social-links a:hover {
    background: var(--ap-teal); color: #fff;
    border-color: var(--ap-teal);
    transform: translateY(-2px);
}

.cd-newsletter-form { display: flex; }
.cd-newsletter-form .form-control {
    border-radius: 50px 0 0 50px !important;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #fff; font-size: 0.85rem;
}
.cd-newsletter-form .form-control::placeholder { color: rgba(255,255,255,0.4); }
.cd-newsletter-form .form-control:focus {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    box-shadow: none; color: #fff;
}
.cd-newsletter-form .btn {
    border-radius: 0 50px 50px 0 !important;
    padding: 0.4rem 1rem; font-weight: 600; font-size: 0.85rem;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-control, .form-select {
    border: 1.5px solid var(--ap-silver);
    border-radius: 10px;
    font-family: var(--ap-font);
    font-size: 0.92rem;
    padding: 0.55rem 0.9rem;
    color: var(--ap-ink-2);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--ap-teal);
    box-shadow: 0 0 0 3px rgba(var(--ap-teal-rgb), 0.12);
}
.form-label { font-weight: 600; font-size: 0.88rem; color: var(--ap-ink-2); margin-bottom: 0.35rem; }
.input-group-text {
    background: var(--ap-snow);
    border: 1.5px solid var(--ap-silver);
    border-radius: 10px;
    color: var(--ap-dove);
}

/* ── Badges ─────────────────────────────────────────────────── */
.badge { font-weight: 600; font-size: 0.73rem; border-radius: 50px; padding: 0.28em 0.7em; }
.badge-light-success { background: #dcfce7; color: #16a34a; }

/* ── Star Ratings ───────────────────────────────────────────── */
.fa-star.text-warning, .fa-star-half-o.text-warning { color: #f59e0b !important; }
.fa-star-o.text-muted { color: #cbd5e1 !important; }
.rate-star, .review-star { font-size: 1.2rem; cursor: pointer; transition: color 0.1s; }

/* ── Breadcrumbs ────────────────────────────────────────────── */
.breadcrumb, .cd-breadcrumb {
    background: transparent; padding: 0.4rem 0;
    font-size: 0.82rem; margin-bottom: 0.5rem;
}
.breadcrumb-item a { color: var(--ap-teal); font-weight: 500; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: var(--ap-dove); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--ap-dove); }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination { gap: 4px; }
.page-link {
    border: 1.5px solid var(--ap-silver);
    color: var(--ap-slate);
    border-radius: 8px !important;
    font-weight: 600; font-size: 0.88rem;
    padding: 0.4rem 0.8rem;
    transition: all 0.2s;
}
.page-link:hover { background: var(--ap-teal-mist); border-color: var(--ap-teal); color: var(--ap-teal); }
.page-item.active .page-link {
    background: var(--ap-teal); border-color: var(--ap-teal); color: #fff;
    box-shadow: 0 2px 6px rgba(var(--ap-teal-rgb), 0.3);
}
.page-item.disabled .page-link { opacity: 0.4; }

/* ── Autocomplete Dropdown ──────────────────────────────────── */
.dropdown-menu {
    border: 1px solid var(--ap-silver);
    border-radius: var(--ap-radius);
    box-shadow: var(--ap-shadow-lg);
    padding: 0.35rem;
    animation: fadeSlideIn 0.12s var(--ap-ease);
}
.dropdown-menu .dropdown-item {
    border-radius: 8px; padding: 0.45rem 0.8rem;
    font-size: 0.9rem; font-weight: 500;
    color: var(--ap-slate);
    transition: all 0.15s;
}
.dropdown-menu .dropdown-item:hover { background: var(--ap-teal-mist); color: var(--ap-teal); }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert { border-radius: var(--ap-radius); border: none; font-weight: 500; font-size: 0.9rem; }
.alert-danger  { background: #fef2f2; color: #991b1b; }
.alert-success { background: #f0fdf4; color: #166534; }
.alert-warning { background: #fffbeb; color: #92400e; }
.alert-light   { background: var(--ap-snow); color: var(--ap-slate); border: 1px solid var(--ap-silver); }

/* ── Tables ─────────────────────────────────────────────────── */
.table th {
    font-weight: 700; font-size: 0.82rem;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--ap-dove);
}
.table td { vertical-align: middle; font-size: 0.9rem; }

/* ── Back to Top ────────────────────────────────────────────── */
.cd-back-to-top {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--ap-teal);
    color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(var(--ap-teal-rgb), 0.35);
    opacity: 0; visibility: hidden;
    transition: all 0.3s var(--ap-ease);
    z-index: 1040; cursor: pointer;
}
.cd-back-to-top.visible { opacity: 1; visibility: visible; }
.cd-back-to-top:hover { transform: translateY(-3px); background: var(--ap-teal-deep); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .cd-hero { min-height: auto; }
    .cd-hero h1 { font-size: 1.8rem; }
    .cd-navbar .navbar-collapse { padding: 0.5rem 0; }
}
@media (max-width: 767.98px) {
    .cd-hero h1 { font-size: 1.5rem; }
    .cd-main { padding: 1rem 0 2rem; }
    .cd-cta-banner { padding: 2.5rem 1.25rem; border-radius: var(--ap-radius); }
    .cd-back-to-top { width: 40px; height: 40px; bottom: 1rem; right: 1rem; }
}

/* ── Print ──────────────────────────────────────────────────── */
@media print {
    .cd-navbar, .cd-footer, .cd-back-to-top, .cd-cta-banner,
    .cd-newsletter-form, .btn, iframe, .dropdown-menu { display: none !important; }
    body { color: #000; background: #fff; }
    .card { box-shadow: none !important; border: 1px solid #ccc; }
}
