/* ══════════════════════════════════════════
 * HOOKED! Fishing Club Directory
 * Front-end Styles
 * ══════════════════════════════════════════ */

:root {
    --hooked-brand:      #1B3A4B;
    --hooked-accent:     #E87722;
    --hooked-blue:       #2E75B6;
    --hooked-light:      #D5E8F0;
    --hooked-green:      #27ae60;
    --hooked-grey:       #666;
    --hooked-grey-light: #f5f5f5;
    --hooked-border:     #e0e0e0;
    --hooked-radius:     8px;
    --hooked-shadow:     0 2px 8px rgba(0,0,0,.08);
}

/* ── Layout ── */
.hooked-page-header {
    text-align: center;
    padding: 40px 20px 30px;
    max-width: 700px;
    margin: 0 auto;
}
.hooked-page-header h1 {
    font-size: 2rem;
    color: var(--hooked-brand);
    margin-bottom: 10px;
}
.hooked-page-header p {
    color: var(--hooked-grey);
    font-size: 1.05rem;
}

/* ── Search Bar ── */
.hooked-search-bar {
    background: var(--hooked-brand);
    padding: 20px;
    border-radius: var(--hooked-radius);
    margin-bottom: 24px;
}
.hooked-search-bar__inner {
    display: flex;
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
    flex-wrap: wrap;
}
.hooked-search-field {
    flex: 1;
    min-width: 150px;
    position: relative;
}
.hooked-search-field input,
.hooked-search-field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border-color .2s;
}
.hooked-search-field input:focus {
    border-color: var(--hooked-accent);
}
.hooked-search-field--radius {
    flex: 0 0 160px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hooked-search-field--radius label {
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}
#hooked-locate-me {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
}

/* ── Buttons ── */
.hooked-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
    text-align: center;
}
.hooked-btn--primary {
    background: var(--hooked-accent);
    color: #fff;
}
.hooked-btn--primary:hover {
    background: #d06a1d;
    color: #fff;
}
.hooked-btn--large {
    padding: 16px 32px;
    font-size: 1.1rem;
    width: 100%;
}
.hooked-btn--text {
    background: none;
    color: var(--hooked-blue);
    padding: 8px;
}

/* ── Directory Layout ── */
.hooked-directory-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

/* ── Filters ── */
.hooked-filters {
    background: #fff;
    border-radius: var(--hooked-radius);
    box-shadow: var(--hooked-shadow);
    padding: 20px;
    position: sticky;
    top: 20px;
}
.hooked-filters__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.hooked-filters__header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--hooked-brand);
}
.hooked-filter-group {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hooked-border);
}
.hooked-filter-group:last-of-type {
    border-bottom: none;
}
.hooked-filter-group h4 {
    font-size: .9rem;
    color: var(--hooked-brand);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.hooked-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    cursor: pointer;
    font-size: .95rem;
}
.hooked-filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--hooked-blue);
}
.hooked-filter-count {
    color: #999;
    font-size: .85rem;
    margin-left: auto;
}

/* ── Results ── */
.hooked-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--hooked-border);
    margin-bottom: 20px;
}
.hooked-results-count {
    color: var(--hooked-grey);
}
.hooked-results-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hooked-results-sort select {
    padding: 6px 12px;
    border: 1px solid var(--hooked-border);
    border-radius: 4px;
}

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

/* ── Club Card ── */
.hooked-club-card {
    background: #fff;
    border-radius: var(--hooked-radius);
    box-shadow: var(--hooked-shadow);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.hooked-club-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.hooked-club-card--featured {
    border: 2px solid var(--hooked-accent);
}
.hooked-club-card__image {
    background: var(--hooked-brand);
}
.hooked-club-card__image img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    display: block;
    padding: 10px;
}
.hooked-club-card__body {
    padding: 16px;
}
.hooked-club-card__badges {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.hooked-club-card__title {
    font-size: 1.15rem;
    margin: 0 0 8px;
}
.hooked-club-card__title a {
    color: var(--hooked-brand);
    text-decoration: none;
}
.hooked-club-card__title a:hover {
    color: var(--hooked-accent);
}
.hooked-club-card__meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .9rem;
    color: var(--hooked-grey);
    margin-bottom: 10px;
}
.hooked-club-card__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.hooked-club-card__excerpt {
    font-size: .9rem;
    color: var(--hooked-grey);
    margin-bottom: 12px;
}
.hooked-club-card__link {
    color: var(--hooked-accent);
    font-weight: 600;
    text-decoration: none;
    font-size: .95rem;
}

