/* Virginia Headwaters Council — Camp Guide
 * Where-to-go camping directory, single location, listing, and submit forms.
 * Visual language mirrors wp-assets/css/units.css.
 */

/* ---- Listing ---------------------------------------------------------- */
.vahc-camp-listing { margin: 2rem 0; }

.vahc-camp-index-map {
    width: 100%;
    height: 420px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e3e6ea;
    margin-bottom: 1.5rem;
}

.vahc-camp-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    align-items: end;
    padding: 1rem 1.25rem;
    background: #f6f7f8;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.vahc-camp-filters label {
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
}
.vahc-camp-filters .vahc-filter-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #4a5159;
}
.vahc-camp-filters select,
.vahc-camp-filters input[type="search"] {
    padding: 0.5rem 0.75rem;
    border: 1px solid #c9cdd2;
    border-radius: 6px;
    font: inherit;
    background: #fff;
}
.vahc-camp-filter-check {
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
}
.vahc-camp-filter-search { grid-column: span 2; min-width: 0; }
.vahc-camp-count {
    margin: 0;
    font-size: 0.875rem;
    color: #5a6168;
    align-self: center;
    white-space: nowrap;
}

.vahc-camp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.vahc-camp-empty {
    grid-column: 1 / -1;
    padding: 2rem;
    text-align: center;
    color: #5b636b;
    background: #f6f7f8;
    border-radius: 8px;
}

/* ---- Card ------------------------------------------------------------- */
.vahc-camp-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 150ms ease, transform 150ms ease;
}
.vahc-camp-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.vahc-camp-card.is-hidden { display: none; }

.vahc-camp-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e9edf1;
    display: block;
}
.vahc-camp-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vahc-camp-card-media-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2f5d3a, #16321f);
}
.vahc-camp-card-flag {
    position: absolute;
    left: 8px;
    bottom: 8px;
    background: #006b3f;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.vahc-camp-card-body {
    padding: 1rem 1.125rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}
