body {
    background: #faf6ef;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
}

/* ---------------------------------------- */
/* COMPONENTS                               */
/* ---------------------------------------- */

/* 1. HERO & SECTIONS */
.hero-section {
    background: url("/img/san-diego.jpg") center/cover no-repeat;
    color: white;
    padding: 130px 0;
    text-align: center;
}

/* Replaces: business-hero-card, categories-hero-card, event-hero-card, join-hero-card, dash-hero-card, profile-hero-card, photos-hero-card */
.hero-card {
    background: white;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden; /* For cases with cover images */
}

/* Replaces: multiple definitions of .section-card */
.section-card {
    background: white;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    margin-bottom: 14px;
}

/* 2. INTERACTIVE CARDS */

/* Replaces: category-card */
.category-card {
    background: white;
    border-radius: 14px;
    padding: 25px;
    text-align: center;
    transition: 0.2s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Replaces: category-grid-card, business-list-card, event-card-main, dash-stat-card */
.hover-card {
    background: white;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: 0.2s;
    height: 100%;
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Specific overrides for dash-stat-card if needed (no hover effect on stats usually) */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    height: 100%;
}

/* 3. TYPOGRAPHY labels */

/* Replaces: multiple definitions of section-label */
.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #8a7d6a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

/* Replaces: business-meta, event-meta, category-meta, hint-text */
.meta-text, .hint-text {
    font-size: 0.8rem;
    color: #8a7d6a;
}

/* 4. BADGES & PILLS */

/* Replaces: badge-soft, all variants */
.badge-soft {
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
}

.badge-soft.success {
    background: rgba(25, 135, 84, 0.08);
    color: #198754;
}

/* Replaces: tag-pill, subcat-pill, event-tag-pill, step-pill */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f6eee2;
    font-size: 0.78rem;
    margin: 0 5px 5px 0;
    white-space: nowrap;
    color: #212529;
}

.pill.active {
    background: #0d6efd;
    color: #fff;
}

.pill.step {
    background: #faf2e5;
    color: #6d5b44;
    margin-right: 0.5rem;
}

/* Success / Checklist */
.success-icon-circle {
    width: 64px;
    height: 64px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.5rem;
}

.checklist-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.checklist-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.checklist-icon.done { background: #d1fae5; color: #065f46; }
.checklist-icon.todo { background: #f3f4f6; color: #4b5563; }

/* Sticky Save Bar */
.save-bar {
    position: sticky;
    bottom: 20px;
    z-index: 99;
    margin-top: 1rem;
}
.save-bar .section-card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
    background: #fff;
}
.pill.step.active {
    background: #0d6efd;
    color: #fff;
}

/* 5. MEDIA & ICONS */

.avatar-circle {
    border-radius: 50%;
    object-fit: cover;
}

.icon-square {
    border-radius: 14px; /* or 18px for lg */
    background: #f3eadf;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* category-icon-badge */
.icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: #f3eadf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-right: 10px;
}

/* category-icon-badge-lg */
.icon-badge-lg {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #f3eadf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-right: 14px;
}

/* ---------------------------------------- */
/* SPECIFIC PAGE ELEMENTS (Preserved/Refactored) */
/* ---------------------------------------- */

/* Maps */
.map-box {
    border-radius: 16px;
    overflow: hidden;
    background: #ddd;
}
.map-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Business Card (Welcome Page) */
.business-card {
    border-radius: 16px;
    overflow: hidden;
    min-width: 210px;
}
.business-card img {
    height: 130px;
    object-fit: cover;
}

/* Event Card (Welcome Page - small) */
.event-card {
    background: white;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Business Hero Specifics */
.hero-cover {
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.05));
}
.hero-content-overlap {
    margin-top: -80px;
    position: relative;
    z-index: 2;
}

.business-logo {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    border: 4px solid #fff;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    background: #f8f4ea;
}

/* Photo Scroll */
.photo-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.photo-scroll img {
    border-radius: 14px;
    height: 140px;
    width: 220px;
    object-fit: cover;
    flex: 0 0 auto;
}

.rating-stars {
    color: #f5b300;
    letter-spacing: 1px;
}

.upload-icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #f3eadf;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 1.3rem;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.stat-label, .stat-sub {
    font-size: 0.8rem;
    color: #8a7d6a;
}

.quick-link-pill {
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 6px 10px;
    font-size: 0.78rem;
    background: #faf6ef;
    display: inline-flex;
    align-items: center;
    margin: 0 4px 6px 0;
    color: #212529;
    text-decoration: none;
}
.quick-link-pill span { margin-left: 4px; }
.quick-link-pill:hover { background: #f0e5d7; color: #000; }

/* Calendar / Date Badges */
.date-badge {
    border-radius: 12px;
    background: #f3eadf;
    text-align: center;
    padding: 6px 0;
    line-height: 1.1;
}
.date-badge .month {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.7rem;
    color: #8a7d6a;
}
.date-badge .day {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2b261f;
}
.date-badge .dow {
    font-size: 0.65rem;
    color: #a0907c;
}

/* Large Date Badge */
.date-badge-lg {
    width: 70px;
    height: 90px;
    border-radius: 16px;
    background: #faf6ef;
    text-align: center;
    padding-top: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.date-badge-lg .month {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.75rem;
    color: #8a7d6a;
}
.date-badge-lg .day {
    font-weight: 700;
    font-size: 1.4rem;
    color: #2b261f;
    line-height: 1.1;
}
.date-badge-lg .dow {
    font-size: 0.7rem;
    color: #a0907c;
}

/* Event Hero Specifics */
.event-hero-cover {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.event-hero-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
}

/* Filter Chips */
.filter-chip {
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #faf6ef;
    padding: 4px 12px; /* Add padding missing in orig? Check orig. */
}
.filter-chip.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* Timeline */
.timeline-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #0d6efd;
    margin-top: 5px;
}
.timeline-line {
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
    flex-grow: 1;
    margin: 2px auto 0;
}

/* Plan Cards */
.plan-card {
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 16px 18px;
    background: #fff;
}
.plan-card.featured {
    border-color: #0d6efd;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.15);
}
.plan-price {
    font-size: 1.4rem;
    font-weight: 700;
}

/* Payment */
.payment-summary {
    background: #faf6ef;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 0.88rem;
}
.payment-box {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 12px;
    background: #ffffff;
    min-height: 54px;
}

/* Success */
.success-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e6f4ea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #198754;
    margin-right: 14px;
}

