/* ==========================================================================
   Wildpack Locations — Listing Card Styles
   Palette drawn from wildpackcollective.com: greens, warm sand, burnt orange
   ========================================================================== */

/* Layout container */
.wpl-listing {
    max-width: 820px;
    margin: 0 auto 60px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* Hero image */
.wpl-hero {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.wpl-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wpl-hero-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
}

.wpl-type-badge {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 4px;
}

.wpl-type-walk {
    background: rgba(122, 158, 126, 0.9);
    color: #fff;
}

.wpl-type-beach {
    background: rgba(74, 123, 140, 0.9);
    color: #fff;
}

/* Content area */
.wpl-content {
    padding: 36px 40px 44px;
}

/* Header */
.wpl-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8dfd0;
}

.wpl-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3b28;
    line-height: 1.3;
    margin: 0 0 6px 0;
}

.wpl-county {
    font-size: 0.9rem;
    color: #6b6b6b;
    margin: 0 0 14px 0;
}

.wpl-rating-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.wpl-rating-score {
    font-size: 1.1rem;
    font-weight: 700;
    color: #c76b2b;
    white-space: nowrap;
}

.wpl-rating-text {
    font-size: 0.95rem;
    color: #2c2c2c;
    line-height: 1.5;
}

/* Description paragraphs */
.wpl-description {
    margin-bottom: 32px;
}

.wpl-description p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #2c2c2c;
    margin: 0 0 16px 0;
}

.wpl-description p:last-child {
    margin-bottom: 0;
}

/* Details / At a Glance */
.wpl-details {
    background: #faf7f2;
    border-radius: 10px;
    padding: 28px 30px;
    margin-bottom: 28px;
}

.wpl-details-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #1e3b28;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #c76b2b;
}

.wpl-details-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wpl-details-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
}

.wpl-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.wpl-detail-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8dfd0;
    border-radius: 8px;
    color: #1e3b28;
}

.wpl-detail-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 2px;
}

.wpl-detail-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #6b6b6b;
}

.wpl-detail-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c2c2c;
    line-height: 1.4;
}

.wpl-detail-note {
    font-size: 0.82rem;
    color: #6b6b6b;
    line-height: 1.4;
    margin-top: 2px;
}

/* Potential level indicators */
.wpl-potential-high {
    font-weight: 600;
}

.wpl-potential-moderate {
    font-weight: 600;
}

.wpl-potential-low {
    font-weight: 600;
}

/* For Off Lead: High = good (green), Low = less good */
.wpl-detail-item:has(.wpl-detail-label) .wpl-potential-high {
    color: #2a5438;
}

.wpl-detail-item:has(.wpl-detail-label) .wpl-potential-low {
    color: #9a6c3b;
}

/* GPX download button */
.wpl-gpx {
    margin-bottom: 28px;
}

.wpl-gpx-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1e3b28;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.wpl-gpx-button:hover {
    background: #2a5438;
    color: #fff;
}

/* Location section */
.wpl-location {
    background: #faf7f2;
    border-radius: 10px;
    padding: 24px 30px;
    margin-bottom: 28px;
}

.wpl-address {
    font-size: 0.9rem;
    color: #2c2c2c;
    margin: 0 0 4px 0;
    line-height: 1.5;
}

.wpl-coords {
    font-size: 0.8rem;
    color: #999;
    margin: 0 0 12px 0;
    font-family: monospace;
}

.wpl-directions-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #c76b2b;
    text-decoration: none;
    transition: color 0.2s;
}

.wpl-directions-link:hover {
    color: #b55e22;
}

/* ==========================================================================
   What's Nearby? — Carousel
   ========================================================================== */

.wpl-nearby {
    margin-bottom: 28px;
}

.wpl-nearby-carousel-wrap {
    position: relative;
}

.wpl-nearby-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #d6d0c7;
    background: #fff;
    color: #1e3b28;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    z-index: 3;
    padding: 0;
    line-height: 0;
}

.wpl-nearby-arrow svg {
    display: block;
}

