/* Filter bar styling */
.filter-bar {
    background: white;
    border-radius: 50px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.filter-bar h5 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.filter-bar .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.5rem;
}

.filter-bar .form-check-label {
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}

/* Large filter buttons */
.filter-bar .form-check {
    padding: 8px 15px;
    border-radius: 25px;
    background-color: #f8f9fa;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.filter-bar .form-check:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

/* Responsive filter bar */
@media (max-width: 768px) {
    .filter-bar {
        padding: 15px;
    }
    
    .filter-bar h5 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .filter-bar .form-check-label {
        font-size: 1rem;
    }
}

/* Dropdown filter styling */
.filter-dropdown {
    background-color: white;
    border-radius: 50px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
}

.filter-dropdown select {
    background-color: white;
    border: 2px solid #E48D68;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #333;
    width: 100%;
    height: 60px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E48D68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    margin: 0 10px;
    font-size: 0.8rem;
}

.filter-dropdown select:focus {
    outline: none;
    border-color: #4A7993;
    box-shadow: 0 0 0 0.2rem rgba(74, 121, 147, 0.25);
}

/* Vertical divider for filters */
.filter-item {
    position: relative;
    padding: 0 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 0;
}

.filter-item h5 {
    text-align: left;
    margin-right: 10px;
    font-weight: bold;
    min-width: 80px;
    font-size: 0.8rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    height: 40px;
}

.filter-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background-color: #E48D68;
}

/* Remove divider after last element */
.filter-item:last-child::after {
    display: none;
}

/* Filters section styling */
.filters-section {
    padding: 20px 0;
}

