@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');

/* DM Sans font */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* Playfair font */
@import url('https://fonts.googleapis.com/css2?family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&display=swap');

:root {
    --navy: #0e2a4a;
    --navy-dark: #0a1f38;
    --red: #c12026;
    --red-hover: #a81b20;
    --white: #ffffff;
    --label-color: #98afc6;
    --placeholder: #848498;
    --border-light: #c5d4e3;
    --page-bg: #f5f7fa;
    --radius-hero: 60px;
    --radius-logo: 40px;
    --banner-height: 467px;
    --banner-height-mobile: 380px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Instrument Sans", sans-serif;
}

body {
    font-family: "Instrument Sans", sans-serif;
    background: var(--page-bg);
}

.main-section {
    font-family: "Instrument Sans", sans-serif;
    background: var(--page-bg);
    min-height: 100vh;
    max-width: 1920px;
    margin: auto;
}

.main-section h1,
.main-section h2,
.main-section h3,
.main-section h4,
.main-section h5,
.main-section h6,
.main-section p,
.main-section input,
.main-section a {
    margin: 0;
    font-family: "Instrument Sans", sans-serif;
}

.banner-section {
    position: relative;
    margin: 15px;
    height: 420px;
    background-size: cover;
    background-position: left top;
    background-repeat: no-repeat;
    border-radius: 30px;
    overflow: visible;
}

.banner-section {
    background-image: url('./images/hero-bg.png');
}

/* ── Event Detail Banner ── */
.evant-banner-section {
    background-image: url('./images/hero-bg.png');
    position: relative;
    margin: 10px;
    height: 280px;
    background-size: cover;
    background-position: left top;
    background-repeat: no-repeat;
    border-radius: 30px;
    overflow: visible;
}

.evant-banner-section .hero-content {
    padding-bottom: 24px;
}

.banner-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.logo-area {
    width: 340px;
    height: 96px;
    flex-shrink: 0;
    text-decoration: none;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.logo-area img {
    display: none;
}

.mobile-nav {
    display: none;
}

.mobile-nav-header,
.mobile-nav-close {
    display: none;
}

/* ── Header ── */
.site-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 96px;
    position: relative;
    z-index: 10;
    width: 100%;
}

/* ── Desktop Nav ── */
.desktop-nav {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 16px;
    padding: 0 clamp(10px, 2vw, 40px) 0 8px;
}

body.page-weather section.banner-section {
    height: 323px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.9vw, 27px);
    list-style: none;
    flex: 1;
    min-width: 0;
    justify-content: center;
    flex-wrap: nowrap;
}

.nav-list li {
    flex-shrink: 0;
}

.nav-list a {
    color: #BAC9D9;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
}

.nav-list a:hover {
    opacity: 0.85;
}

.nav-list a.active {
    color: #FFFFFF;
    font-weight: 700;
}

.mobile-nav a.active {
    color: #0E2A4A;
    font-weight: 700;
}

.nav-chevron {
    width: 12px;
    height: 12px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.btn-sponsor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #A8151A;
    border: 1px solid #640C0F;
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 11px 20px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
    transition: background 0.2s;
}

.btn-sponsor:hover {
    background: var(--red-hover);
}

/* ── Mobile menu button (hidden on desktop) ── */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 20px;
    flex-shrink: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-btn.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero Content ── */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 48px;
}

.countdown-wrap {
    margin-bottom: clamp(20px, 2vw, 32px);
}

.countdown-label {
    color: #BAC9D9;
    font-size: 12px;
    padding-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.countdown-timer {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF0D;

    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    padding: 10px 28px;
    color: var(--white);
    font-size: 13px;
}

.countdown-timer .time-unit {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

.countdown-timer strong {
    font-size: 18px;
    font-weight: 700;
}

.countdown-timer .divider {
    opacity: 0.5;
    font-weight: 300;
}

.hero-title {
    color: #E9EEF3;
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
}

.hero-title-line {
    display: inline;
}

article.vendor-card.vendor-card-grey.border-right {
    border-left: 6px solid #657174;
}

article.vendor-card.vendor-card-grey.border-bo {
    border-left: 6px solid #657174;
}

/* ── Search Bar (Desktop) ── */
.search-bar {
    position: absolute;
    bottom: -44px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1700px !important;
    display: flex;
    align-items: center;
    background: #173A5D;
    border: 6px solid var(--white);
    border-radius: 30px;
    padding: 20px 8px;
    z-index: 20;
    box-shadow: 0 12px 36px rgba(14, 42, 74, 0.22);
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 0 14px;
    border-right: 1px solid rgba(152, 175, 198, 0.35);
    min-width: 0;
}


.search-field:last-of-type {
    border-right: none;
}

.field-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.search-field label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--label-color);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.field-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.field-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-left: 8px;
    align-self: flex-end;
    pointer-events: none;
}

.search-field input,
.select-wrap select {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #E9EEF3;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding: 0;
}

.search-field input::placeholder {
    color: var(--white);
    font-weight: 600;
    opacity: 1;
}

.select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.select-wrap select {
    padding-right: 8px;
}

.select-wrap select option {
    background: var(--navy-dark);
    color: var(--white);
    font-weight: 600;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #A8151A;
    border: none;
    border-radius: 12px;
    width: 54px;
    height: 54px;
    min-width: 54px;
    margin-inline: 6px 10px;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--red-hover);
}

.search-btn-icon {
    width: 17px;
    height: 17px;
}

.search-btn-text {
    display: none;
}

/* ── Coffee Company / Vendor Card Section ── */
.coffe-company-section {
    padding: 72px 20px 48px;
}

.vendor-results-count {
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
    padding-bottom: 20px;
}

.vendor-results-count strong {
    color: #707070;
    font-weight: 600;
}

.vendor-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: #FDF8E6;
    border: 1px solid #E8C547;
    border-radius: 16px;
    padding: 24px 24px 24px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.vendor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 6px;
    background: #FCC202;
    border-radius: 16px 0 0 16px;
}

.vendor-card-image {
    position: relative;
    flex: 0 0 300px;
    width: 300px;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.vendor-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vendor-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 10px !important;
}

.vendor-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
}

.vendor-card-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 12px;
}

.vendor-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    max-width: 100%;
}

.coffe-company-section .vendor-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.coffe-company-section .vendor-contact-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coffe-company-section .vendor-icon-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #E2DCCF;
    border-radius: 8px;
    background: #FFFFFF;
}

.coffe-company-section .vendor-view-btn {
    width: 128px;
    min-width: 128px;
    max-width: 128px;
}

.coffe-company-section .vendor-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.coffe-company-section .vendor-tag {
    background: #9A70321F;

    color: #9A7032;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.coffe-company-section .vendor-tag-featured {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Playfair", serif;
    font-weight: 700;
    font-size: 16px;
}