.vahc-camp-card-title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.2;
}
.vahc-camp-card-title a {
    color: #1a2233;
    text-decoration: none;
}
.vahc-camp-card-title a:hover { text-decoration: underline; }
.vahc-camp-card-managed {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: #5a6168;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.vahc-camp-card-facts {
    margin: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.25rem 0.75rem;
    font-size: 0.875rem;
}
.vahc-camp-card-facts dt { color: #5b636b; font-weight: 600; }
.vahc-camp-card-facts dd { margin: 0; color: #2a323d; }
.vahc-camp-card-footer {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.vahc-camp-card-link { font-weight: 600; text-decoration: none; }
.vahc-camp-card-ext { font-size: 0.875rem; color: #5a6168; text-decoration: none; }
.vahc-camp-card-ext::before { content: '·'; margin-right: 0.5rem; color: #c0c5cc; }

/* ---- Single location -------------------------------------------------- */
.vahc-camp-single { margin-top: 0; margin-bottom: 3rem; }

section.hero_inner.vahc-camp-hero {
    height: 500px !important;
    min-height: 500px;
    position: relative;
    display: block;
    overflow: hidden;
}
section.hero_inner.vahc-camp-hero .hero_bg { height: 100% !important; z-index: 0; }
section.hero_inner.vahc-camp-hero .container._lg {
    height: 100%;
    display: flex;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}
section.hero_inner.vahc-camp-hero .hero_content {
    height: auto !important;
    width: 100%;
    padding: 0;
    color: #fff;
}
section.hero_inner.vahc-camp-hero .hero_title {
    color: #fff;
    margin: 0.25rem;
    padding-bottom: 0;
}
section.hero_inner.vahc-camp-hero .vahc-camp-hero-sub {
    margin: 0;
    font-size: 20px;
    opacity: 0.95;
}
.vahc-camp-hero-bg { background: #16321f; }
.vahc-camp-hero-bg img { object-fit: cover; object-position: center; }
.vahc-camp-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(195deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Quick facts */
.vahc-camp-quick-facts {
    background: #f6f7f8;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}
.vahc-camp-quick-facts dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem 1.5rem;
    margin: 0;
}
.vahc-camp-quick-facts div { margin: 0; }
.vahc-camp-quick-facts dt {
    margin: 0 0 0.125rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5b636b;
    font-weight: 600;
}
.vahc-camp-quick-facts dd { margin: 0; }

.vahc-camp-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
}
.vahc-camp-badge--approved { background: #e3f3e9; color: #006b3f; }

/* Body + sidebar */
.vahc-camp-body { margin-top: 2rem; }
@media (min-width: 920px) {
    .vahc-camp-body { flex-direction: row !important; }
    .vahc-camp-body article { width: 66% !important; padding-right: 2rem !important; }
    .vahc-camp-body .sidebar { width: 34% !important; padding-left: 1rem !important; }
}
.vahc-camp-body section { margin: 0 0 2rem; }
.vahc-camp-body h2 { margin: 0 0 1rem; }

/* Amenities */
.vahc-camp-amenities-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem 1rem;
}
.vahc-camp-amenities-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9375rem;
}
.vahc-camp-amenities-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #006b3f;
    font-weight: 700;
}

/* Contacts */
.vahc-camp-contacts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.vahc-camp-contact {
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    padding: 1rem;
}
.vahc-camp-contact-name { margin: 0; font-weight: 700; font-size: 1.0625rem; }
.vahc-camp-contact-title { margin: 0.25rem 0 0.5rem; font-size: 0.875rem; color: #5a6168; }
.vahc-camp-contact-info {
    margin: 0;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.vahc-camp-contact-info a { word-break: break-all; }

/* Photos */
.vahc-camp-photos-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.vahc-camp-photos-grid figure { margin: 0; }
.vahc-camp-photos-grid img { width: 100%; height: auto; display: block; border-radius: 8px; }
.vahc-camp-photos-grid figcaption { margin-top: 0.5rem; font-size: 0.8125rem; color: #5a6168; }
.vahc-photo-credit { display: block; color: #8a9099; font-style: italic; }

/* Map */
.vahc-camp-map-section h2 { margin: 0 0 1rem; }
.vahc-camp-map { width: 100%; height: 320px; border-radius: 10px; overflow: hidden; border: 1px solid #e3e6ea; }
.vahc-camp-directions {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.6rem 1.1rem;
    border-radius: 6px;
    background: #006b3f;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
}
.vahc-camp-directions:hover { background: #00532f; color: #fff !important; }
.vahc-map-subtitle { color: #5b636b; font-size: 0.875rem; }

/* "Submit a Location" call-to-action button (mirrors the Units "Apply Now"). */
.vahc-camp-cta-button,
.vahc-camp-cta-button:link,
.vahc-camp-cta-button:visited {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
    background: #006b3f;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
}
.vahc-camp-cta-button:hover,
.vahc-camp-cta-button:focus { background: #00532f; color: #fff !important; }

/* ---- Submit / share forms (Phases 2–3) -------------------------------- */
.vahc-camp-form {
    background: #f6f7f8;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}
.vahc-camp-form h2 { margin-top: 0; }
.vahc-camp-form .vahc-camp-field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.vahc-camp-form label { font-weight: 600; font-size: 0.875rem; margin-bottom: 0.25rem; color: #4a5159; }
.vahc-camp-form input[type="text"],
.vahc-camp-form input[type="email"],
.vahc-camp-form input[type="url"],
.vahc-camp-form input[type="tel"],
.vahc-camp-form input[type="file"],
.vahc-camp-form select,
.vahc-camp-form textarea {
    padding: 0.55rem 0.75rem;
    border: 1px solid #c9cdd2;
    border-radius: 6px;
    font: inherit;
    background: #fff;
    width: 100%;
}
.vahc-camp-form fieldset {
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 0 0 1.25rem;
}
.vahc-camp-form legend { font-weight: 700; padding: 0 0.5rem; }
/* Appraisal Yes/No/NA questions: prompt on its own line, choices below it,
   with separation before the next question. */
.vahc-camp-form .vahc-camp-yn { display: block; margin: 0 0 1.25rem; }
.vahc-camp-form .vahc-camp-yn .vahc-camp-q { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.vahc-camp-form .vahc-camp-yn label { margin: 0 1.5rem 0 0; }
.vahc-camp-honeypot { position: absolute; left: -9999px; }
.vahc-camp-form-submit {
    padding: 0.7rem 1.5rem;
    border: 0;
    border-radius: 6px;
    background: #006b3f;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.vahc-camp-form-submit:hover { background: #00532f; }
.vahc-camp-notice {
    padding: 0.85rem 1.1rem;
    border-radius: 6px;
    margin: 1rem 0;
}
.vahc-camp-notice--ok { background: #e3f3e9; border-left: 4px solid #006b3f; color: #14492c; }
.vahc-camp-notice--err { background: #fff3f0; border-left: 4px solid #d93025; color: #5e1410; }

/* Approved visitor comments list */
.vahc-camp-comments { margin: 2rem 0; }
.vahc-camp-comment {
    border-top: 1px solid #e3e6ea;
    padding: 1rem 0;
}
.vahc-camp-comment-meta { font-size: 0.8125rem; color: #8a9099; margin: 0 0 0.35rem; }
.vahc-camp-comment-author { font-weight: 700; color: #2a323d; }