.wpl-nearby-arrow:hover {
    border-color: #c76b2b;
    background: #fff;
    box-shadow: 0 3px 14px rgba(0,0,0,0.16);
}

.wpl-nearby-arrow:hover svg {
    stroke: #c76b2b;
}

.wpl-nearby-arrow-left {
    left: -18px;
}

.wpl-nearby-arrow-right {
    right: -18px;
}

.wpl-nearby-carousel {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.wpl-nearby-carousel::-webkit-scrollbar {
    display: none;
}

.wpl-nearby-track {
    display: flex;
    gap: 20px;
    padding: 4px 0;
}

/* ---- Nearby Card (mirrors directory card design) ---- */

.wpl-nc-card {
    flex: 0 0 calc((100% - 28px) / 2.5);
    min-width: 260px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2ddd5;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.wpl-nc-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.wpl-nc-img-wrap {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f5f0e8;
    flex-shrink: 0;
}

.wpl-nc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.wpl-nc-card:hover .wpl-nc-img {
    transform: scale(1.04);
}

.wpl-nc-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpl-nc-no-img svg {
    width: 40px;
    height: 40px;
    color: #e8dfd0;
}

.wpl-nc-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
}

.wpl-nc-badge.walk {
    background: rgba(122, 158, 126, 0.92);
    color: #fff;
}

.wpl-nc-badge.beach {
    background: rgba(74, 123, 140, 0.92);
    color: #fff;
}

.wpl-nc-distance-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.62rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    backdrop-filter: blur(4px);
}

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

.wpl-nc-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #152b1d;
    line-height: 1.3;
    margin: 0 0 4px 0;
}

.wpl-nc-county {
    font-size: 0.72rem;
    color: #6b6b6b;
    margin-bottom: 10px;
    display: block;
}

.wpl-nc-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.wpl-nc-rating-label {
    font-size: 0.68rem;
    color: #6b6b6b;
    font-weight: 500;
    white-space: nowrap;
}

.wpl-nc-rating-score {
    font-size: 0.78rem;
    font-weight: 700;
    color: #c76b2b;
    white-space: nowrap;
}

.wpl-nc-rating-bar {
    flex: 1;
    height: 5px;
    background: #e8dfd0;
    border-radius: 3px;
    overflow: hidden;
}

.wpl-nc-rating-fill {
    height: 100%;
    background: #c76b2b;
    border-radius: 3px;
}

.wpl-nc-desc {
    font-size: 0.78rem;
    color: #6b6b6b;
    line-height: 1.55;
    margin: 0 0 14px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wpl-nc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f5f0e8;
    margin-top: auto;
}

.wpl-nc-cta {
    font-size: 0.75rem;
    font-weight: 600;
    color: #c76b2b;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}

.wpl-nc-card:hover .wpl-nc-cta {
    color: #b55e22;
}

.wpl-nc-meta {
    display: flex;
    gap: 10px;
}

.wpl-nc-meta-item {
    font-size: 0.65rem;
    color: #999;
    font-weight: 500;
}

/* Rating label */
.wpl-rating-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #c76b2b;
    white-space: nowrap;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.wpl-faq {
    background: #faf7f2;
    border-radius: 10px;
    padding: 28px 30px;
    margin-bottom: 28px;
}

.wpl-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wpl-faq-item {
    border-bottom: 1px solid #e2ddd5;
}

.wpl-faq-item:last-child {
    border-bottom: none;
}

.wpl-faq-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 4px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s ease;
}

.wpl-faq-trigger:hover,
.wpl-faq-trigger:focus {
    background: rgba(30, 59, 40, 0.06);
    outline: none;
}

.wpl-faq-trigger:hover .wpl-faq-chevron {
    color: #b55e22;
}

.wpl-faq-question {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e3b28;
    line-height: 1.4;
}

.wpl-faq-chevron {
    flex-shrink: 0;
    color: #c76b2b;
    transition: transform 0.25s ease;
}

.wpl-faq-item.open .wpl-faq-chevron {
    transform: rotate(180deg);
}