.coffe-company-section .vendor-tag-featured-gold {
    background: #f5c518;
    color: #292929;
}

.coffe-company-section .vendor-tag-featured-silver {
    background: #4B5563;
    color: #ffffff;
}

.coffe-company-section .vendor-tag-featured-bronze {
    background: #C57746;
    color: #ffffff;
}

.coffe-company-section .vendor-tag-featured .vendor-crown-icon {
    width: 20px;
    height: 16px;
}

.vendor-contact-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vendor-card-title {
    color: #292929;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.vendor-card-location {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #707070;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 14px;
}

.vendor-location-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.65;
}

.vendor-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #E2DCCF;
    border-radius: 8px;
    background: var(--white);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.vendor-icon-btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.vendor-icon-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.vendor-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 128px;
    min-width: 128px;
    max-width: 128px;
    padding: 10px 16px;
    border: 0.67px solid #640C0F;
    background: #A8151A;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    white-space: nowrap;
    transition: background 0.2s;
    box-sizing: border-box;
}

.vendor-view-btn:hover {
    background: var(--red-hover);
}

.vendor-view-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.vendor-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.vendor-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F3EBE4;
    color: #9A7032;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.vendor-tag-featured {
    background: #f5c518;
    color: #292929;
    font-weight: 700;
    font-size: 16px;
    font-family: "Playfair", serif;
    letter-spacing: 0.3px;
}

.vendor-tag-featured-gold {
    background: #f5c518;
    color: #292929;
}

.vendor-tag-featured-silver,
.vendor-tag-featured-grey {
    background: #4B5563;
    color: #ffffff;
    font-family: "Playfair", serif;
}

.vendor-tag-featured-bronze {
    background: #C57746;
    color: #ffffff;
    font-family: "Playfair", serif;
}

.vendor-crown-icon {
    width: 20px;
    height: 16px;
    flex-shrink: 0;
}

.vendor-crown-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #C57746;
    flex-shrink: 0;
}

.vendor-crown-badge img {
    width: 16px;
    height: 13px;
    object-fit: contain;
}

.vendor-about {
    padding-top: 2px;
}

