/* Watauga Host — project cards reuse listing-card layout; register form is new. */

:root {
    --wpr-lake: #1e4a6b;
    --wpr-lake-dark: #153549;
    --wpr-sand: #f4f0e8;
    --wpr-text: #1f2d3a;
    --wpr-muted: #5a6b78;
}

.wpr-projects .wpr-listings__grid,
.wpr-listings__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 1.25rem;
}

.wpr-listing-card {
    background: #ffffff;
    border: 1px solid rgba(30, 74, 107, 0.12);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(21, 53, 73, 0.08);
}

.wpr-listing-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.wpr-listing-card__media {
    aspect-ratio: 4 / 3;
    background: var(--wpr-sand);
    overflow: hidden;
}

.wpr-listing-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wpr-listing-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--wpr-sand), #d9e6ef);
}

.wpr-listing-card__body {
    padding: 0.9rem 1rem 1.1rem;
}

.wpr-listing-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: var(--wpr-lake);
}

.wpr-listing-card__meta {
    margin: 0;
    color: var(--wpr-muted);
    font-size: 0.92rem;
}

.wpr-listing-single__crumbs {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

.wpr-listing-single__hero {
    width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 0 0 1.25rem;
    display: block;
}

.wpr-listing-gallery__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.7rem;
}

.wpr-listing-gallery__btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
}

.wpr-listing-gallery__btn img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.wpr-project-clip video {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.wpr-project-embed {
    margin: 1.25rem 0;
}

.wpr-project-embed iframe {
    width: 100%;
    min-height: 280px;
    border: 0;
    border-radius: 12px;
}

.wpr-listing-lightbox {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: min(96vw, 1100px);
}

.wpr-listing-lightbox::backdrop {
    background: rgba(15, 23, 42, 0.72);
}

.wpr-listing-lightbox img {
    max-width: 96vw;
    max-height: 90vh;
    display: block;
    border-radius: 8px;
}

.wpr-listing-lightbox__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

.wpr-listing-admin-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.wpr-listing-admin-thumb {
    position: relative;
    margin: 0;
    width: 96px;
    height: 96px;
}

.wpr-listing-admin-thumb img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.wpr-listing-admin-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: #1e4a6b;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
}

.wpr-register-howto {
    max-width: 720px;
    margin: 0 0 1.75rem;
    padding: 1.1rem 1.25rem 1.2rem;
    background: #f4f0e8;
    border-radius: 14px;
}

.wpr-register-howto__lead {
    margin: 0 0 0.75rem;
    font-size: 1.08rem;
    line-height: 1.55;
}

.wpr-register-howto ol {
    margin: 0;
    padding-left: 1.35rem;
    font-size: 1.08rem;
    line-height: 1.7;
}

.wpr-register-howto li + li {
    margin-top: 0.2rem;
}

.wpr-register__step {
    border: 1px solid #cdd9e2;
    border-radius: 14px;
    padding: 0.85rem 1.1rem 0.35rem;
    margin: 0 0 1.15rem;
}

.wpr-register__step > legend {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--wpr-lake);
    padding: 0 0.4rem;
}

.wpr-register__hint {
    margin: 0 0 0.85rem !important;
    color: var(--wpr-muted);
}

.wpr-register {
    max-width: 720px;
}

.wpr-register__ok,
.wpr-register__err {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin: 0 0 1.25rem;
}

.wpr-register__ok {
    background: #e8f4ec;
    color: #1e4a32;
}

.wpr-register__err {
    background: #fdecea;
    color: #7a1f16;
}

.wpr-register__form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--wpr-lake-dark);
}

.wpr-register__form p {
    margin: 0 0 1rem;
}

.wpr-register__form input[type="text"],
.wpr-register__form input[type="email"],
.wpr-register__form input[type="tel"],
.wpr-register__form input[type="number"],
.wpr-register__form select,
.wpr-register__form textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #cdd9e2;
    border-radius: 8px;
    font: inherit;
}

.wpr-register__hp {
    position: absolute;
    left: -9999px;
}

.wpr-register__waiver {
    border: 1px solid #cdd9e2;
    border-radius: 12px;
    padding: 0.75rem 1rem 1rem;
    margin: 1.25rem 0;
}

.wpr-register__waiver legend {
    font-weight: 700;
    color: var(--wpr-lake);
    padding: 0 0.35rem;
}

.wpr-register__waiver-text {
    max-height: 280px;
    overflow: auto;
    padding: 0.75rem;
    background: var(--wpr-sand);
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.55;
}

.wpr-register__check label {
    font-weight: 500;
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.wpr-register__check input {
    margin-top: 0.35rem;
}

.wpr-register__submit {
    background: var(--wpr-lake);
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    padding: 0.75rem 1.4rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.wpr-register__submit:hover {
    background: var(--wpr-lake-dark);
}

.wpr-register__note,
.wpr-register__form .description {
    color: var(--wpr-muted);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .wpr-register-howto,
    .wpr-register__step,
    .wpr-register__waiver {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .wpr-register__submit {
        width: 100%;
    }
}

@media print {
    .wpr-print .button {
        display: none;
    }
}