.filters-container {
    background: white;
    border-radius: 50px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive adjustments for filter items */
@media (max-width: 768px) {
    .filter-item {
        padding: 0 5px;
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 15px;
    }
    
    .filter-item h5 {
        margin-right: 0;
        margin-bottom: 5px;
        min-width: auto;
        font-size: 0.8rem;
    }
    
    .filter-item:not(:last-child)::after {
        display: none;
    }
}

/* Additional styling for better visual appeal */
.filter-dropdown select {
    background-color: white;
    border: 2px solid #E48D68;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #333;
    width: 100%;
    height: 60px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E48D68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    margin: 0 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.filter-dropdown select:hover {
    border-color: #4A7993;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.filter-dropdown select:focus {
    outline: none;
    border-color: #4A7993;
    box-shadow: 0 0 0 0.2rem rgba(74, 121, 147, 0.25);
}

/* Adjust spacing between labels and dropdowns */
.filter-item h5 {
    margin-right: 15px;
    min-width: 80px;
    font-size: 0.8rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    height: 40px;
}

.filter-item select {
    flex-grow: 1;
    margin: 0;
    font-size: 0.8rem;
    height: 40px;
    padding: 8px 15px;
}

/* Background color updates */
body {
    background-color: #FBF4ED;
}

.navbar {
    background-color: #FBF4ED !important;
}

#home {
    background-color: #FBF4ED;
}

/* Apply serif font to slogan */
h1 {
    font-family: "Times New Roman", Times, serif;
}

/* Navbar brand color */
.navbar-brand {
    color: #C96842 !important;
}

/* Button colors */
.btn, .btn-primary {
    background-color: #C96842 !important;
    border-color: #C96842 !important;
}

/* Sidebar styling for proper flex layout */
.sidebar {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Push logout to bottom */
.sidebar .nav-item:last-child {
    margin-top: auto;
}

/* Ensure sidebar items are flex items */
.sidebar .nav-item {
    width: 100%;
}

/* Public front-end polish */
:root {
    --cream: #FBF4ED;
    --cream-deep: #F5E8DC;
    --surface: #FFFCF9;
    --rust: #C96842;
    --rust-dark: #A85131;
    --ink: #2F2823;
    --muted: #756961;
    --border: #E8D9CD;
    --shadow: 0 18px 45px rgba(93, 55, 35, 0.11);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream) !important;
    background-image: none !important;
    color: var(--ink);
    font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: var(--rust);
}

a:hover {
    color: var(--rust-dark);
}

/* Shared public navigation */
.public-navbar {
    background: rgba(251, 244, 237, 0.96) !important;
    border-bottom: 1px solid rgba(201, 104, 66, 0.14);
    box-shadow: 0 8px 24px rgba(93, 55, 35, 0.07) !important;
    padding: 0.9rem 0;
}

.public-navbar .navbar-brand,
.public-navbar .nav-link,
.public-navbar .nav-link.active {
    color: #C96842 !important;
}

.public-navbar .navbar-brand {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.public-navbar .navbar-brand img {
    display: inline-block;
    height: 30px !important;
    margin-right: 0.6rem;
    max-width: 30px !important;
    object-fit: contain;
    vertical-align: middle;
    width: auto !important;
}

.public-navbar .site-logo {
    flex: 0 0 auto;
}

.public-navbar .nav-link {
    font-size: 0.92rem;
    font-weight: 800;
    margin-left: 0.45rem;
    padding: 0.55rem 0.8rem !important;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link:focus {
    background: rgba(201, 104, 66, 0.1);
    border-radius: 999px;
    color: var(--rust-dark) !important;
}

.public-navbar .nav-link.active {
    background: rgba(201, 104, 66, 0.1);
    border-radius: 999px;
    color: #C96842 !important;
}

.public-navbar .navbar-toggler {
    border-color: rgba(201, 104, 66, 0.35);
}

.public-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(201, 104, 66, 0.18);
}

/* Buttons and form controls */
.btn {
    border-radius: 999px;
    font-weight: 800;
    padding: 0.72rem 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-primary:focus {
    background-color: var(--rust) !important;
    border-color: var(--rust) !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: var(--rust-dark) !important;
    border-color: var(--rust-dark) !important;
    box-shadow: 0 8px 18px rgba(168, 81, 49, 0.22);
}

.form-control,
.form-select {
    border-color: var(--border);
    color: var(--ink);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--rust);
    box-shadow: 0 0 0 0.2rem rgba(201, 104, 66, 0.14);
}

/* Home page */
.hero {
    background: var(--cream);
    padding: 2rem 0 0;
}

.hero > .container-fluid {
    max-width: 1440px;
    padding: 0 clamp(1rem, 3vw, 3rem);
}

.hero .row {
    overflow: hidden;
    border-radius: 2rem;
    background: var(--cream-deep);
}

.hero-copy {
    padding: clamp(2rem, 6vw, 5.5rem) !important;
    text-align: left;
}

.eyebrow {
    color: var(--rust);
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero h1 {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 5vw, 5.3rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 0.98;
    margin-bottom: 1.35rem;
}

.hero .lead {
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.65;
    margin-bottom: 0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-buttons .btn {
    min-width: 10.5rem;
}

.hero-media {
    min-height: 410px;
}

.hero-media img {
    display: block;
    height: 100%;
    min-height: 410px;
    object-fit: cover;
    width: 100%;
}

/* Airbnb-style filter bar */
.filters-section {
    padding: 0 0 2.2rem;
    position: relative;
    z-index: 2;
}

.filters-container {
    background: rgba(255, 252, 249, 0.98);
    border: 1px solid var(--border);
    border-radius: 999px !important;
    box-shadow: var(--shadow);
    margin: -1.3rem auto 0;
    max-width: 800px;
    padding: 0.7rem 1rem !important;
}

.filters-container .row {
    margin: 0;
}

.filter-item {
    align-items: center;
    display: flex;
    min-height: 3.5rem;
    padding: 0.3rem 1.25rem;
    position: relative;
}

.filter-item:not(:last-child)::after {
    background: var(--border);
    content: "";
    height: 2rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
}

.filter-item h5 {
    color: var(--ink);
    flex: 0 0 auto;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    margin: 0 0.8rem 0 0;
    min-width: auto;
    text-align: left !important;
    text-transform: uppercase;
}

.filter-item select {
    background-color: transparent;
    border: 0;
    box-shadow: none;
    flex: 1 1 auto;
    font-size: 0.92rem;
    font-weight: 700;
    height: auto;
    min-width: 0;
    padding: 0.45rem 1.8rem 0.45rem 0;
}

.filter-item select:focus {
    box-shadow: none;
}

/* Partner category cards */
#partners-section h2,
.page-header h1,
.voucher-page h2 {
    color: var(--ink);
    font-weight: 900;
    letter-spacing: -0.035em;
}

.partner-category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(93, 55, 35, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-category-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.partner-category-card .card-body {
    padding: 2.1rem 1.5rem;
}

.feature-icon {
    align-items: center;
    background: var(--cream-deep);
    border-radius: 50%;
    display: inline-flex;
    font-size: 2rem;
    height: 4.3rem;
    justify-content: center;
    margin-bottom: 1.1rem;
    width: 4.3rem;
}

.partner-category-card h5 {
    color: var(--ink);
    font-weight: 900;
}

.partner-category-card p {
    color: var(--muted);
    margin-bottom: 0;
}

/* Vouchers page */
.voucher-page {
    min-height: 100vh;
}

.page-header {
    background: var(--cream) !important;
    border-bottom: 1px solid rgba(201, 104, 66, 0.1);
}

.page-header .breadcrumb {
    margin-bottom: 0;
}

.voucher-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.35rem;
    box-shadow: 0 10px 25px rgba(93, 55, 35, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.voucher-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.voucher-card .card-img-top {
    height: 190px;
    object-fit: cover;
}

.voucher-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.voucher-card .card-title {
    color: var(--ink);
    font-weight: 900;
}

.voucher-card .card-text,
.voucher-meta {
    color: var(--muted);
}

.voucher-card .card-text {
    min-height: 3.4rem;
}

.voucher-meta {
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.voucher-meta i {
    color: var(--rust);
    margin-right: 0.35rem;
    width: 1rem;
}

.voucher-card .btn {
    margin-top: auto;
}

/* Login page */
.auth-page {
    min-height: 100vh;
}

.auth-shell {
    max-width: 560px;
}

.auth-brand {
    color: var(--rust);
    font-size: 1.2rem;
    font-weight: 900;
    text-decoration: none;
}

.auth-brand img {
    height: 34px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border) !important;
    border-radius: 1.5rem;
    overflow: hidden;
}

.auth-card-header {
    background: var(--rust);
    padding: 1.25rem;
}

.auth-card-header h3 {
    font-weight: 900;
    margin: 0;
}

.auth-card .card-body {
    padding: clamp(1.75rem, 5vw, 3rem) !important;
}

.auth-card .form-label {
    color: var(--ink);
    font-weight: 800;
}

.auth-card .form-text,
.auth-page .text-muted {
    color: var(--muted) !important;
}

/* Shared footer */
.site-footer {
    background: var(--cream) !important;
    border-top: 1px solid var(--border);
    color: var(--muted) !important;
}

.site-footer h5 {
    color: var(--ink);
    font-weight: 900;
}

.site-footer a,
.site-footer i {
    color: var(--rust) !important;
}

.contact-modal .modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    box-shadow: 0 1.5rem 4rem rgba(73, 42, 27, 0.2);
    overflow: hidden;
}

.contact-modal .modal-header,
.contact-modal .modal-footer {
    border-color: var(--border);
    padding: 1.25rem 1.5rem;
}

.contact-modal .modal-header {
    align-items: flex-start;
}

.contact-modal .modal-title {
    color: var(--ink);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-top: 0.25rem;
}

.contact-modal .modal-body {
    padding: 1.5rem;
}

.rating-partner-name {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
    margin: 0.3rem 0 0;
}

.rating-form-stars {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
    margin: 0.25rem 0 0.35rem;
}

.rating-form-stars label {
    color: #D8B9A4;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    padding: 0.15rem;
    transition: color 0.15s ease, transform 0.15s ease;
}

.rating-form-stars label:hover,
.rating-form-stars input:checked + label,
.rating-form-stars label:has(~ input:checked) {
    color: #E49A46;
}

.rating-form-stars label:hover {
    transform: translateY(-2px);
}

.rating-form-stars input:focus-visible + label {
    outline: 3px solid rgba(201, 104, 66, 0.35);
    outline-offset: 2px;
}

.rating-form-hint {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    text-align: center;
}

.contact-modal .btn-outline-primary {
    background: var(--rust);
    border-color: var(--rust);
    color: #fff;
}

.contact-modal .btn-outline-primary:hover,
.contact-modal .btn-outline-primary:focus {
    background: var(--rust-dark);
    border-color: var(--rust-dark);
    color: #fff;
}

.contact-field {
    display: block;
    margin-bottom: 1rem;
}

.contact-field:last-child {
    margin-bottom: 0;
}

.contact-field > span {
    color: var(--ink);
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 0.4rem;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    color: var(--ink);
    display: block;
    font: inherit;
    padding: 0.7rem 0.8rem;
    width: 100%;
}

.contact-field textarea {
    min-height: 8rem;
    resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: var(--rust);
    box-shadow: 0 0 0 0.2rem rgba(201, 104, 66, 0.15);
    outline: 0;
}

@media (max-width: 768px) {
    .public-navbar .nav-link {
        margin-left: 0;
    }

    .hero {
        padding-top: 1rem;
    }

    .hero .row {
        border-radius: 1.5rem;
    }

    .hero-copy {
        padding: 2.5rem 1.5rem !important;
    }

    .hero-media,
    .hero-media img {
        min-height: 280px;
    }

    .filters-section {
        padding: 1.25rem 1rem 1rem;
    }

    .filters-container {
        border-radius: 1.5rem !important;
        margin-top: 0;
        padding: 0.75rem !important;
    }

    .filter-item {
        border-bottom: 1px solid var(--border);
        padding: 0.65rem 0.5rem;
    }

    .filter-item:last-child {
        border-bottom: 0;
    }

    .filter-item:not(:last-child)::after {
        display: none;
    }

    .filter-item h5 {
        min-width: 5.3rem;
    }

    .hero-buttons .btn {
        flex: 1 1 100%;
    }
}

/* Admin login */
.admin-auth-page {
    align-items: center;
    display: flex;
}

.admin-auth-page .auth-shell {
    max-width: 520px;
}

.auth-subtitle {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-top: 0.7rem;
    text-transform: uppercase;
}

.admin-auth-page .auth-card-header {
    padding: 1.8rem 1.5rem 1.65rem;
}

.admin-auth-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    display: inline-flex;
    height: 3.2rem;
    justify-content: center;
    margin-bottom: 0.9rem;
    width: 3.2rem;
}

.admin-auth-page .auth-card-header h1 {
    font-family: inherit;
    font-size: 1.65rem;
    font-weight: 900;
    margin-bottom: 0.35rem;
}

.admin-auth-page .auth-card-header p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0;
}

.admin-auth-page .card-body {
    padding: 2rem !important;
}

.admin-auth-page .input-group-text {
    background: var(--cream-deep);
    border-color: var(--border);
    color: var(--rust);
    min-width: 2.9rem;
    justify-content: center;
}

.admin-auth-page .form-control {
    min-height: 2.9rem;
}

.admin-auth-page .btn i {
    margin-right: 0.45rem;
}

.admin-form-footer {
    align-items: center;
    border-top: 1px solid var(--border);
    color: var(--muted);
    display: flex;
    font-size: 0.78rem;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

.admin-form-footer a {
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 576px) {
    .admin-auth-page .card-body {
        padding: 1.5rem !important;
    }

    .admin-form-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.7rem;
    }
}

/* Directory home page */
.page-loader {
    align-items: center;
    background: rgba(251, 244, 237, 0.98);
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 1;
    position: fixed;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    visibility: visible;
    z-index: 3000;
}

.page-loader.is-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.page-loader-card {
    align-items: center;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    text-align: center;
}

.page-loader-mark {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
    display: flex;
    height: 4.5rem;
    justify-content: center;
    margin-bottom: 0.25rem;
    width: 4.5rem;
}

.page-loader-mark img {
    height: 2.35rem;
    width: 2.35rem;
}

.page-loader-card strong {
    font-size: 1rem;
    font-weight: 900;
}

.page-loader-card > span:last-child {
    color: var(--muted);
    font-size: 0.8rem;
}

.page-loader-spinner {
    animation: play-passport-spin 0.9s linear infinite;
    border: 3px solid var(--cream-deep);
    border-radius: 50%;
    border-top-color: var(--rust);
    height: 1.7rem;
    width: 1.7rem;
}

@keyframes play-passport-spin {
    to {
        transform: rotate(360deg);
    }
}

.directory-page {
    min-height: 100vh;
}

.directory-page .public-navbar {
    margin-bottom: 0;
}

.blog-page {
    min-height: 100vh;
}

.blog-shell,
.blog-post-shell {
    margin: 0 auto;
    max-width: 1180px;
    padding: 3rem clamp(1rem, 3vw, 2.5rem) 4rem;
}

.blog-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    box-shadow: 0 12px 28px rgba(93, 55, 35, 0.06);
    margin-bottom: 3rem;
    padding: clamp(1.75rem, 5vw, 4rem);
    text-align: center;
}

.blog-hero h1 {
    color: var(--ink);
    font-family: "Times New Roman", Times, serif;
    font-size: clamp(2.2rem, 5vw, 4.25rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 0.98;
    margin: 0.5rem auto 0.85rem;
    max-width: 44rem;
}

.blog-hero p {
    color: var(--muted);
    margin: 0 auto 1.75rem;
    max-width: 38rem;
}

.blog-search {
    align-items: center;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 999px;
    display: flex;
    gap: 0.65rem;
    margin: 0 auto;
    max-width: 42rem;
    padding: 0.45rem 0.5rem 0.45rem 1rem;
}

.blog-search > i {
    color: var(--rust);
}

.blog-search input {
    background: transparent;
    border: 0;
    color: var(--ink);
    flex: 1 1 auto;
    min-width: 0;
    outline: 0;
}

.blog-search .btn {
    border-radius: 999px;
    flex: 0 0 auto;
}

.blog-clear-search {
    color: var(--rust);
    font-size: 0.78rem;
    font-weight: 900;
    padding: 0 0.5rem;
    text-decoration: none;
}

.blog-section-heading {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.blog-result-count {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

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

.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.1rem;
    box-shadow: 0 8px 20px rgba(93, 55, 35, 0.05);
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover,
.blog-card:focus-visible {
    border-color: var(--rust);
    box-shadow: 0 16px 30px rgba(93, 55, 35, 0.14);
    color: inherit;
    transform: translateY(-3px);
}

.blog-card:focus-visible {
    outline: 3px solid rgba(201, 104, 66, 0.35);
    outline-offset: 3px;
}

.blog-card-image-wrap {
    background: var(--cream);
    height: 190px;
    overflow: hidden;
}

.blog-card-image {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    width: 100%;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.04);
}

.blog-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1.15rem;
}

.blog-card-date,
.blog-card-link {
    color: var(--rust);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.blog-card-tags,
.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.7rem;
}

.blog-tag {
    background: #F8E9DE;
    border-radius: 999px;
    color: var(--rust-dark);
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.2;
    padding: 0.35rem 0.6rem;
}

.blog-post-tags {
    margin: 0.75rem 0 0.9rem;
}

.blog-card h3 {
    color: var(--ink);
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0.55rem 0;
}

.blog-card p {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.55;
    margin: 0 0 1.15rem;
}

.blog-card-link {
    margin-top: auto;
    text-transform: none;
}

.blog-card-link i {
    margin-left: 0.3rem;
    transition: transform 0.2s ease;
}

.blog-card:hover .blog-card-link i {
    transform: translateX(3px);
}

.blog-empty-state {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 1rem;
    color: var(--muted);
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.blog-empty-state i {
    color: var(--rust);
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.blog-empty-state h3 {
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 900;
}

.blog-empty-state p {
    margin: 0;
}

.blog-post-shell {
    max-width: 980px;
}

.blog-back-link {
    color: var(--rust);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 900;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

.blog-back-link:hover {
    color: var(--rust-dark);
}

.blog-post {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    box-shadow: 0 12px 28px rgba(93, 55, 35, 0.06);
    overflow: hidden;
}

.blog-post-image {
    display: block;
    height: clamp(220px, 38vw, 430px);
    object-fit: cover;
    width: 100%;
}

.blog-post-body {
    margin: 0 auto;
    max-width: 780px;
    padding: clamp(1.5rem, 5vw, 4rem);
}

.blog-post-body h1 {
    color: var(--ink);
    font-family: "Times New Roman", Times, serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1;
    margin: 0.55rem 0 1rem;
}

.blog-post-excerpt {
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 1.75rem;
    padding-bottom: 1.5rem;
}

.blog-rich-content {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.75;
}

.blog-rich-content h2,
.blog-rich-content h3 {
    color: var(--ink);
    font-weight: 900;
    line-height: 1.2;
    margin: 1.75rem 0 0.65rem;
}

.blog-rich-content p {
    margin: 0 0 1rem;
}

.blog-rich-content a {
    color: var(--rust);
    font-weight: 800;
}

.blog-rich-content blockquote {
    border-left: 4px solid var(--rust);
    color: var(--muted);
    margin: 1.25rem 0;
    padding-left: 1rem;
}

.directory-shell {
    margin: 0 auto;
    max-width: 1370px;
    padding: 1.4rem clamp(1rem, 3vw, 2.5rem) 3.5rem;
}

.directory-hero {
    align-items: flex-end;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.directory-hero h1 {
    color: var(--ink);
    font-family: "Times New Roman", Times, serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1;
    margin: 0 0 0.75rem;
}

.directory-hero p {
    color: var(--muted);
    font-size: 1.02rem;
    margin: 0;
}

.directory-hero-cta {
    flex: 0 0 auto;
}

.directory-layout {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
}

.directory-list-column {
    min-width: 0;
}

.directory-filters {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    box-shadow: 0 10px 25px rgba(93, 55, 35, 0.06);
    margin-bottom: 1.5rem;
    padding: 1rem;
    width: 100%;
}

.filter-heading-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.9rem;
    padding: 0.1rem 0.2rem;
}

.filter-heading-row > div {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.filter-heading-row strong {
    color: var(--ink);
    font-size: 0.86rem;
}

.filter-kicker,
.map-kicker,
.filter-heading-row .clear-filters {
    color: var(--rust);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.clear-filters {
    text-decoration: none;
}

.clear-filters:hover {
    text-decoration: underline;
}

.directory-filter-grid {
    align-items: end;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.directory-field {
    display: block;
    min-width: 0;
}

.directory-field > span {
    color: var(--muted);
    display: block;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin: 0 0 0.35rem 0.1rem;
    text-transform: uppercase;
}

.directory-field input,
.directory-field select {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    color: var(--ink);
    font-size: 0.86rem;
    height: 2.75rem;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    width: 100%;
}

.directory-field select {
    appearance: auto;
}

.field-with-icon {
    position: relative;
}

.field-with-icon i {
    color: var(--rust);
    left: 0.8rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.field-with-icon input {
    padding-left: 2.25rem;
}

.filter-submit {
    height: 2.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
    white-space: nowrap;
}

.listing-heading {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.listing-heading .eyebrow {
    margin-bottom: 0.35rem;
}

.listing-heading h2 {
    color: var(--ink);
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin: 0;
}

.listing-count {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.listing-count i {
    color: var(--rust);
    margin-right: 0.35rem;
}

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

.listing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.1rem;
    box-shadow: 0 8px 20px rgba(93, 55, 35, 0.05);
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.listing-card:hover,
.listing-card.is-highlighted,
.listing-card.is-selected {
    border-color: var(--rust);
    box-shadow: 0 14px 28px rgba(93, 55, 35, 0.12);
    transform: translateY(-2px);
}

.listing-card.is-selected {
    border-width: 3px;
    box-shadow: 0 18px 38px rgba(62, 35, 23, 0.24);
}

.listing-card:focus-visible {
    outline: 3px solid rgba(201, 104, 66, 0.35);
    outline-offset: 3px;
}

.listing-image-wrap {
    height: 150px;
    overflow: hidden;
    position: relative;
}

.listing-image {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    width: 100%;
}

.listing-card:hover .listing-image {
    transform: scale(1.04);
}

.listing-type {
    background: rgba(255, 252, 249, 0.94);
    border-radius: 999px;
    bottom: 0.7rem;
    color: var(--rust-dark);
    font-size: 0.68rem;
    font-weight: 900;
    left: 0.7rem;
    padding: 0.35rem 0.55rem;
    position: absolute;
}

.listing-type i {
    margin-right: 0.25rem;
}

.listing-card-body {
    padding: 1rem;
}

.listing-card-heading {
    align-items: flex-start;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.listing-card h3 {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
}

.listing-rating {
    align-items: center;
    display: flex;
    gap: 0.55rem;
    margin-top: 0.6rem;
}

.listing-rating-score {
    align-items: center;
    color: var(--rust-dark);
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 900;
    gap: 0.25rem;
}

.listing-rating-stars {
    display: inline-flex;
    gap: 0.08rem;
}

.listing-rating-stars i {
    color: #E49A46;
    font-size: 0.7rem;
}

.listing-rate-button {
    background: transparent;
    border: 0;
    color: var(--rust);
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 900;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 0.15rem;
}

.listing-rate-button:hover,
.listing-rate-button:focus-visible {
    color: var(--rust-dark);
}

.listing-pin {
    color: var(--rust);
    flex: 0 0 auto;
}

.listing-description {
    color: var(--muted);
    display: -webkit-box;
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0.55rem 0 0.75rem;
    min-height: 2.35rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.8rem;
    margin-bottom: 0.8rem;
}

.listing-meta span,
.listing-address {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.listing-meta i,
.listing-address i {
    color: var(--rust);
    margin-right: 0.25rem;
}

.listing-card-footer {
    align-items: flex-end;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.6rem;
    justify-content: space-between;
    padding-top: 0.7rem;
}

.listing-card-footer .listing-rating {
    margin-top: 0;
}

.listing-address {
    display: -webkit-box;
    line-height: 1.3;
    max-width: 75%;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.listing-map-link {
    color: var(--rust);
    flex: 0 0 auto;
    font-size: 0.76rem;
    font-weight: 900;
    text-decoration: none;
}

.listing-map-link:hover {
    color: var(--rust-dark);
    text-decoration: underline;
}

.empty-state {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 1.1rem;
    grid-column: 1 / -1;
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state-icon {
    align-items: center;
    background: var(--cream-deep);
    border-radius: 50%;
    color: var(--rust);
    display: inline-flex;
    font-size: 1.5rem;
    height: 3.5rem;
    justify-content: center;
    margin-bottom: 0.8rem;
    width: 3.5rem;
}

.empty-state h3 {
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 0.35rem;
}

.empty-state p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.directory-pagination {
    align-items: center;
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.pagination-arrow,
.pagination-number {
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    color: var(--rust);
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 900;
    height: 2.2rem;
    justify-content: center;
    min-width: 2.2rem;
    text-decoration: none;
}

.pagination-number.active,
.pagination-arrow:hover,
.pagination-number:hover {
    background: var(--rust);
    border-color: var(--rust);
    color: #fff;
}

.directory-map-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: sticky;
    top: 1rem;
}

.map-panel-header {
    align-items: center;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    padding: 0.95rem 1rem;
}

.map-panel-header > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.map-panel-header strong {
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 900;
}

.map-kicker {
    font-size: 0.68rem;
}

.map-control {
    align-items: center;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    color: var(--rust);
    display: inline-flex;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.map-control:hover {
    background: var(--rust);
    color: #fff;
}

.directory-map-canvas {
    background: #D8D4CE;
    height: min(66vh, 700px);
    min-height: 520px;
    position: relative;
    touch-action: pan-y pinch-zoom;
    width: 100%;
}

.map-fallback {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    gap: 0.6rem;
    height: 100%;
    justify-content: center;
    position: absolute;
    width: 100%;
    z-index: 0;
}

.map-fallback i {
    color: var(--rust);
    font-size: 1.8rem;
}

.directory-map-canvas .leaflet-container {
    font-family: "Nunito", system-ui, sans-serif;
    height: 100%;
    width: 100%;
    z-index: 1;
}

.directory-map-canvas .leaflet-control-zoom a {
    color: var(--rust);
}

.play-map-marker {
    background: transparent;
    border: 0;
}

.play-map-marker span {
    align-items: center;
    background: var(--rust);
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 4px 12px rgba(93, 55, 35, 0.28);
    color: #fff;
    display: flex;
    font-size: 0.75rem;
    font-weight: 900;
    height: 32px;
    justify-content: center;
    transform: rotate(-45deg);
    width: 32px;
}

.play-map-marker span {
    line-height: 1;
    text-align: center;
}

.play-map-marker span b {
    font-weight: 900;
    transform: rotate(45deg);
}

.play-map-marker.is-selected span {
    background: #2F6F64;
    box-shadow: 0 5px 14px rgba(47, 111, 100, 0.35);
}

.map-panel-note {
    color: var(--muted);
    font-size: 0.74rem;
    margin: 0;
    padding: 0.75rem 1rem;
}

.map-panel-note i {
    color: var(--rust);
    margin-right: 0.25rem;
}

.directory-footer {
    font-size: 0.8rem;
}

.directory-footer a {
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 1100px) {
    .directory-layout {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
    }

    .directory-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .directory-shell {
        padding-top: 1.5rem;
    }

    .directory-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .directory-hero-cta {
        width: 100%;
    }

    .directory-layout {
        display: flex;
        flex-direction: column;
    }

    .directory-list-column,
    .directory-map-panel {
        width: 100%;
    }

    .directory-map-panel {
        order: 2;
        position: static;
    }

    .directory-map-canvas {
        height: 380px;
        min-height: 380px;
    }
}

@media (max-width: 560px) {
    .directory-filter-grid,
    .listing-grid {
        grid-template-columns: 1fr;
    }

    .filter-heading-row,
    .listing-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.6rem;
    }

    .listing-heading h2 {
        font-size: 1.35rem;
    }
}

/* Setup and diagnostics page */
.setup-page {
    min-height: 100vh;
    padding: 2rem 1rem 3rem;
}

.setup-shell {
    margin: 0 auto;
    max-width: 960px;
}

.setup-header {
    margin: 0 auto 1.5rem;
    text-align: center;
}

.setup-brand {
    color: var(--rust);
    display: inline-flex;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 900;
    text-decoration: none;
}

.setup-brand img {
    height: 32px;
    margin-right: 0.55rem;
}

.setup-badge {
    background: var(--cream-deep);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--rust-dark);
    display: table;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin: 1rem auto 1.2rem;
    padding: 0.45rem 0.8rem;
    text-transform: uppercase;
}

.setup-header h1 {
    color: var(--ink);
    font-family: inherit;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}

.setup-header p {
    color: var(--muted);
    margin: 0;
}

.setup-output {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.setup-output h3 {
    border-top: 1px solid var(--border);
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 900;
    margin: 1.8rem 0 1rem;
    padding-top: 1.6rem;
}

.setup-output h3:first-of-type {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.setup-output p {
    background: var(--cream);
    border: 1px solid transparent;
    border-radius: 0.8rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 0.65rem 0;
    padding: 0.8rem 1rem;
}

.setup-output p[style*="color: green"] {
    background: #EEF8F0;
    border-color: #CBE6D0;
    color: #28663A !important;
}

.setup-output p.setup-status-ok {
    background: #EEF8F0;
    border-color: #CBE6D0;
    color: #28663A !important;
}

.setup-output p[style*="color: orange"] {
    background: #FFF8E8;
    border-color: #F1D89A;
    color: #815E19 !important;
}

.setup-output p[style*="color: red"] {
    background: #FFF0EE;
    border-color: #F0C7C1;
    color: #9C3328 !important;
}

.setup-output p.setup-status-error {
    background: #FFF0EE;
    border-color: #F0C7C1;
    color: #9C3328 !important;
}

.setup-output ul {
    background: var(--cream);
    border-radius: 0.8rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0.65rem 0 1rem;
    padding: 0.85rem 1rem 0.85rem 2rem;
}

.setup-output li::marker {
    color: var(--rust);
}

.setup-footer {
    color: var(--muted);
    font-size: 0.8rem;
    margin: 1.2rem 0 0;
    text-align: center;
}

@media (max-width: 576px) {
    .setup-page {
        padding: 1.25rem 0.75rem 2rem;
    }

    .setup-output {
        border-radius: 1.1rem;
        padding: 1.1rem;
    }
}

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .blog-shell,
    .blog-post-shell {
        padding-top: 2rem;
    }

    .blog-search {
        border-radius: 1rem;
        flex-wrap: wrap;
        padding: 0.75rem;
    }

    .blog-search input {
        flex-basis: calc(100% - 2rem);
    }

    .blog-search .btn {
        flex: 1 1 auto;
        margin-left: 1.55rem;
    }

    .blog-section-heading {
        align-items: center;
        flex-direction: row;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}