.vendor-about-title {
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.vendor-about-title span {
    color: #A8151A;
}

.vendor-about-text {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.65;
    max-width: 100%;
}

/* ── Howards Section (Grey Vendor Cards) ── */
.howards-section {
    padding: 0 20px 48px;
}

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

.vendor-card-grey {
    background: #F5F5F5;
    border: 1px solid #657174;
    padding: 20px;
    align-items: stretch;
}

.vendor-card-grey::before {
    display: none;
}

.vendor-card-grey .vendor-card-image {
    flex: 0 0 275px;
    width: 200px;
}

.vendor-card-image-logo {
    background: #EBEBEB;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.vendor-card-image-logo img {
    object-fit: contain;
}

.vendor-card-content-compact {
    gap: 0;
    padding-top: 0;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.vendor-card-content-compact .vendor-card-title {
    margin-bottom: 8px;
}

.vendor-card-content-compact .vendor-card-location {
    margin-bottom: 14px;
}

.vendor-card-content-compact .vendor-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.howards-section .vendor-card-grey {
    display: flex;
    align-items: stretch;
}

.howards-section .vendor-tag {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: #9A70321F;
    color: #9A7032;
    font-size: 14px;
    font-weight: 600;
    font-family: "Instrument Sans", sans-serif;
    padding: 6px 14px;
    border-radius: 20px;
    line-height: 1.2;
}

.howards-section .vendor-tag-featured,
.howards-section .vendor-tag-featured-grey,
.howards-section .vendor-tag-featured-gold,
.howards-section .vendor-tag-featured-silver,
.howards-section .vendor-tag-featured-bronze {
    display: inline-flex !important;
    font-family: "Playfair", serif;
    font-weight: 700;
    font-size: 14px;
}

.howards-section .vendor-tag-featured-gold {
    background: #f5c518;
    color: #292929;
}

.howards-section .vendor-tag-featured-silver,
.howards-section .vendor-tag-featured-grey,
.howards-section .vendor-tag-featured:not(.vendor-tag-featured-gold):not(.vendor-tag-featured-bronze):not(.vendor-tag-featured-silver) {
    background: #657174;
    color: #FFFFFF;
}

.howards-section .vendor-tag-featured-bronze {
    background: #C57746;
    color: #FFFFFF;
}

.howards-section .vendor-tag-featured .vendor-crown-icon,
.howards-section .vendor-tag-featured-grey .vendor-crown-icon,
.howards-section .vendor-tag-featured-gold .vendor-crown-icon,
.howards-section .vendor-tag-featured-silver .vendor-crown-icon,
.howards-section .vendor-tag-featured-bronze .vendor-crown-icon {
    width: 20px;
    height: 16px;
    object-fit: contain;
}

.howards-section .vendor-card-actions-bottom {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
    padding-top: 14px;
    border-top: 1px solid #E5E7EB;
}

.howards-section .vendor-contact-btns {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.howards-section .vendor-icon-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #D0D5DD;
    border-radius: 8px;
    background: #FFFFFF;
}

.howards-section .vendor-view-btn {
    margin-left: auto;
    flex-shrink: 0;
}

.vendor-card-actions-bottom {
    margin-top: auto;
    width: 100%;
    justify-content: space-between;
}

/* ── Woodcraft Section (Vendor Grid) ── */
.woodcraft-section {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    padding: 8px 20px 56px;
    background: #f3f4f6;
    box-sizing: border-box;
}

.woodcraft-grid {
    display: grid;
    gap: 20px;
}

.woodcraft-grid-large {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

.woodcraft-grid-compact {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 36px;
}

.woodcraft-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid #C57746;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.woodcraft-grid-large .woodcraft-card {
    border-bottom: 6px solid #C57746;
}

.woodcraft-card-compact {
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.woodcraft-card-image {
    width: 290px;
    margin: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f9fafb;
}

.woodcraft-card-compact .woodcraft-card-image {
    width: 192px;
    padding-top: 10px;
    height: 137px;
    max-width: 100%;
    aspect-ratio: unset;
    margin-left: auto;
    margin-right: auto;
}

.woodcraft-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.woodcraft-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
    padding: 14px 16px 16px;
}

.woodcraft-card-title {
    color: #292929;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
}

.woodcraft-card-compact .woodcraft-card-title {
    font-size: 16px;
    white-space: nowrap;
    font-weight: 700;
    color: #292929;
    overflow: hidden;
    text-overflow: ellipsis;
}

.woodcraft-card-location {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.woodcraft-card-compact .woodcraft-card-location {
    font-size: 11px;
    margin-bottom: 10px;
}

.woodcraft-card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.woodcraft-card-compact .woodcraft-card-tags {
    margin-bottom: 12px;
}

.woodcraft-card-tags .vendor-tag:not(.vendor-tag-featured) {
    font-size: 13px;
    padding: 5px 12px;
    background: #9A70321F;
    color: #9A7032;
}

.woodcraft-card-compact .woodcraft-card-tags .vendor-tag:not(.vendor-tag-featured) {
    font-size: 13px;
    padding: 4px 10px;
    background: #9A70321F;
    color: #9A7032;
    font-weight: 500;
}

.woodcraft-card-tags .vendor-tag-featured {
    font-size: 16px;
    padding: 6px 14px;
    font-weight: 700;
    border-radius: 20px;
    gap: 6px;
}

.woodcraft-card-tags .vendor-tag-featured-gold {
    background: #f5c518;
    color: #292929;
}

.woodcraft-card-tags .vendor-tag-featured-silver {
    background: #4B5563;
    color: #ffffff;
}

.woodcraft-card-tags .vendor-tag-featured-bronze {
    background: #C57746;
    color: #ffffff;
}

.woodcraft-crown-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #C57746;
    flex-shrink: 0;
}

.woodcraft-crown-badge img {
    width: 16px;
    height: 13px;
    object-fit: contain;
}

.woodcraft-card-tags .vendor-tag-featured .vendor-crown-icon {
    width: 20px;
    height: 16px;
}

.woodcraft-tags-mobile {
    display: none;
}

.woodcraft-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    width: 100%;
}

.woodcraft-card-actions .vendor-view-btn {
    margin-left: auto;
    flex-shrink: 0;
}

.woodcraft-card-compact .woodcraft-card-actions .vendor-view-btn {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    padding: 8px 10px;
    gap: 4px;
    font-size: 12px;
    border-radius: 8px;
}

.woodcraft-card-compact .vendor-view-icon {
    width: 12px;
    height: 12px;
}

.woodcraft-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.woodcraft-page-link {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.woodcraft-page-link:hover {
    color: #292929;
}

.woodcraft-page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.woodcraft-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: var(--white);
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.woodcraft-page-num:hover {
    border-color: #d1d5db;
    color: #292929;
}

.woodcraft-page-num.is-active {
    background: #A8151A;
    border-color: #A8151A;
    color: var(--white);
}

.woodcraft-show-more-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #A8151A;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.woodcraft-show-more-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* ── Footer Section ── */
.footer-section {
    width: 100%;
    margin-top: 0;
}

.footer-main {
    background: var(--white);
    padding: 56px 24px 48px;
}

.footer-inner {
  
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    width: auto;
    display: block;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: auto;
}

.footer-about {
    color: #707070;
    font-size: 14px;
    line-height: 1.65;

}

.footer-heading {
    color: #204c7c;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.footer-link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-list a {
    color: #707070;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link-list a:hover {
    color: #204c7c;
}

.footer-contact-item {
    color: #707070;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 6px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eef2f6;
    color: #204c7c;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.social-icon svg {
    width: 16px;
    height: 16px;
}

.social-icon:hover {
    background: #dce6f0;
}

.footer-cta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: end;
}

.footer-cta .footer-heading {
    margin-bottom: 6px;
}

.footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px clamp(15px, 2vw, 20px);
    border-radius: 8px;
    font-size: 15px;
    max-width: 182px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.footer-btn:hover {
    opacity: 0.92;
}

.footer-btn-red {
    background: #A8151A;

    color: var(--white);
}

.footer-btn-blue {
    background: #204c7c;
    color: var(--white);
}

.footer-bottom {
    background: #0c1c2c;
    padding: 18px 24px;
}

.footer-bottom-inner {
    max-width: 1420px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-bottom-start {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-copy,
.footer-rights,
.footer-bottom-end a,
.footer-bottom-mobile a {
    color: #9ca3af;
    font-size: 13px;
}

.footer-bottom-end {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-bottom-end a,
.footer-bottom-mobile a {
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-end a:hover,
.footer-bottom-mobile a:hover {
    color: var(--white);
}

.footer-bottom-mobile {
    display: none;
}

/* ── Event Detail Footer ── */
.event-detail-footer {
    width: 100%;
    margin-top: auto;
}

/* ── Product Section (Event Detail) ── */
.product-section {
    max-width: 1420px;
    margin: 0 auto;
    padding: 72px 20px 80px;
}

.product-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.results-count {
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
}

.results-count strong {
    color: #374151;
    font-weight: 600;
}

.view-toggle {
    display: inline-flex;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid #d1d5db;
    background: var(--white);
    color: #6b7280;
    font-family: "Instrument Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.toggle-btn:first-child {
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.toggle-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.toggle-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.toggle-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 21px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: #C577460D;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-image-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 90px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.badge-date-desktop {
    background: #ffffff;
    color: #0e2a4a;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    padding: 8px 12px 7px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.badge-date-mobile {
    display: none;
}

.badge-weekday {
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    padding: 7px 10px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.date-bar-black {
    background: #000000;
}

.date-bar-blue {
    background: #205e8b;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 18px 16px;
    gap: 16px;
}

.card-title {
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.card-location {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.4;
}

.card-location img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.card-desc {
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.card-tags span {
    background: #ede4d3;
    color: #7c6a4f;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
}

.card-featured {
    display: flex;
    align-items: center;
    font-family: "Playfair Display", serif;
    justify-content: center;
    gap: 8px;
    background: var(--footer-bg, #848889);
    color: var(--footer-color, #1a1a1a);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 12px 16px;
    text-transform: uppercase;
}

.card-featured svg {
    width: 20px;
    height: 16px;
    flex-shrink: 0;
}

.card-theme-yellow {
    --card-bg: #F3D98F33;
    --footer-bg: #f5c518;
    --footer-color: #1a1a1a;
}

.card-theme-yellow .card-body {
    background: #F3D98F33;
}

.card-theme-grey {
    --card-bg: #eef1f4;
    --footer-bg: #8a9aab;
    --footer-color: #ffffff;
}

.card-theme-copper {
    --card-bg: #fde8d8;
    --footer-bg: #b8734a;
    --footer-color: #ffffff;
}

.card-theme-plain {
    --card-bg: #ffffff;
}

.card-theme-plain .card-featured {
    display: none;
}

.product-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: var(--white);
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.page-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.page-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.page-back,
.page-next {
    padding: 0 18px;
}

/* ── Vendor Detail Page ── */
.vendor-detail-section {
    padding: 24px 20px 64px;
    background: var(--page-bg);
}

.vendor-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 400px);
    grid-template-areas:
        "breadcrumb ."
        "main sidebar";
    gap: 14px 24px;
    align-items: stretch;
}

.vendor-breadcrumb {
    grid-area: breadcrumb;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #707070;
    padding-left: 2px;
}

.vendor-detail-main {
    grid-area: main;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.company-information {
    grid-area: sidebar;
    height: 100%;
}

.vendor-breadcrumb a {
    color: #707070;
    text-decoration: none;
}

.vendor-breadcrumb a:hover {
    color: #204c7c;
}

.breadcrumb-sep {
    color: #9ca3af;
}

.vendor-detail-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px clamp(15px, 2vw, 28px) 28px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vendor-detail-intro {
    margin-bottom: 20px;
}

.vendor-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.vendor-detail-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.vendor-detail-head-row .vendor-detail-location {
    flex: 1;
    min-width: 0;
}

.vendor-detail-head-row .vendor-directions-btn-desktop {
    flex-shrink: 0;
}

.vendor-detail-section .vendor-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #eef1f4;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
}

.vendor-detail-section .vendor-tag img {
    width: 20px;
    height: 14px;
}

.vendor-detail-section .vendor-tag-featured {
    font-weight: 600;
}

.vendor-detail-section .vendor-tag-featured-gold {
    background: #f5c518;
    color: #1a1a1a;
}

.vendor-detail-section .vendor-tag-featured-silver {
    background: #4B5563;
    color: #ffffff;
}

.vendor-detail-section .vendor-tag-featured-bronze {
    background: #C57746;
    color: #ffffff;
}

.vendor-directions-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    background: #A8151A;
    border: 1px solid #640C0F;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;

    transition: background 0.2s, transform 0.2s;
}

.vendor-directions-btn-mobile {
    display: none;
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
}

.vendor-directions-btn:hover {
    background: var(--red-hover);
}

.vendor-directions-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.vendor-detail-title {
    color: #1f2937;
    font-size: clamp(16px, 2.5vw, 32px);
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    padding-bottom: 12px;
}


.vendor-detail-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.5;
}

.vendor-detail-location img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.vendor-detail-hero {
    margin-bottom: 20px;
    border-radius: 14px;
    overflow: hidden;
}

.vendor-detail-hero img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 435px;
    max-height: 360px;
    object-fit: cover;
    border-radius: 14px;
}

.vendor-detail-body {
    margin-top: 0;
    margin-bottom: 24px;
    flex: 1;
}

.vendor-detail-actions {
    margin-top: 4px;
}

@media (min-width: 993px) {
    .vendor-directions-btn-desktop {
        display: inline-flex;
    }

    .vendor-detail-actions {
        display: none;
    }
}

.vendor-quote {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin: 0 0 24px;
}

.vendor-quote-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    opacity: 0.45;
}

.vendor-quote p {
    color: #4b5563;
    font-size: 15px;
    font-style: italic;
    line-height: 1.65;
}

.vendor-about-title {
    color: #1f2937;
    font-size: 20px;
    font-weight: 700;
    padding-bottom: 23px;
}

.vendor-established {
    display: inline-flex;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 18px;
}

.vendor-established-label {
    padding: 10px 16px;
    background: #eef1f4;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

.vendor-established-value {
    padding: 10px 20px;
    background: #ECECEC;
    color: #292929;
    font-size: 14px;
    font-weight: 600;
}

.vendor-about-text {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}

/* ── Company Information Sidebar ── */
.company-information {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100%;
}

.company-info-card,
.company-details-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px 22px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.company-details-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.company-card-heading {
    color: #A8151A;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding-bottom: 20px;
    line-height: 1.3;
}

.company-card-heading .heading-accent {
    color: #A8151A;
}

.company-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}

.company-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.company-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #F6F6F6;

}

.company-info-icon img {
    width: 18px;
    height: 18px;
}

.company-info-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.company-info-label {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.company-info-value {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    word-break: break-word;
}

.company-info-link {
    color: #2563eb;
    font-weight: 600;
}

.share-business {
    padding-top: 4px;
    border-top: 1px solid #eef1f4;
}

.share-heading,
.payments-heading {
    margin-bottom: 14px;
}

.share-social-list {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eef1f4;
    text-decoration: none;
    transition: background 0.2s;
}

.share-social-btn:hover {
    background: #dce6f0;
}

.share-social-btn img {
    width: 16px;
    height: 16px;
}

.business-hours-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 12px;
    align-items: center;
    padding: 0 12px 10px;
    margin-bottom: 6px;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.business-hours-head span:first-child {
    padding-left: 14px; /* match .hours-dot width + gap so DAY lines up with day names */
}

.business-hours-head span:last-child,
.hours-time {
    text-align: right;
}

.business-hours-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}

.hours-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    color: #4b5563;
    font-size: 13px;
}

.hours-row.is-active {
    background: #f3f4f6;
    color: #1f2937;
    font-weight: 600;
}

.hours-day {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.hours-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    flex-shrink: 0;
}

.hours-row.is-active .hours-dot {
    background: #A8151A;
}

.hours-time {
    text-align: right;
    white-space: nowrap;
}

.accepted-payments {
    padding-top: 4px;
    border-top: 1px solid #eef1f4;
}

.payment-list {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    gap: 24px;
    flex-wrap: wrap;
}

.payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 72px;
}

.payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eef1f4;
}