/* ── Tags / Badges ── */
.hooked-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--hooked-light);
    color: var(--hooked-brand);
}
.hooked-tag--small { padding: 2px 8px; font-size: .75rem; }
.hooked-tag--carp { background: #fef3c7; color: #92400e; }
.hooked-tag--coarse { background: #dbeafe; color: #1e40af; }
.hooked-tag--match { background: #e0e7ff; color: #3730a3; }
.hooked-tag--fly { background: #d1fae5; color: #065f46; }
.hooked-tag--sea { background: #cffafe; color: #155e75; }
.hooked-tag--predator { background: #fce7f3; color: #9d174d; }
.hooked-tag--game { background: #f3e8ff; color: #6b21a8; }
.hooked-tag--more { background: #e5e7eb; color: #4b5563; }

.hooked-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 600;
}
.hooked-badge--featured { background: #fef3c7; color: #92400e; }
.hooked-badge--verified { background: #d1fae5; color: #065f46; }
.hooked-badge--ticket { background: var(--hooked-light); color: var(--hooked-brand); }

/* ── Single Club ── */
.hooked-single-club {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 180px;
    position: relative;
}
.hooked-single-club::before {
    content: '';
    position: absolute;
    top: 0;
    left: -9999px;
    right: -9999px;
    height: 380px;
    background: var(--hooked-brand);
    z-index: -1;
}
.hooked-breadcrumbs {
    font-size: .9rem;
    color: rgba(255,255,255,0.6);
    margin-top: 30px;
    margin-bottom: 20px;
}
.hooked-breadcrumbs a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}
.hooked-breadcrumbs a:hover {
    color: #fff;
}
.hooked-breadcrumbs span {
    color: rgba(255,255,255,0.5);
}
.hooked-club-header {
    margin-bottom: 50px;
    padding-bottom: 30px;
}
.hooked-club-header h1 {
    font-size: 2rem;
    color: #ffffff;
    margin: 8px 0 12px;
}
.hooked-club-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.75);
    margin-bottom: 12px;
}
.hooked-style-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.hooked-club-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}
.hooked-club-image {
    background: var(--hooked-brand);
    border-radius: var(--hooked-radius);
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 300px;
}
.hooked-club-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--hooked-radius);
    max-height: 300px;
    padding: 20px;
}
.hooked-club-image--placeholder {
    background: var(--hooked-brand);
    border-radius: var(--hooked-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 40px;
}
.hooked-club-image--placeholder img {
    max-width: 200px;
    height: auto;
    margin: 0;
    opacity: 0.9;
}
.hooked-placeholder-text {
    font-size: 1.2rem;
    color: var(--hooked-grey);
    text-align: center;
}
.hooked-club-card__image--placeholder {
    background: var(--hooked-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
}
.hooked-club-card__image--placeholder img {
    max-width: 120px;
    height: auto;
    opacity: 0.9;
}
.hooked-club-card__image--placeholder span {
    font-size: 2.5rem;
}
.hooked-club-description {
    line-height: 1.7;
    margin-bottom: 30px;
}
.hooked-club-map {
    margin-bottom: 30px;
}
.hooked-club-map h2 {
    font-size: 1.3rem;
    color: var(--hooked-brand);
    margin-bottom: 12px;
}

/* ── Club Waters ── */
.hooked-club-waters {
    margin-bottom: 30px;
}
.hooked-club-waters h2 {
    font-size: 1.3rem;
    color: var(--hooked-brand);
    margin-bottom: 16px;
}
.hooked-waters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.hooked-water-card {
    display: block;
    background: #fff;
    border-radius: var(--hooked-radius);
    box-shadow: var(--hooked-shadow);
    overflow: hidden;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.hooked-water-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.hooked-water-card__image {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: var(--hooked-light);
}
.hooked-water-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.hooked-water-card__body {
    padding: 12px;
}
.hooked-water-card__body h3 {
    font-size: 1rem;
    color: var(--hooked-brand);
    margin: 0 0 4px;
}
.hooked-water-card__type {
    display: block;
    font-size: .85rem;
    color: var(--hooked-blue);
    font-weight: 600;
    margin-bottom: 4px;
}
.hooked-water-card__species {
    display: block;
    font-size: .8rem;
    color: var(--hooked-grey);
    margin-bottom: 6px;
}

/* ── Sidebar ── */
.hooked-sidebar-card {
    background: #fff;
    border-radius: var(--hooked-radius);
    box-shadow: var(--hooked-shadow);
    padding: 20px;
    margin-bottom: 20px;
}
.hooked-sidebar-card h3 {
    font-size: 1.1rem;
    color: var(--hooked-brand);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--hooked-light);
}
.hooked-sidebar-card p {
    margin: 8px 0;
    font-size: .95rem;
}
.hooked-day-ticket {
    background: var(--hooked-light);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
}

/* ── Facilities Tags ── */
.hooked-facilities-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.hooked-facility-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--hooked-grey-light);
    border-radius: 16px;
    font-size: .8rem;
    color: var(--hooked-grey);
    font-weight: 500;
}

/* ── Taxonomy Archive Pages ── */
.hooked-taxonomy-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 200px 20px 40px;
    position: relative;
}
.hooked-taxonomy-archive::before {
    content: '';
    position: absolute;
    top: 0;
    left: -9999px;
    right: -9999px;
    height: 420px;
    background: var(--hooked-brand);
    z-index: -1;
}
.hooked-taxonomy-archive .hooked-breadcrumbs {
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
}
.hooked-taxonomy-archive .hooked-breadcrumbs a {
    color: rgba(255,255,255,0.8);
}
.hooked-taxonomy-archive .hooked-breadcrumbs span {
    color: rgba(255,255,255,0.5);
}
.hooked-page-header {
    text-align: center;
    margin-bottom: 30px;
}
.hooked-page-header h1 {
    font-size: 2rem;
    color: #ffffff;
    margin: 0 0 10px;
}
.hooked-page-header p {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 8px;
}
.hooked-page-header .hooked-results-count {
    color: rgba(255,255,255,0.5);
    font-size: .9rem;
}
.hooked-cross-links {
    margin-bottom: 30px;
}
.hooked-cross-links h3 {
    font-size: 1rem;
    color: var(--hooked-brand);
    margin-bottom: 12px;
}
.hooked-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hooked-tag-cloud .hooked-tag {
    padding: 6px 14px;
    background: var(--hooked-grey-light);
    border-radius: 20px;
    font-size: .85rem;
    color: var(--hooked-brand);
    text-decoration: none;
    transition: background .2s;
}
.hooked-tag-cloud .hooked-tag:hover {
    background: var(--hooked-light);
}

/* ── Event CTA ── */
.hooked-event-cta {
    background: var(--hooked-brand);
    border-radius: var(--hooked-radius);
    overflow: hidden;
    margin: 30px 0;
}
.hooked-event-cta__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.hooked-event-cta__content strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
}
.hooked-event-cta__content span {
    color: rgba(255,255,255,.7);
    font-size: .9rem;
}
.hooked-event-cta__button {
    background: var(--hooked-accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s;
}
.hooked-event-cta__button:hover {
    background: #d06a1d;
    color: #fff;
}

/* ── Forms ── */
.hooked-form {
    max-width: 600px;
    margin: 0 auto;
}
.hooked-form-row {
    margin-bottom: 20px;
}
.hooked-form-row label {
    display: block;
    font-weight: 600;
    color: var(--hooked-brand);
    margin-bottom: 6px;
}
.hooked-form-row input[type="text"],
.hooked-form-row input[type="email"],
.hooked-form-row select,
.hooked-form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--hooked-border);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color .2s;
}
.hooked-form-row input:focus,
.hooked-form-row select:focus,
.hooked-form-row textarea:focus {
    border-color: var(--hooked-blue);
    outline: none;
}
.hooked-form-help {
    font-size: .85rem;
    color: #999;
    margin-top: 4px;
}
.hooked-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hooked-checkbox-pill {
    cursor: pointer;
}
.hooked-checkbox-pill input {
    display: none;
}
.hooked-checkbox-pill span {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--hooked-border);
    border-radius: 20px;
    font-size: .9rem;
    transition: all .2s;
}
.hooked-checkbox-pill input:checked + span {
    background: var(--hooked-blue);
    border-color: var(--hooked-blue);
    color: #fff;
}
.hooked-form-consent {
    background: var(--hooked-grey-light);
    padding: 20px;
    border-radius: var(--hooked-radius);
}
.hooked-form-consent h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    color: var(--hooked-brand);
}
.hooked-form-response {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
}
.hooked-form-response--success {
    background: #d1fae5;
    color: #065f46;
}
.hooked-form-response--error {
    background: #fee2e2;
    color: #991b1b;
}

