/**
 * TownHub — Front-end Styles
 *
 * Clean, mobile-first design. NZ community feel.
 * Brand colour: #2d6a4f (deep green — NZ bush green)
 */

/* ═══ RESET & BASE ═══ */

html {
    scroll-behavior: smooth;
}

.townhub-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
}

.townhub-wrap *, .townhub-wrap *::before, .townhub-wrap *::after {
    box-sizing: border-box;
}

.townhub-wrap a {
    color: #2d6a4f;
    text-decoration: none;
}

.townhub-wrap a:hover {
    text-decoration: underline;
}

.townhub-wrap a.townhub-btn {
    color: #fff;
}

.townhub-wrap a.townhub-btn.townhub-btn-secondary {
    color: #1a1a1a;
}

.townhub-wrap a.townhub-btn.townhub-btn-outline {
    color: #fff;
}

.townhub-wrap a.townhub-btn:hover {
    text-decoration: none;
}

/* ═══ LOGO & BRAND ═══ */

.townhub-logo {
    font-size: 48px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -1px;
    margin: 0;
}

.townhub-logo span, .townhub-footer-brand span, .townhub-logo-small span {
    color: #2d6a4f;
}

.townhub-logo-small {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    text-decoration: none;
}

.townhub-logo-small:hover {
    text-decoration: none;
}

/* ═══ HERO ═══ */

.townhub-hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%);
    border-radius: 16px;
    margin: 20px 0 30px;
}

.townhub-tagline {
    font-size: 20px;
    color: #2d6a4f;
    font-weight: 600;
    margin: 8px 0 4px;
}

.townhub-subtitle {
    color: #555;
    font-size: 15px;
    margin: 0;
}

/* ═══ BOARD HEADER ═══ */

.townhub-board-header {
    background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
    color: #fff;
    padding: 30px 24px;
    border-radius: 16px;
    margin: 20px 0 0;
    overflow: hidden;
    position: relative;
}

/* Banner variant — when a town has a banner image */
.townhub-board-header-banner {
    padding: 0;
    background: none;
}

.townhub-banner {
    width: 100%;
    display: block;
}

.townhub-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px 16px 0 0;
}

.townhub-board-header-banner .townhub-board-header-inner {
    background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
    padding: 14px 24px;
    border-radius: 0 0 16px 16px;
}

.townhub-board-header-banner .townhub-board-nav {
    margin-bottom: 0;
}

.townhub-board-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.townhub-board-nav .townhub-logo-small {
    color: #fff;
}

.townhub-board-nav .townhub-logo-small span {
    color: #a7f3d0;
}

.townhub-town-switcher select {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.townhub-town-switcher select option {
    color: #1a1a1a;
    background: #fff;
}

.townhub-board-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
}

.townhub-board-subtitle {
    margin: 6px 0 0;
    opacity: 0.85;
    font-size: 15px;
}

/* ═══ QUICK NAV ═══ */

.townhub-quicknav {
    display: flex;
    gap: 4px;
    padding: 12px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 8px;
}

.townhub-quicknav a {
    flex-shrink: 0;
    padding: 6px 14px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.townhub-quicknav a:hover {
    background: #2d6a4f;
    color: #fff;
    text-decoration: none;
}

/* ═══ SECTIONS ═══ */

.townhub-section {
    padding: 28px 0;
    border-bottom: 1px solid #e5e7eb;
}

.townhub-section:last-of-type {
    border-bottom: none;
}

.townhub-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1a1a1a;
}

.townhub-section-note {
    color: #6b7280;
    font-size: 14px;
    margin: -8px 0 16px;
}

.townhub-empty-section {
    background: #f9fafb;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    color: #6b7280;
}

/* ═══ DIRECTORY CATEGORIES PREVIEW ═══ */

.townhub-dir-categories-preview {
    margin-top: 24px;
}

.townhub-dir-categories-preview h2 {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 12px;
}

.townhub-cat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.townhub-cat-chip {
    background: #f0fdf4;
    color: #2d6a4f;
    border: 1px solid #bbf7d0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ═══ SUBPAGE HEADER ═══ */

.townhub-subpage-header {
    padding: 24px 0 16px;
}

.townhub-subpage-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 8px 0 4px;
    color: #1a1a1a;
}