.payment-icon img {
    width: 20px;
    height: 20px;
}

.payment-label {
    color: #6b7280;
    font-size: 12px;
    text-align: center;
}

/* ── Weather Page ── */
.weather-section {
    width: 100%;

    padding: 40px 16px;
    box-sizing: border-box;
    max-width: 1670px;
    margin: auto;
}

.weather-widget-wrap {
    width: 100%;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(14, 42, 74, 0.08);
}

.weather-widget-wrap iframe {
    display: block;
    width: 100%;
    height: 520px;
    border: 0;
    background: #FFFFFF;
}

@media (max-width: 767px) {
    .weather-section {
        margin: 16px auto 28px;
        padding: 0 12px;
    }

    .weather-widget-wrap {
        max-width: 100%;
        border-radius: 8px;
    }

    /* Match native WillyWeather height — taller CSS left empty white under the widget */
    .weather-widget-wrap iframe {
        width: 100%;
        height: 520px;
    }
}

@media (max-width: 480px) {
    .weather-section {
        margin: 12px auto 24px;
        padding: 0 10px;
    }
}

/* ── Online Mapping Page ── */
.mapping-section {
    width: 100%;
    margin: 40px auto 60px;
    padding: 0 24px;
    box-sizing: border-box;
}

.mapping-card {
    width: 100%;
    background: #FFFFFF;
    border-radius: 28px;
    padding: 14px;
    box-shadow: 0 8px 28px rgba(14, 42, 74, 0.1);
    box-sizing: border-box;
}

.mapping-frame {
    position: relative;
    width: 100%;
    height: 560px;
    border-radius: 22px;
    overflow: hidden;
    background: #E8EEF4;
}