/* ── Club Grid ── */
.hooked-club-grid {
    display: grid;
    gap: 20px;
    padding: 20px 0;
}
.hooked-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hooked-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hooked-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Tag Cloud ── */
.hooked-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 24px;
}
.hooked-cross-links h3 {
    font-size: 1.1rem;
    color: var(--hooked-brand);
    margin-bottom: 8px;
}

/* ── Loading / Empty ── */
.hooked-loading {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}
.hooked-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--hooked-border);
    border-top-color: var(--hooked-accent);
    border-radius: 50%;
    animation: hooked-spin .8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes hooked-spin {
    to { transform: rotate(360deg); }
}
.hooked-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--hooked-grey);
    grid-column: 1 / -1;
}

/* ── Claim Badge ── */
.hooked-claimed-badge {
    background: #d1fae5;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 600;
}

/* ── Club Search (Claim Form) ── */
.hooked-club-search-results {
    position: absolute;
    z-index: 100;
    background: #fff;
    border: 2px solid var(--hooked-border);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.hooked-form-row:has(.hooked-club-search-results) {
    position: relative;
}
.hooked-search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--hooked-grey-light);
    transition: background .15s;
}
.hooked-search-result-item:hover {
    background: var(--hooked-light);
}
.hooked-search-result-item:last-child {
    border-bottom: none;
}
.hooked-search-result-item strong {
    display: block;
    color: var(--hooked-brand);
    font-size: .95rem;
}
.hooked-search-result-meta {
    display: block;
    font-size: .8rem;
    color: var(--hooked-grey);
    margin-top: 2px;
}
.hooked-search-result-item--empty {
    color: var(--hooked-grey);
    cursor: default;
    font-size: .9rem;
}
.hooked-search-result-item--empty:hover {
    background: transparent;
}
.hooked-selected-club {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--hooked-light);
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 8px;
}
.hooked-selected-club span {
    font-weight: 600;
    color: var(--hooked-brand);
    font-size: 1rem;
}

/* ── Pagination ── */
.hooked-pagination {
    padding: 30px 0;
    text-align: center;
}
.hooked-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
}
.hooked-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--hooked-border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--hooked-brand);
}
.hooked-pagination .page-numbers.current {
    background: var(--hooked-brand);
    color: #fff;
    border-color: var(--hooked-brand);
}

/* ── Mobile Only ── */
.hooked-btn--mobile-only { display: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hooked-directory-layout {
        grid-template-columns: 1fr;
    }
    .hooked-filters {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        overflow-y: auto;
        border-radius: 0;
    }
    .hooked-filters.active {
        display: block;
    }
    .hooked-btn--mobile-only {
        display: inline-block;
    }
    .hooked-club-content {
        grid-template-columns: 1fr;
    }
    .hooked-club-grid.hooked-cols-3,
    .hooked-club-grid.hooked-cols-4 {
        grid-template-columns: 1fr;
    }
    .hooked-search-bar__inner {
        flex-direction: column;
    }
    .hooked-search-field--radius {
        flex: 1;
    }
    .hooked-results-grid {
        grid-template-columns: 1fr;
    }
    .hooked-event-cta__inner {
        flex-direction: column;
        text-align: center;
    }
}