.townhub-back {
    font-size: 14px;
    color: #6b7280;
}

/* ═══ EDITORIAL ═══ */

.townhub-editorial h3 {
    font-size: 20px;
    margin: 0 0 4px;
}

.townhub-editorial-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

.townhub-editorial-content {
    font-size: 15px;
    line-height: 1.7;
}

.townhub-editorial-content p {
    margin: 0 0 12px;
}

/* ═══ EVENTS ═══ */

.townhub-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.townhub-event-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.townhub-event-date-badge {
    flex-shrink: 0;
    width: 56px;
    text-align: center;
    background: #2d6a4f;
    color: #fff;
    border-radius: 10px;
    padding: 8px 4px;
}

.townhub-event-day {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.townhub-event-month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.townhub-event-dow {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    margin-top: 2px;
}

.townhub-event-details {
    flex: 1;
}

.townhub-event-details h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
}

.townhub-event-time,
.townhub-event-location,
.townhub-event-cost,
.townhub-event-organiser {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

/* ═══ EVENTS CALENDAR ═══ */

.townhub-cal {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.townhub-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.townhub-cal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.townhub-cal-nav {
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.15s;
}

.townhub-cal-nav:hover {
    background: #e5e7eb;
}

.townhub-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.townhub-cal-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    padding: 4px 0 8px;
    text-transform: uppercase;
}

.townhub-cal-cell {
    position: relative;
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.townhub-cal-num {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.townhub-cal-empty {
    opacity: 0;
}

.townhub-cal-today {
    background: #f0fdf4;
}

.townhub-cal-today .townhub-cal-num {
    color: #2d6a4f;
    font-weight: 700;
}

.townhub-cal-has-event {
    cursor: pointer;
    transition: background 0.15s;
}

.townhub-cal-has-event:hover {
    background: #f0fdf4;
}

.townhub-cal-dot {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2d6a4f;
}

/* ── View toggle ── */
.townhub-cal-toggle {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 16px;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 3px;
}

.townhub-cal-toggle-btn {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
}

.townhub-cal-toggle-btn:hover {
    color: #1a1a1a;
}

.townhub-cal-toggle-active {
    background: #fff;
    color: #2d6a4f;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ── Week view ── */
.townhub-cal-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.townhub-cal-week-day {
    background: #f9fafb;
    border-radius: 10px;
    padding: 10px 8px;
    min-height: 80px;
}

.townhub-cal-week-day.townhub-cal-today {
    background: #f0fdf4;
    border: 2px solid #2d6a4f;
}

.townhub-cal-week-header {
    text-align: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
}

.townhub-cal-week-name {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
}

.townhub-cal-week-num {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #374151;
}

.townhub-cal-today-num {
    color: #2d6a4f;
}

.townhub-cal-week-empty {
    text-align: center;
    color: #d1d5db;
    font-size: 14px;
    padding: 8px 0;
}

.townhub-cal-week-day .townhub-cal-event {
    padding: 8px 10px;
    margin-bottom: 6px;
    font-size: 13px;
}

.townhub-cal-week-day .townhub-cal-event strong {
    font-size: 13px;
}

.townhub-cal-week-day .townhub-cal-event-meta {
    font-size: 11px;
}

/* Week view stacks on mobile */
@media (max-width: 600px) {
    .townhub-cal-week {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .townhub-cal-week-day {
        display: grid;
        grid-template-columns: 60px 1fr;
        gap: 8px;
        min-height: auto;
        padding: 10px 12px;
        align-items: start;
    }

    .townhub-cal-week-header {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
        text-align: left;
    }

    .townhub-cal-week-num {
        font-size: 22px;
    }

    .townhub-cal-week-empty {
        text-align: left;
        padding: 4px 0;
    }
}

.townhub-cal-loading {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
    font-size: 14px;
}

.townhub-cal-detail {
    margin-top: 12px;
}

.townhub-cal-detail:empty {
    margin-top: 0;
}

.townhub-cal-event {
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 8px;
    border-left: 4px solid #2d6a4f;
}

.townhub-cal-event:last-child {
    margin-bottom: 0;
}

.townhub-cal-event strong {
    font-size: 15px;
    color: #1a1a1a;
    display: block;
    margin-bottom: 4px;
}

.townhub-cal-event-meta {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.townhub-cal-event-desc {
    font-size: 13px;
    color: #374151;
    margin: 6px 0 0;
    line-height: 1.5;
}

/* ═══ DIRECTORY SECTIONS ═══ */
.townhub-dir-section {
    margin-bottom: 32px;
    scroll-margin-top: 20px;
}

.townhub-dir-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 3px solid #2d6a4f;
}

/* ═══ BUSINESS CARDS ═══ */

.townhub-biz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.townhub-biz-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.townhub-biz-featured {
    border-color: #2d6a4f;
    border-width: 2px;
}

.townhub-biz-featured-badge {
    position: absolute;
    top: -1px;
    right: 16px;
    background: #2d6a4f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 0 0 8px 8px;
}

.townhub-biz-standard {
    background: #f9fafb;
}

.townhub-biz-logo {
    margin-bottom: 12px;
}

.townhub-biz-logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
}

.townhub-biz-card-body h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px;
}

.townhub-biz-card-body h3 a {
    color: #1a1a1a;
}

.townhub-biz-category {
    display: inline-block;
    font-size: 12px;
    color: #2d6a4f;
    background: #f0fdf4;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 6px;
}

.townhub-biz-desc {
    font-size: 14px;
    color: #374151;
    margin: 6px 0 10px;
}

.townhub-biz-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.townhub-biz-phone,
.townhub-biz-link,
.townhub-biz-social {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #374151;
}

.townhub-biz-phone:hover,
.townhub-biz-link:hover,
.townhub-biz-social:hover {
    background: #e5e7eb;
    text-decoration: none;
}

.townhub-biz-cta {
    text-align: center;
    margin-top: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    font-size: 14px;
}

/* ═══ CLASSIFIEDS ═══ */

.townhub-classifieds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.townhub-classified-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.townhub-classified-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.townhub-classified-body {
    padding: 16px;
}

.townhub-classified-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.townhub-classified-type-for-sale { background: #dbeafe; color: #1e40af; }
.townhub-classified-type-free     { background: #d1fae5; color: #065f46; }
.townhub-classified-type-swap     { background: #fef3c7; color: #92400e; }
.townhub-classified-type-wanted   { background: #fce7f3; color: #9d174d; }

.townhub-classified-body h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
}

.townhub-classified-body p {
    font-size: 14px;
    color: #374151;
    margin: 0 0 8px;
}

.townhub-classified-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.townhub-classified-price {
    font-weight: 700;
    color: #1a1a1a;
}

.townhub-classified-contact {
    display: inline-block;
    font-size: 13px;
    padding: 4px 12px;
    background: #2d6a4f;
    color: #fff;
    border-radius: 6px;
}

.townhub-classified-contact:hover {
    background: #1b4332;
    text-decoration: none;
    color: #fff;
}

.townhub-classified-share,
.townhub-biz-share,
.townhub-event-share {
    padding: 8px 16px;
    border-top: 1px solid #f3f4f6;
}

/* ═══ SHARE BUTTONS ═══ */

.townhub-share-buttons {
    display: flex;
    gap: 8px;
}

.townhub-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
}

.townhub-share-btn:hover {
    text-decoration: none;
}

.townhub-share-fb:hover {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.townhub-share-wa:hover {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

.townhub-share-copy:hover {
    background: #374151;
    color: #fff;
    border-color: #374151;
}

/* ═══ LIVE WEATHER ═══ */

.townhub-weather-now {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.townhub-weather-icon {
    font-size: 40px;
    line-height: 1;
}

.townhub-weather-temp {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.townhub-weather-desc {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.townhub-weather-details {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

/* reserved */
.townhub-weather-more {
    display: none;
}

/* 3-day forecast row */
.townhub-forecast-row {
    display: flex;
    gap: 12px;
}

.townhub-forecast-day {
    flex: 1;
    text-align: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 10px;
}

.townhub-forecast-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 4px;
}

.townhub-forecast-icon {
    display: block;
    font-size: 28px;
    margin-bottom: 4px;
}

.townhub-forecast-temps {
    display: block;
    font-size: 13px;
    color: #6b7280;
}

/* ═══ LIVE RIVER ═══ */

.townhub-river-flow {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.townhub-river-value {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.townhub-river-unit {
    font-size: 14px;
    color: #6b7280;
}

.townhub-river-level {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.townhub-river-normal { color: #2d6a4f; }
.townhub-river-low    { color: #92400e; }
.townhub-river-above  { color: #d97706; }
.townhub-river-high   { color: #dc2626; }

/* ═══ POLL ═══ */

.townhub-poll-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.townhub-poll-question {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
}

.townhub-poll-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.townhub-poll-vote-btn {
    width: 100%;
    padding: 12px 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
}

.townhub-poll-vote-btn:hover {
    border-color: #2d6a4f;
    background: #f0fdf4;
}

.townhub-poll-result {
    position: relative;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 10px;
    overflow: hidden;
}

.townhub-poll-bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: #d1fae5;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.townhub-poll-label {
    position: relative;
    z-index: 1;
    font-size: 15px;
    font-weight: 500;
}

.townhub-poll-pct {
    position: relative;
    z-index: 1;
    float: right;
    font-size: 14px;
    font-weight: 700;
    color: #2d6a4f;
}

.townhub-poll-total {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-top: 12px;
}

/* ═══ WEATHER & INFO ═══ */

.townhub-weather-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.townhub-weather-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.townhub-weather-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
}

.townhub-weather-note {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px;
}

.townhub-info-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
}

.townhub-info-card p {
    margin: 0 0 12px;
    font-size: 15px;
}

.townhub-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.townhub-info-list li {
    padding: 4px 0;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.townhub-info-list li:last-child {
    border-bottom: none;
}

/* ═══ USEFUL NUMBERS ═══ */

.townhub-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.townhub-number-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.townhub-number-card strong {
    font-size: 13px;
    color: #374151;
}

.townhub-number-card a {
    font-size: 18px;
    font-weight: 700;
    color: #2d6a4f;
}

/* ═══ NEWSLETTER ═══ */

.townhub-newsletter-section {
    text-align: center;
    background: #f0fdf4;
    padding: 32px 24px;
    border-radius: 12px;
    margin-top: 24px;
}

.townhub-newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 400px;
    margin: 16px auto 0;
}

.townhub-newsletter-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
}

.townhub-newsletter-input:focus {
    outline: none;
    border-color: #2d6a4f;
}

.townhub-newsletter-note {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}

/* ═══ FILTER BAR ═══ */

.townhub-filter-bar {
    display: flex;
    gap: 6px;
    padding: 12px 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.townhub-filter-chip {
    flex-shrink: 0;
    padding: 6px 14px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.townhub-filter-chip:hover {
    background: #e5e7eb;
    text-decoration: none;
}

.townhub-filter-chip.active {
    background: #2d6a4f;
    color: #fff;
}

/* ═══ BUTTONS ═══ */

.townhub-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    color: #fff;
    background: #2d6a4f;
    text-decoration: none;
}

.townhub-btn:hover {
    text-decoration: none;
    color: #fff;
}

.townhub-btn-primary {
    background: #2d6a4f;
    color: #fff;
}

.townhub-btn-primary:hover {
    background: #1b4332;
    color: #fff;
}

.townhub-btn-secondary {
    background: #f3f4f6;
    color: #1a1a1a;
}

.townhub-btn-secondary:hover {
    background: #e5e7eb;
    color: #1a1a1a;
}

.townhub-btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.townhub-btn-outline:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.townhub-btn-small {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 8px;
    background: #2d6a4f;
    color: #fff;
}

.townhub-btn-small:hover {
    color: #fff;
}

.townhub-view-all {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #40916c;
    text-decoration: none;
}

.townhub-view-all:hover {
    color: #2d6a4f;
    text-decoration: underline;
}

/* ═══ CTA BOX ═══ */

.townhub-cta-box {
    text-align: center;
    padding: 32px 24px;
    background: #f0fdf4;
    border-radius: 12px;
    margin-top: 24px;
}

.townhub-cta-box h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.townhub-cta-box p {
    margin: 0 0 16px;
    color: #374151;
    font-size: 14px;
}

/* ═══ PRICING CARDS ═══ */

.townhub-pricing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 600px;
    margin: 24px auto 0;
}

.townhub-pricing-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    position: relative;
}

.townhub-pricing-featured {
    border-color: #2d6a4f;
    border-width: 2px;
}

.townhub-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d6a4f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.townhub-pricing-card h3 {
    font-size: 18px;
    margin: 0 0 8px;
}

.townhub-pricing-price {
    font-size: 36px;
    font-weight: 800;
    color: #2d6a4f;
    margin-bottom: 16px;
}

.townhub-pricing-price span {
    font-size: 16px;
    font-weight: 400;
    color: #6b7280;
}

.townhub-pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
}

.townhub-pricing-card li {
    padding: 5px 0;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
}

.townhub-pricing-card li::before {
    content: '✓ ';
    color: #2d6a4f;
    font-weight: 700;
}

/* ═══ ABOUT GRID ═══ */

.townhub-about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.townhub-about-card {
    text-align: center;
    padding: 24px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.townhub-about-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.townhub-about-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
}

.townhub-about-card p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* ═══ TOWN GRID ═══ */

.townhub-town-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.townhub-town-tile {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.2s;
    position: relative;
}

.townhub-town-tile:hover {
    border-color: #2d6a4f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45,106,79,0.1);
    text-decoration: none;
}

.townhub-town-tile-name {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
}

.townhub-town-tile-desc {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.townhub-town-tile-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 20px;
    color: #2d6a4f;
}

/* ═══ BUSINESS SINGLE ═══ */

.townhub-business-single {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}

.townhub-business-single-header {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 32px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.townhub-business-single-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
}

.townhub-business-single-info h1 {
    font-size: 26px;
    margin: 0 0 4px;
}

.townhub-business-single-cats {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.townhub-business-single-address {
    font-size: 14px;
    color: #6b7280;
    margin: 6px 0 0;
}

.townhub-business-single-desc {
    padding: 24px 32px;
    font-size: 15px;
    line-height: 1.7;
    border-bottom: 1px solid #e5e7eb;
}

.townhub-business-single-contact {
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
}

.townhub-business-single-contact h3 {
    font-size: 16px;
    margin: 0 0 12px;
}

.townhub-business-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.townhub-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 14px;
    color: #374151;
}

.townhub-contact-item:hover {
    background: #e5e7eb;
    text-decoration: none;
}

.townhub-contact-icon {
    font-size: 18px;
}

/* ═══ BUSINESS GALLERY ═══ */

.townhub-business-single-gallery {
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
}

.townhub-business-single-gallery h3 {
    font-size: 16px;
    margin: 0 0 12px;
}

.townhub-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.townhub-gallery-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.townhub-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.townhub-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox */
.townhub-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.townhub-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.townhub-lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.townhub-lightbox-close:hover {
    opacity: 1;
}

/* Gallery manage (account page) */
.townhub-gallery-manage {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.townhub-gallery-manage-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: visible;
}

.townhub-gallery-manage-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: block;
}

.townhub-gallery-manage-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: #ef4444;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 14px;
    line-height: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.townhub-gallery-manage-remove:hover {
    background: #dc2626;
}

.townhub-gallery-upload-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.townhub-business-single-share {
    padding: 24px 32px;
}

.townhub-business-single-share h3 {
    font-size: 16px;
    margin: 0 0 12px;
}

/* ═══ LIVE WEATHER DISPLAY ═══ */

.townhub-weather-now {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.townhub-weather-icon {
    font-size: 48px;
    line-height: 1;
}

.townhub-weather-temp {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
}

.townhub-weather-desc {
    font-size: 15px;
    color: #374151;
    font-weight: 600;
    margin-bottom: 8px;
}

.townhub-weather-details {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #6b7280;
}

/* 3-day forecast row */
.townhub-forecast-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.townhub-forecast-day {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    background: #f9fafb;
    border-radius: 10px;
}

.townhub-forecast-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 4px;
}

.townhub-forecast-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 4px;
}

.townhub-forecast-temps {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

/* River data display */
.townhub-river-flow {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.townhub-river-value {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
}

.townhub-river-unit {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.townhub-river-level {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.townhub-river-normal { background: #d1fae5; color: #065f46; }
.townhub-river-low    { background: #fef3c7; color: #92400e; }
.townhub-river-above  { background: #fed7aa; color: #9a3412; }
.townhub-river-high   { background: #fecaca; color: #991b1b; }

/* ═══ EDITORIAL (THIS WEEK) PAGE ═══ */

.townhub-editorial-full {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}

.townhub-editorial-full h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
}

.townhub-editorial-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 20px;
}

.townhub-editorial-content {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
}

.townhub-editorial-content p {
    margin: 0 0 16px;
}

.townhub-editorial-summary {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.15s;
}

.townhub-editorial-summary:hover {
    border-color: #2d6a4f;
    text-decoration: none;
}

.townhub-editorial-summary h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1a1a1a;
}

.townhub-editorial-summary .townhub-editorial-meta {
    margin-bottom: 0;
}

/* ═══ POLL FULL PAGE ═══ */

.townhub-poll-full {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}

.townhub-poll-full h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 20px;
}

/* ═══ WEATHER FULL PAGE ═══ */

.townhub-weather-full-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.townhub-forecast-extended {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.townhub-forecast-extended h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
}

.townhub-extended-day {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.townhub-extended-day:last-child {
    border-bottom: none;
}

.townhub-extended-date {
    width: 100px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.townhub-extended-icon {
    font-size: 24px;
}

.townhub-extended-desc {
    flex: 1;
    font-size: 14px;
    color: #6b7280;
}

.townhub-extended-temps {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.townhub-extended-low {
    font-weight: 400;
    color: #6b7280;
}

.townhub-weather-tips {
    background: #f9fafb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.townhub-weather-tips h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
}

.townhub-weather-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.townhub-weather-tips li {
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid #e5e7eb;
}

.townhub-weather-tips li:last-child {
    border-bottom: none;
}

/* ═══ EXTENDED WEATHER STYLES ═══ */

.townhub-weather-updated-line {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0 0;
}

/* Today's summary grid */
.townhub-today-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.townhub-today-item {
    background: #f9fafb;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.townhub-today-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 4px;
}

.townhub-today-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Hourly forecast — horizontal card strip */
.townhub-hourly-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 0 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.townhub-hourly-strip::-webkit-scrollbar {
    height: 6px;
}

.townhub-hourly-strip::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.townhub-hourly-strip::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.townhub-hour-card {
    flex: 0 0 auto;
    width: 76px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.townhub-hour-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.townhub-hour-now {
    background: #2d6a4f;
    border-color: #2d6a4f;
    color: #fff;
}

.townhub-hour-now .townhub-hour-time,
.townhub-hour-now .townhub-hour-temp,
.townhub-hour-now .townhub-hour-rain,
.townhub-hour-now .townhub-hour-wind {
    color: #fff;
}

.townhub-hour-now .townhub-hour-rain,
.townhub-hour-now .townhub-hour-wind {
    opacity: 0.8;
}

.townhub-hour-time {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.townhub-hour-icon {
    font-size: 26px;
    line-height: 1;
}

.townhub-hour-temp {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
}

.townhub-hour-rain {
    font-size: 11px;
    color: #3b82f6;
}

.townhub-hour-wind {
    font-size: 11px;
    color: #6b7280;
}

/* Extended forecast extras */
.townhub-extended-extra {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.townhub-extended-sun {
    display: block;
    font-size: 12px;
    color: #92400e;
    margin-top: 2px;
}

@media (max-width: 600px) {
    .townhub-today-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .townhub-hour-card {
        width: 68px;
        padding: 10px 6px;
    }

    .townhub-hour-icon {
        font-size: 22px;
    }

    .townhub-hour-temp {
        font-size: 16px;
    }
}

/* ═══ AUTH & ACCOUNT SYSTEM ═══ */

.townhub-auth-container {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.townhub-auth-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 420px;
}

.townhub-auth-card-wide {
    max-width: 640px;
}

.townhub-auth-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin: 0 0 4px;
}

.townhub-auth-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 24px;
}

.townhub-auth-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.townhub-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.townhub-alert-success { background: #d1fae5; color: #065f46; }
.townhub-alert-warning { background: #fef3c7; color: #92400e; }
.townhub-alert-info    { background: #dbeafe; color: #1e40af; }

.townhub-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.townhub-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.townhub-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.townhub-form-group input,
.townhub-form-group select,
.townhub-form-group textarea {
    padding: 10px 14px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.townhub-form-group input:focus,
.townhub-form-group select:focus,
.townhub-form-group textarea:focus {
    outline: none;
    border-color: #2d6a4f;
}

.townhub-form-group input:disabled,
.townhub-form-group select:disabled,
.townhub-form-group textarea:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.townhub-form-hint {
    font-size: 12px;
    color: #9ca3af;
}

.townhub-form-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.townhub-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.townhub-form-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 8px 0;
}

.townhub-form-section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
}

.townhub-form-note {
    padding: 12px 16px;
    background: #f0fdf4;
    border-radius: 10px;
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
}

.townhub-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.townhub-btn-full {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    color: #fff;
}

.townhub-btn-full:hover {
    color: #fff;
}

.townhub-auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #6b7280;
}

.townhub-auth-footer a {
    color: #2d6a4f;
    font-weight: 600;
}

/* Header auth links */
.townhub-landing-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 0;
}

.townhub-header-auth {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Account type selector */
.townhub-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.townhub-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 12px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.townhub-type-btn:hover {
    border-color: #2d6a4f;
}

.townhub-type-btn.active {
    border-color: #2d6a4f;
    background: #f0fdf4;
}

.townhub-type-icon { font-size: 28px; }
.townhub-type-label { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.townhub-type-desc { font-size: 12px; color: #6b7280; }

/* Account bar */
.townhub-account-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.townhub-account-name {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* ═══ DASHBOARD ═══ */

.townhub-page-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 20px;
}

.townhub-dash-tabs {
    display: flex;
    gap: 4px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
    overflow-x: auto;
}

.townhub-dash-tab {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    transition: all 0.15s;
}

.townhub-dash-tab:hover {
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
}

.townhub-dash-tab.active {
    background: #2d6a4f;
    color: #fff;
}

.townhub-dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.townhub-dash-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
}

.townhub-dash-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 16px;
}

.townhub-dash-card-cta {
    background: #f0fdf4;
    border-color: #2d6a4f;
}

.townhub-dash-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.townhub-dash-stat:last-of-type { border-bottom: none; }

.townhub-dash-stat-label { font-size: 14px; color: #6b7280; }
.townhub-dash-stat-value { font-size: 14px; font-weight: 600; color: #1a1a1a; }

.townhub-dash-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.townhub-dash-links { list-style: none; padding: 0; margin: 0; }
.townhub-dash-links li { padding: 8px 0; border-bottom: 1px solid #f3f4f6; }
.townhub-dash-links li:last-child { border-bottom: none; }
.townhub-dash-links a { font-size: 14px; font-weight: 500; color: #2d6a4f; }

.townhub-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.townhub-badge-featured { background: #fef3c7; color: #92400e; }
.townhub-badge-standard { background: #f3f4f6; color: #6b7280; }

.townhub-featured-perks { list-style: none; padding: 0; margin: 12px 0 20px; }
.townhub-featured-perks li { padding: 4px 0; font-size: 14px; color: #374151; }

.townhub-featured-fields { position: relative; }
.townhub-fields-locked { opacity: 0.6; }

.townhub-fields-lock-banner {
    padding: 10px 16px;
    background: #fef3c7;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 12px;
}

.townhub-current-logo { margin-bottom: 8px; }
.townhub-current-logo img {
    width: 80px; height: 80px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.townhub-my-listings { display: flex; flex-direction: column; gap: 8px; }

.townhub-my-listing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.townhub-my-listing-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.townhub-my-listing-info strong { font-size: 15px; }
.townhub-my-listing-date { font-size: 12px; color: #9ca3af; }

.townhub-btn-small-text {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
    color: #fff;
}

.townhub-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

/* ═══ FOOTER ═══ */

.townhub-footer {
    text-align: center;
    padding: 32px 0 0;
    margin-top: 20px;
}

.townhub-footer-brand {
    font-size: 16px;
    font-weight: 700;
    color: #374151;
}

.townhub-footer-note {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 4px;
}

/* ═══ RESPONSIVE ═══ */

@media (max-width: 640px) {
    .townhub-logo { font-size: 36px; }
    .townhub-board-title { font-size: 28px; }
    .townhub-hero { padding: 40px 16px 30px; }

    .townhub-weather-grid,
    .townhub-pricing-cards {
        grid-template-columns: 1fr;
    }

    .townhub-biz-grid,
    .townhub-classifieds-grid {
        grid-template-columns: 1fr;
    }

    .townhub-newsletter-form {
        flex-direction: column;
    }

    .townhub-business-single-header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .townhub-business-single-desc,
    .townhub-business-single-contact,
    .townhub-business-single-gallery,
    .townhub-business-single-share {
        padding: 20px;
    }

    .townhub-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
    }

    .townhub-business-contact-grid {
        grid-template-columns: 1fr;
    }

    .townhub-weather-full-grid {
        grid-template-columns: 1fr;
    }

    .townhub-editorial-full {
        padding: 20px;
    }

    .townhub-poll-full {
        padding: 20px;
    }

    .townhub-extended-date {
        width: 80px;
        font-size: 13px;
    }

    .townhub-extended-desc {
        display: none;
    }

    /* Account responsive */
    .townhub-form-row-2col {
        grid-template-columns: 1fr;
    }

    .townhub-type-selector {
        grid-template-columns: 1fr;
    }

    .townhub-auth-card {
        padding: 20px;
    }

    .townhub-dash-grid {
        grid-template-columns: 1fr;
    }

    .townhub-my-listing-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .townhub-dash-actions {
        flex-direction: column;
    }

    .townhub-dash-actions .townhub-btn {
        width: 100%;
        text-align: center;
    }
}

/* ═══ CLAIM PAGE ═══ */

.townhub-claim-box {
    max-width: 500px;
    margin: 24px auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.townhub-claim-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: #6b7280;
}

.townhub-claim-icon-biz {
    color: #2d6a4f;
}

.townhub-claim-box h2 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.townhub-claim-box p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.townhub-claim-notice {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    text-align: left;
}

.townhub-claim-notice p {
    color: #92400e;
    font-size: 0.85rem;
    margin: 0;
}

.townhub-btn-claim {
    font-size: 1rem;
    padding: 12px 32px;
}

.townhub-claim-tabs {
    display: flex;
    gap: 0;
    margin: 20px 0 0;
    border-bottom: 2px solid #e5e7eb;
}

.townhub-claim-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.townhub-claim-tab:hover {
    color: #2d6a4f;
}

.townhub-claim-tab.active {
    color: #2d6a4f;
    border-bottom-color: #2d6a4f;
}

.townhub-claim-form {
    display: none;
    text-align: left;
    padding-top: 20px;
}

.townhub-claim-form.active {
    display: block;
}

.townhub-claim-form .townhub-form-row {
    margin-bottom: 14px;
}

.townhub-claim-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.townhub-claim-form .townhub-form-hint {
    font-weight: 400;
    color: #9ca3af;
}

.townhub-claim-form input[type="text"],
.townhub-claim-form input[type="email"],
.townhub-claim-form input[type="password"],
.townhub-claim-form input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.townhub-claim-form input:focus {
    outline: none;
    border-color: #2d6a4f;
    box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

.townhub-claim-form .townhub-btn {
    width: 100%;
    margin-top: 8px;
}

/* Claim link on directory cards */
.townhub-biz-claim-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.townhub-biz-claim-link:hover {
    color: #2d6a4f;
}