#tradeDaysMap {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    z-index: 1;
}

.mapping-frame .leaflet-control-zoom {
    border: none !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18) !important;
    margin-top: 12px !important;
    margin-right: 12px !important;
}

.mapping-frame .leaflet-control-zoom a {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    background: #FFFFFF !important;
    color: #3C4043 !important;
    border: none !important;
    border-bottom: 1px solid #E0E0E0 !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    text-align: center !important;
    text-decoration: none !important;
    display: block !important;
}

.mapping-frame .leaflet-control-zoom a:last-child {
    border-bottom: none !important;
}

.mapping-frame .leaflet-control-zoom a:hover {
    background: #F8F8F8 !important;
    color: #202124 !important;
}

.mapping-frame .leaflet-control-zoom-in {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}

.mapping-frame .leaflet-control-zoom-out {
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

.mapping-frame .leaflet-bar a.leaflet-disabled {
    color: #BDBDBD !important;
    cursor: default !important;
}

.mapping-frame .leaflet-top.leaflet-right {
    right: 0;
    top: 0;
}

@media (max-width: 992px) {
    .mapping-section {
        margin: 32px auto 48px;
        padding: 0 16px;
    }

    .mapping-frame {
        height: 480px;
    }
}

@media (max-width: 767px) {
    .mapping-section {
        margin: 20px auto 40px;
        padding: 0 14px;
    }

    .mapping-card {
        border-radius: 24px;
        padding: 12px;
        box-shadow: 0 6px 20px rgba(14, 42, 74, 0.1);
    }

    .mapping-frame {
        /* Match M-site Online Mapping: map fills most of the phone below the banner */
        height: min(52vh, 480px);
        min-height: 400px;
        border-radius: 18px;
    }

    .mapping-frame .leaflet-control-zoom a {
        width: 36px !important;
        height: 36px !important;
        line-height: 36px !important;
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    .mapping-section {
        padding: 0 12px;
    }

    .mapping-card {
        border-radius: 20px;
        padding: 10px;
    }

    .mapping-frame {
        height: min(50vh, 440px);
        min-height: 380px;
        border-radius: 16px;
    }
}

/* ── Calendar Page ── */
.calendar-section {
    width: 100%;
    margin: 80px auto 60px;
    padding: 0 16px;
    box-sizing: border-box;
}

.calendar-inner {
    width: 100%;
    max-width: 1350px;
    margin: auto;
}

form.search-bar {
    max-width: 1350px !important;
    margin: auto;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 16px;
}

.calendar-filter-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 41px;
    height: 41px;
    padding: 0;
    border: 1.5px solid #1D4A77;
    border-radius: 10px;
    background: #F7F8FA;
    cursor: pointer;
    flex-shrink: 0;
}

.calendar-filter-btn img {
    width: 16px;
    height: 16px;
    display: block;
}

.calendar-filter-btn.is-open {
    background: #FFFFFF;
    border-color: #1D4A77;
}

.calendar-filter-panel {
    display: none;
    margin-bottom: 16px;
    padding: 16px;
    background: #FFFFFF;
    border: 1px solid #E6ECF2;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(14, 42, 74, 0.08);
}

.calendar-filter-panel.is-open {
    display: block;
}

.calendar-filter-panel .search-field {
    display: block;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid #D5DEE8;
    border-radius: 10px;
    background: #FFFFFF;
    height: auto;
    grid-template-columns: unset;
    grid-template-rows: unset;
}

.calendar-filter-panel .search-field:last-of-type {
    margin-bottom: 14px;
}

.calendar-filter-panel .search-field .field-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calendar-filter-panel label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6B7C8F;
    font-size: 12px;
    margin-bottom: 0;
    grid-column: unset;
    grid-row: unset;
}

.calendar-filter-panel .field-icon {
    width: 14px;
    height: 14px;
}

.calendar-filter-panel input,
.calendar-filter-panel .select-wrap {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #D5DEE8;
    border-radius: 8px;
    outline: none;
    background: #FFFFFF;
    color: #0E2A4A;
    font-family: "Instrument Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 12px;
    grid-column: unset;
    grid-row: unset;
}

.calendar-filter-panel input::placeholder {
    color: #6A8AAC;
    font-weight: 500;
}

.calendar-filter-panel .select-wrap {
    position: relative;
    display: block;
    padding-right: 36px;
}

.calendar-filter-panel .select-wrap select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #0E2A4A;
    font-family: "Instrument Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
}

.calendar-filter-panel .has-chevron {
    position: relative;
}

/* Figma: chevron at the right corner of the Date/Category field */
.calendar-filter-panel .search-field .field-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    margin: 0;
    pointer-events: none;
    z-index: 2;
    grid-column: unset;
    grid-row: unset;
    justify-self: unset;
    align-self: unset;
}

.calendar-filter-panel .search-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: none;
    border-radius: 10px;
    background: #A8151A;
    color: #FFFFFF;
    font-family: "Instrument Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.calendar-filter-panel .search-btn-icon {
    width: 16px;
    height: 16px;
}

.calendar-view-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
}

.calendar-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1.5px solid #1B4A7A;
    background: #FFFFFF;
    color: #1B4A7A;
    font-family: "Instrument Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.calendar-toggle-btn:first-child {
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.calendar-toggle-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.calendar-toggle-btn.is-active {
    background: #A8151A;
    border-color: #A8151A;
    color: #FFFFFF;
}

.calendar-toggle-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.calendar-toggle-btn.is-active .calendar-toggle-icon-img {
    filter: brightness(0) invert(1);
}

.calendar-section .wrap,
.calendar-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 28px clamp(10px, 1.4vw, 28px) 24px;
    box-sizing: border-box;
}

.calendar-section .header,
.calendar-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    border-bottom: none;
    padding-bottom: 0;
    flex-wrap: wrap;
}