/* Dashboard Misc */
.progress-wrapper {
    background: #f5ece0;
    border-radius: 999px;
    overflow: hidden;
    height: 10px;
}
.progress-inner {
    background: linear-gradient(90deg, #0d6efd, #198754);
    height: 100%;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 0.85rem;
}
.checklist-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}
.checklist-icon.done { background: #198754; color: #fff; }
.checklist-icon.todo { background: #f0e5d7; color: #8a7d6a; }

.status-pill {
    font-size: 0.72rem;
    border-radius: 999px;
    padding: 2px 8px;
    background: #e6f4ea;
    color: #198754;
}
.status-pill.pending {
    background: #fff4e5;
    color: #c47f06;
}

/* Photos */
.photo-tile {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #ddd;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.photo-tile img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.photo-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}
.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.photo-tile:hover .photo-overlay {
    opacity: 1;
}

.upload-dropzone {
    border-radius: 16px;
    border: 1px dashed rgba(0, 0, 0, 0.25);
    background: #faf6ef;
    padding: 22px 18px;
    text-align: center;
}

/* Navbar Search */
.navbar-directory-search {
    flex-grow: 1;
    max-width: 700px;
    margin-left: 20px;
    margin-right: 20px;
}
.directory-search-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 999px;
    padding: 6px 12px;
    border: 2px solid #d1d5db;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.navbar-directory-search-input {
    border: none;
    outline: none;
    flex: 1;
    padding: 6px 10px;
    font-size: 0.9rem;
    color: #333333;
    background: transparent;
}
.directory-search-btn {
    border: none;
    outline: none;
    background: #e3a741;
    border-radius: 999px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.directory-search-btn span {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1;
}
@media (max-width: 991.98px) {
    .navbar-directory-search { display: none; }
}

/* FOOTER */
footer {
    background: #f2e9dc;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ---------------------------------------- */
/* BOOTSTRAP OVERRIDES                      */
/* ---------------------------------------- */
:root {
    --bs-primary: #05405f;
    --bs-primary-rgb: 5, 64, 95;
    --bs-primary-text: #05405f;
    --bs-primary-bg-subtle: rgba(5, 64, 95, 0.1);
    --bs-primary-border-subtle: rgba(5, 64, 95, 0.25);
    --bs-secondary: #e3a741;
    --bs-secondary-rgb: 227, 167, 65;
    --bs-secondary-text: #e3a741;
    --bs-secondary-bg-subtle: rgba(227, 167, 65, 0.1);
    --bs-secondary-border-subtle: rgba(227, 167, 65, 0.25);
}

.btn-primary {
    background-color: #05405f !important;
    border-color: #05405f !important;
    color: #ffffff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #04364f !important;
    border-color: #04364f !important;
}

.btn-secondary {
    background-color: #e3a741 !important;
    border-color: #e3a741 !important;
    color: #ffffff !important;
}
.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
    background-color: #cb8f33 !important;
    border-color: #cb8f33 !important;
}

a, .nav-link { color: #05405f !important; }
a:hover, .nav-link:hover { color: #04364f !important; }

.page-link { color: #05405f !important; }
.page-item.active .page-link {
    background-color: #05405f !important;
    border-color: #05405f !important;
}

.badge-primary { background-color: #05405f !important; }
.badge-secondary { background-color: #e3a741 !important; }

.alert-primary {
    background-color: rgba(5, 64, 95, 0.15) !important;
    border-color: #05405f !important;
    color: #05405f !important;
}
.alert-secondary {
    background-color: rgba(227, 167, 65, 0.15) !important;
    border-color: #e3a741 !important;
    color: #7f5d17 !important;
}

.border-primary { border-color: #05405f !important; }
.border-secondary { border-color: #e3a741 !important; }

.bg-primary { background-color: #05405f !important; }
.bg-secondary { background-color: #e3a741 !important; }

.text-primary { color: #05405f !important; }
.text-secondary { color: #e3a741 !important; }

/* Success / Checklist */
.success-icon-circle {
    width: 64px;
    height: 64px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.5rem;
}

.checklist-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.checklist-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.checklist-icon.done { background: #d1fae5; color: #065f46; }
.checklist-icon.todo { background: #f3f4f6; color: #4b5563; }

/* Sticky Save Bar */
.save-bar {
    position: sticky;
    bottom: 20px;
    z-index: 99;
    margin-top: 1rem;
}
.save-bar .section-card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
    background: #fff;
}

/* Business Listing Thumbnails */
.business-thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}

/* Profile Edit Form Styles */
.logo-preview {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: #f8f4ea;
    overflow: hidden;
    margin-right: 16px;
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-preview {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    background: #ddd;
    border: 1px solid rgba(0,0,0,0.1);
}
.cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hours-table {
    width: 100%;
    font-size: 0.9rem;
}
.hours-table th {
    font-weight: 600;
    color: #8a7d6a;
    width: 60px;
    padding-bottom: 8px;
}
.hours-table td {
    padding-bottom: 8px;
}