.wpl-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.wpl-faq-item.open .wpl-faq-answer {
    max-height: 400px;
    padding-bottom: 16px;
}

.wpl-faq-answer p {
    font-size: 0.88rem;
    color: #2c2c2c;
    line-height: 1.7;
    margin: 0;
}

/* Nearby card rating label colour */
.wpl-nc-rating-label {
    font-size: 0.68rem;
    color: #c76b2b;
    font-weight: 600;
    white-space: nowrap;
}

/* Back link */
.wpl-back {
    padding-top: 20px;
    border-top: 1px solid #e8dfd0;
}

.wpl-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b6b6b;
    text-decoration: none;
    transition: color 0.2s;
}

.wpl-back-link:hover {
    color: #1e3b28;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .wpl-listing {
        margin: 0 0 40px;
        border-radius: 0;
    }

    .wpl-hero {
        height: 280px;
    }

    .wpl-content {
        padding: 24px 20px 32px;
    }

    .wpl-title {
        font-size: 1.4rem;
    }

    .wpl-details {
        padding: 20px 18px;
    }

    .wpl-details-grid-2col {
        grid-template-columns: 1fr;
    }

    .wpl-location {
        padding: 18px;
    }

    .wpl-faq {
        padding: 20px 18px;
    }

    /* Nearby carousel: show 2 cards on tablet */
    .wpl-nc-card {
        flex: 0 0 calc((100% - 20px) / 2);
        min-width: 220px;
    }

    .wpl-nearby-arrow {
        width: 36px;
        height: 36px;
    }

    .wpl-nearby-arrow-left {
        left: -10px;
    }

    .wpl-nearby-arrow-right {
        right: -10px;
    }
}

@media (max-width: 480px) {
    .wpl-hero {
        height: 220px;
    }

    .wpl-title {
        font-size: 1.2rem;
    }

    .wpl-rating-line {
        flex-direction: column;
        gap: 4px;
    }

    /* Nearby carousel: show 1 card on mobile, peek next */
    .wpl-nc-card {
        flex: 0 0 85%;
        min-width: 0;
    }

    .wpl-nearby-arrow {
        display: none;
    }

    .wpl-nc-img-wrap {
        height: 140px;
    }
}

/* ==========================================================================
   Affiliate Products Carousel
   ========================================================================== */

.wpl-affiliate {
    margin-bottom: 28px;
}

.wpl-affiliate-carousel-wrap {
    position: relative;
}

.wpl-affiliate-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.wpl-affiliate-carousel::-webkit-scrollbar {
    display: none;
}

.wpl-affiliate-track {
    display: flex;
    gap: 16px;
    padding: 4px 0;
}

.wpl-aff-card {
    flex: 0 0 180px;
    min-width: 160px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2ddd5;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.wpl-aff-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.wpl-aff-img-wrap {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f5f0e8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.wpl-aff-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s;
}

.wpl-aff-card:hover .wpl-aff-img {
    transform: scale(1.06);
}

.wpl-aff-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wpl-aff-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e3b28;
    line-height: 1.35;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wpl-aff-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 12px;
}

.wpl-aff-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 14px;
    background: #c76b2b;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.2s;
    margin-top: auto;
    text-decoration: none;
    white-space: nowrap;
}

.wpl-aff-card:hover .wpl-aff-cta {
    background: #b55e22;
}

.wpl-affiliate-disclosure {
    font-size: 0.72rem;
    color: #999;
    text-align: center;
    margin: 14px 0 0 0;
    font-style: italic;
}

/* Responsive: affiliate carousel */
@media (max-width: 768px) {
    .wpl-aff-card {
        flex: 0 0 160px;
        min-width: 140px;
    }

    .wpl-aff-img-wrap {
        height: 130px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .wpl-aff-card {
        flex: 0 0 150px;
        min-width: 130px;
    }

    .wpl-aff-img-wrap {
        height: 120px;
    }

    .wpl-affiliate-carousel-wrap .wpl-nearby-arrow {
        display: none;
    }
}