.calendar-section .month-title {
    margin: 0;
    color: #1A1A1A;
    font-family: "Instrument Sans", sans-serif;
    font-size: clamp(16px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

.calendar-section .month-title span {
    color: #1A1A1A;
}

.calendar-section .nav,
.calendar-controls {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.4vw, 30px);
}

.calendar-nav-arrows {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-section button.today {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 105px;
    height: 40px;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    background: #A8151A;
    color: #FFFFFF;
    font-family: "Instrument Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-section button.today:hover {
    background: #8f1216;
    color: #FFFFFF;
}

.calendar-section button.navbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #205183;
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-section button.navbtn:hover {
    background: #173A5D;
    color: #FFFFFF;
}

.calendar-section button.navbtn img {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
}

.calendar-section .grid,
.calendar-weekdays,
.calendar-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.calendar-days {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-top: none;
}

.calendar-week {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    min-height: 110px;
}

.calendar-week-grid {
    flex: 1 1 auto;
    min-height: 110px;
}

.calendar-week-ranges {
    position: absolute;
    left: 0;
    right: 0;
    top: 28px;
    bottom: 8px;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.calendar-weekdays {
    border-bottom: 1px solid #E8EDF2;
    margin-bottom: 0;
}

.calendar-section .dow {
    text-align: left;
    color: #9AA8B8;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 10px 12px 14px;
    min-width: 0;
    box-sizing: border-box;
    border-right: 1px solid #E8EDF2;
}

.calendar-weekdays > .dow:nth-child(7) {
    border-right: none;
}

.calendar-section .day {
    min-width: 0;
    min-height: 110px;
    height: 100%;
    overflow: hidden;
    padding: 10px 10px 40px;
    background: #FFFFFF;
    border: none;
    border-right: 1px solid #E8EDF2;
    border-bottom: 1px solid #E8EDF2;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    transition: background 0.15s;
    z-index: 1;
    box-sizing: border-box;
}

.calendar-week-grid > .day:nth-child(7) {
    border-right: none;
}

.calendar-week:last-child .day {
    border-bottom: none;
}

.calendar-section .day:hover {
    box-shadow: none;
    background: #F8FAFC;
}

.calendar-section .day.weekend {
    background: #F0F4F8;
}

.calendar-section .day.weekend:hover {
    background: #E8EEF4;
}

.calendar-section .day.other {
    opacity: 1;
    background: #F7F9FB;
}

.calendar-section .day.other.weekend {
    background: #EEF2F6;
}

.calendar-section .day.other .daynum {
    color: #B0BAC6;
    font-weight: 400;
}

.calendar-section .day.today {
    border: none;
    border-right: 1px solid #E8EDF2;
    border-bottom: 1px solid #E8EDF2;
    box-shadow: none;
    outline: 1px solid #205183;
    outline-offset: -1px;
    z-index: 2;
}

.calendar-week-grid > .day.today:nth-child(7) {
    border-right: none;
}

.calendar-week:last-child .day.today {
    border-bottom: none;
}

.calendar-section .daynum {
    align-self: flex-start;
    margin-bottom: 6px;
    color: #2A2A2A;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.calendar-section .events {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    overflow: hidden;
    padding-bottom: 0;
}

.calendar-section .ev {
    background: #1D4E89;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 6px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    max-width: 100%;
}

.calendar-section .ev.sage {
    background: #173A5D;
    color: #FFFFFF;
}

.calendar-range-event {
    position: absolute;
    left: 0;
    top: 0;
    bottom: auto;
    height: 22px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: #205183;
    border-radius: 0;
    color: #FFFFFF;
    font-family: "Instrument Sans", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 3;
    box-sizing: border-box;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: none;
    text-decoration: none;
}

.calendar-range-event.is-accent {
    background: #1D4E89;
}

.calendar-range-event.is-segment-start {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.calendar-range-event.is-segment-end {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.calendar-range-event.is-segment-start.is-segment-end {
    border-radius: 4px;
}

.calendar-range-more {
    position: absolute;
    left: 0;
    margin: 0;
    padding: 2px 8px 0;
    border: 0;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    color: #6B7C8F;
    text-align: left;
    line-height: 1.2;
    cursor: pointer;
    pointer-events: auto;
    z-index: 4;
    box-sizing: border-box;
}

.calendar-range-more:hover {
    color: #205183;
    text-decoration: underline;
}

.calendar-section .more {
    font-size: 11px;
    color: #6B7C8F;
    padding-left: 2px;
}

.calendar-section .addhint {
    display: none;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 42, 74, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 16px;
}

.overlay.open {
    display: flex;
}

.modal {
    background: #FFFFFF;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    padding: 22px;
    box-shadow: 0 12px 40px rgba(14, 42, 74, 0.25);
}

.modal h2 {
    margin: 0 0 4px;
    font-family: "Instrument Sans", sans-serif;
    font-size: 1.3rem;
    color: #1A1A1A;
}

.modal .datestr {
    color: #6B7C8F;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6B7C8F;
    margin-bottom: 5px;
}

.field input {
    width: 100%;
    border: 1px solid #E5EAF0;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: "Instrument Sans", sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}

.row {
    display: flex;
    gap: 10px;
}

.row .field {
    flex: 1;
}

.swatches {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.swatch.sel {
    border-color: #0E2A4A;
}

.sw-accent {
    background: #0E2A4A;
}

.sw-sage {
    background: #98AFC6;
}

.existing {
    border-top: 1px solid #E5EAF0;
    margin-top: 4px;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 140px;
    overflow-y: auto;
}

.exist-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F5F7FA;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 0.85rem;
}

.exist-row .t {
    font-weight: 600;
    color: #0E2A4A;
    min-width: 52px;
    font-size: 0.75rem;
}

.exist-row .n {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exist-row button {
    border: none;
    background: none;
    color: #A8151A;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 2px 4px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.btn {
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: "Instrument Sans", sans-serif;
}

.btn-primary {
    background: #A8151A;
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #8f1216;
}

.btn-ghost {
    background: none;
    color: #6B7C8F;
}

.btn-ghost:hover {
    color: #0E2A4A;
}
    .page-weather .banner-section .countdown-label::before,
    .page-weather .banner-section .countdown-label::after,
    .page-mapping .banner-section .countdown-label::before,
    .page-mapping .banner-section .countdown-label::after,
    .page-calendar .banner-section .countdown-label::before,
    .page-calendar .banner-section .countdown-label::after {
        content: '';
        flex: 1;
        max-width: 40px;
        height: 1px;
        background:#1D4A77;
    }

@media (max-width: 767px) {
    .calendar-section {
        margin: 20px auto 36px;
        padding: 0 12px;
    }

    .calendar-toolbar {
        margin-bottom: 12px;
        gap: 8px;
    }

    .calendar-card {
        padding: 14px 10px 16px;
        border-radius: 10px;
    }

    .calendar-card-header,
    .calendar-section .header {
        gap: 10px;
        margin-bottom: 14px;
        align-items: center;
    }

    .calendar-section .month-title {
        font-size: 18px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .calendar-controls,
    .calendar-section .nav {
        gap: 8px;
        flex-shrink: 0;
    }

    .calendar-section button.today {
        min-width: 64px;
        height: 34px;
        padding: 0 10px;
        font-size: 12px;
        border-radius: 8px;
    }

    .calendar-section button.navbtn {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .calendar-section button.navbtn img {
        width: 14px;
        height: 14px;
    }

    .calendar-board {
        width: 100%;
        overflow: hidden;
    }

    .calendar-section .dow {
        font-size: 10px;
        letter-spacing: 0.02em;
        padding: 8px 2px 10px;
        text-align: center;
    }

    .calendar-week,
    .calendar-week-grid {
        min-height: 72px;
    }

    .calendar-week-ranges {
        top: 20px;
        bottom: 4px;
    }

    .calendar-section .day {
        min-height: 72px;
        padding: 4px 2px 26px;
    }

    .calendar-section .daynum {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .calendar-range-event {
        top: 0;
        bottom: auto;
        height: 14px;
        font-size: 9px;
        padding: 0 4px;
        line-height: 1;
    }

    .calendar-range-event.is-segment-start {
        border-top-left-radius: 3px;
        border-bottom-left-radius: 3px;
    }

    .calendar-range-event.is-segment-end {
        border-top-right-radius: 3px;
        border-bottom-right-radius: 3px;
    }

    .calendar-range-event.is-segment-start.is-segment-end {
        border-radius: 3px;
    }

    .calendar-range-more {
        font-size: 9px;
        padding: 0 2px;
        color: #6B7C8F;
    }

    .calendar-section .events {
        gap: 2px;
        margin-top: 2px;
        padding-bottom: 0;
    }

    .calendar-section .ev {
        font-size: 9px;
        padding: 2px 4px;
        border-radius: 2px;
    }

    .calendar-section .more {
        font-size: 9px;
        padding-left: 1px;
    }

    .overlay {
        padding: 12px;
        align-items: flex-end;
    }

    .modal {
        max-width: 100%;
        border-radius: 14px 14px 0 0;
        padding: 18px 16px 20px;
    }

    .modal h2 {
        font-size: 1.15rem;
    }

    .exist-row {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .calendar-section {
        padding: 0 8px;
        margin: 16px auto 32px;
    }

    .calendar-card {
        padding: 12px 6px 14px;
        border-radius: 8px;
    }

    .calendar-section .month-title {
        font-size: 16px;
    }

    .calendar-section .dow {
        font-size: 9px;
        padding: 0 1px 8px;
    }

    .calendar-week,
    .calendar-week-grid {
        min-height: 64px;
    }

    .calendar-section .day {
        min-height: 64px;
        padding: 3px 1px 22px;
    }

    .calendar-section .daynum {
        font-size: 10px;
    }

    .calendar-week-ranges {
        top: 18px;
    }

    .calendar-range-event {
        height: 12px;
        font-size: 8px;
        padding: 0 3px;
    }

    .calendar-range-more {
        font-size: 8px;
    }

    .calendar-section button.today {
        min-width: 56px;
        height: 32px;
        font-size: 11px;
    }

    .calendar-section button.navbtn {
        width: 32px;
        height: 32px;
    }
}

/* ── Weather / Mapping / Calendar banner (≤999px) ── */
@media (max-width: 999px) {

    .page-weather .banner-section,
    .page-mapping .banner-section,
    .page-printable .banner-section,
    .page-calendar .banner-section {
        height: 300px !important;
        min-height: 300px !important;
        overflow: hidden !important;
    }

    .page-weather .banner-section .banner-inner,
    .page-mapping .banner-section .banner-inner,
    .page-printable .banner-section .banner-inner,
    .page-calendar .banner-section .banner-inner {
        height: 100% !important;
        min-height: 100% !important;
        display: flex;
        flex-direction: column;
        padding-bottom: 0 !important;
    }

    .page-weather .banner-section .hero-content,
    .page-mapping .banner-section .hero-content,
    .page-printable .banner-section .hero-content,
    .page-calendar .banner-section .hero-content {
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100%;
        margin: 0 auto;
        padding: 8px 16px 20px !important;
    }

    .page-weather .banner-section .countdown-wrap,
    .page-mapping .banner-section .countdown-wrap,
    .page-printable .banner-section .countdown-wrap,
    .page-calendar .banner-section .countdown-wrap {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 18px;
    }

    .page-weather .banner-section .countdown-label,
    .page-mapping .banner-section .countdown-label,
    .page-printable .banner-section .countdown-label,
    .page-calendar .banner-section .countdown-label {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        width: 100%;
        max-width: 420px;
        margin: 0 auto 14px;
        color: #FFFFFF;
        font-size: 11px;
        letter-spacing: 1.4px;
        text-align: center;
    }

    .page-weather .banner-section .countdown-timer,
    .page-mapping .banner-section .countdown-timer,
    .page-printable .banner-section .countdown-timer,
    .page-calendar .banner-section .countdown-timer {
        margin: 0 auto;
        justify-content: center;
    }

    .page-weather .banner-section .hero-title,
    .page-mapping .banner-section .hero-title,
    .page-printable .banner-section .hero-title,
    .page-calendar .banner-section .hero-title {
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .page-calendar .banner-section .search-bar {
        display: none !important;
    }

    .page-calendar .calendar-toolbar {
        justify-content: space-between;
    }

    .page-calendar .calendar-filter-btn {
        display: inline-flex;
    }
}

@media (min-width: 600px) {
    .calendar-view-toggle {
        display: inline-flex;
        width: max-content;
        flex-shrink: 0;
    }

    .calendar-toggle-btn {
        width: 128px;
        min-width: 128px;
        justify-content: center;
    }

    .calendar-toggle-daily-icon,
    .calendar-toggle-daily-icon img {
        width: 16px;
        height: 16px;
        display: block;
        flex-shrink: 0;
    }
}

@media (max-width: 599px) {
    .calendar-view-toggle {
        display: inline-flex;
        width: max-content;
        flex-shrink: 0;
    }

    .calendar-toggle-btn {
        width: 44px;
        min-width: 44px;
        height: 40px;
        padding: 0;
        gap: 0;
        justify-content: center;
    }



    .calendar-toggle-btn:last-child {
        border-radius: 0 8px 8px 0;
    }

    .calendar-toggle-label {
        display: none;
    }

    .calendar-toggle-daily-icon,
    .calendar-toggle-daily-icon img,
    .calendar-toggle-icon {
        width: 16px;
        height: 16px;
        display: block;
        flex-shrink: 0;
    }

    .calendar-toggle-btn.is-active .calendar-toggle-daily-icon img {
        filter: brightness(0) invert(1);
    }
}

@media (min-width: 1000px) {
    .page-weather .banner-section .countdown-wrap,
    .page-mapping .banner-section .countdown-wrap,
    .page-calendar .banner-section .countdown-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-weather .banner-section .countdown-label,
    .page-mapping .banner-section .countdown-label,
    .page-calendar .banner-section .countdown-label {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        width: auto;
        max-width: none;
    }

    .page-weather .banner-section .countdown-label::before,
    .page-weather .banner-section .countdown-label::after,
    .page-mapping .banner-section .countdown-label::before,
    .page-mapping .banner-section .countdown-label::after,
    .page-calendar .banner-section .countdown-label::before,
    .page-calendar .banner-section .countdown-label::after {
        content: '';
        flex: 0 0 48px;
        width: 48px;
        max-width: 48px;
        height: 1px;
        background: #1D4A77;
    }
}
/* ========== Laravel app overrides ========== */

.logo-area {
    pointer-events: auto;
}

.logo-area .logo-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero-subtitle,
.mapping-address,
.main-section .hero-subtitle,
.main-section p.mapping-address {
    margin: 10px 0 0 !important;
    color: rgba(233, 238, 243, 0.92);
    font-family: "Instrument Sans", sans-serif;
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
}

.countdown-label {
    font-family: "DM Sans", sans-serif !important;
}

.countdown-timer strong {
    font-variant-numeric: tabular-nums;
    min-width: 2ch;
    display: inline-block;
    text-align: center;
}

.nav-list a.active,
.nav-list a.nav-dropdown-toggle.active {
    color: #FFFFFF;
    font-weight: 700;
    opacity: 1;
}

.nav-list > li.has-dropdown {
    position: relative;
}

.nav-list > li.has-dropdown > a.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(14, 42, 74, 0.18);
    z-index: 40;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.nav-list > li.has-dropdown:hover > .nav-dropdown-menu,
.nav-list > li.has-dropdown.is-open > .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #3C4A57 !important;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: #F3F6F9;
    color: #0E2A4A !important;
    opacity: 1;
}

.vendor-detail-title .title-accent {
    color: #A8151A;
}

.vendor-detail-title {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.vendor-detail-location {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.vendor-detail-hero.has-carousel {
    overflow: visible;
}

.vendor-photo-carousel {
    position: relative;
}

.vendor-photo-carousel-viewport {
    overflow: hidden;
    border-radius: 14px;
}

.vendor-photo-carousel-track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
}

.vendor-photo-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.vendor-photo-slide img {
    border-radius: 14px;
}

.vendor-photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.vendor-photo-nav:hover,
.vendor-photo-nav:focus-visible {
    background: rgba(17, 24, 39, 0.8);
    outline: none;
}

.vendor-photo-nav img {
    width: 18px;
    height: 18px;
    min-height: 0;
    max-height: none;
    border-radius: 0;
    object-fit: contain;
}

.vendor-photo-prev {
    left: 12px;
}

.vendor-photo-next {
    right: 12px;
}

.vendor-photo-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
}

.vendor-photo-dot {
    pointer-events: auto;
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.vendor-photo-dot.is-active {
    background: #fff;
}

.business-hours-empty {
    margin: 12px 0 24px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.calendar-board {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-top: 1px solid #E8EDF2;
    border-left: 1px solid #E8EDF2;
    border-right: 1px solid #E8EDF2;
    border-bottom: 1px solid #E8EDF2;
    box-sizing: border-box;
}

.calendar-section .ev {
    display: block;
    text-decoration: none;
    max-width: 100%;
}

.calendar-section a.ev:hover {
    color: #FFFFFF;
    opacity: 0.92;
}

/* Printable map reuses .mapping-section / .mapping-card / .mapping-frame dimensions */
.printable-map-section {
    max-width: none;
}

.printable-map-card {
    width: 100%;
}

.printable-map-viewer {
    background: #EAF6EA;
}

.printable-map-stage {
    width: 100%;
    height: 100%;
    overflow: auto;
    text-align: center;
}

.printable-map-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    transform-origin: center top;
    transition: transform 0.15s ease;
}

.printable-map-zoom-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    background: #FFFFFF;
}

.printable-map-zoom-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-bottom: 1px solid #E0E0E0;
    background: #FFFFFF;
    color: #3C4043;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.printable-map-zoom-btn:last-child {
    border-bottom: 0;
}

.printable-map-zoom-btn:hover:not(:disabled) {
    background: #F5F5F5;
}

.printable-map-zoom-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

@media print {
    .site-header,
    .site-footer,
    .banner-section,
    .printable-map-zoom-controls,
    .vendors-footer,
    footer {
        display: none !important;
    }

    .printable-map-section,
    .printable-map-card,
    .printable-map-viewer,
    .printable-map-stage {
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        background: #fff !important;
    }

    .printable-map-img {
        width: 100% !important;
        transform: none !important;
    }
}

@media (max-width: 767px) {
    .mapping-section {
        margin: 20px auto 40px;
        padding: 0 14px;
    }

    .mapping-card {
        border-radius: 24px;
        padding: 12px;
        box-shadow: 0 6px 20px rgba(14, 42, 74, 0.1);
    }

    .mapping-frame {
        height: min(52vh, 480px);
        min-height: 400px;
        border-radius: 18px;
    }

    /* Mobile printable: drop empty band under the map; desktop keeps fixed scroll frame */
    .printable-map-viewer.mapping-frame {
        height: auto;
        min-height: 0;
    }

    .printable-map-viewer .printable-map-stage {
        height: auto;
    }

    .mapping-frame .leaflet-control-zoom a {
        width: 36px !important;
        height: 36px !important;
        line-height: 36px !important;
        font-size: 20px !important;
    }

    .printable-map-zoom-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .mapping-section {
        padding: 0 12px;
    }

    .mapping-card {
        border-radius: 20px;
        padding: 10px;
    }

    .printable-map-viewer.mapping-frame {
        height: auto;
        min-height: 0;
        border-radius: 16px;
    }

    .printable-map-img {
        border-radius: 12px;
    }
}

/* Mobile detail banner background + shared module banner tweaks */
@media (max-width: 999px) {
    .evant-banner-section.mobile-bg {
        background-image: url('./images/mobile-bg.png');
        background-position: center top;
    }

    .page-weather .banner-section,
    .page-mapping .banner-section,
    .page-printable .banner-section,
    .page-calendar .banner-section {
        height: 300px !important;
        min-height: 300px !important;
        overflow: hidden !important;
    }

    .page-weather .banner-section .banner-inner,
    .page-mapping .banner-section .banner-inner,
    .page-printable .banner-section .banner-inner,
    .page-calendar .banner-section .banner-inner {
        height: 100% !important;
        min-height: 100% !important;
        display: flex;
        flex-direction: column;
        padding-bottom: 0 !important;
    }

    .page-weather .banner-section .hero-content,
    .page-mapping .banner-section .hero-content,
    .page-printable .banner-section .hero-content,
    .page-calendar .banner-section .hero-content {
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100%;
        margin: 0 auto;
        padding: 8px 16px 20px !important;
    }
}

@media (max-width: 480px) {
    .page-weather.page-weather .banner-section {
        height: 280px !important;
        min-height: 280px !important;
    }
}
.max-content {
    max-width: 182px;
    width: 100%;
    align-items: self-start;
    margin-left: auto;
    text-align: left;
    justify-content: flex-start;
}