
/* =========================
   PAGE LAYOUT
========================= */

.page-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    align-items: flex-start;
}

.main-content {
  flex: 0 0 70%;
  max-width: 70%;
  min-width: 0;
}

/* =========================
   HERO
========================= */

.top-page-hero {
    background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.55)),
    url('/images/spain-pool-hero.jpg') center/cover;
    
    border-radius: 24px;
    padding: 80px 50px;
    color: #fff;
    margin-bottom: 35px;
}

.top-page-hero h1 {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 18px;
    font-weight: 800;
}

.top-page-hero p {
    font-size: 18px;
    max-width: 700px;
    line-height: 1.7;
    color: rgba(255,255,255,0.92);
}

/* =========================
   CAMPSITE CARD
========================= */

.top-card {
    display: flex;
    gap: 24px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.top-card:hover {
    transform: translateY(-4px);
}

.top-card-image {
    width: 340px;
    min-width: 340px;
    height: 260px;
    overflow: hidden;
}

.top-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-card-content {
    padding: 28px 28px 28px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rank-badge {
    display: inline-block;
    background: #82be21;
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    width: fit-content;
}

.top-card-content h2 {
    font-size: 34px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.location {
    color: #666;
    font-size: 15px;
    margin-bottom: 18px;
}

.score {
    display: inline-block;
    background: #f4f7ef;
    color: #82be21;
    padding: 10px 16px;
    border-radius: 14px;
    font-weight: 700;
    margin-bottom: 22px;
    width: fit-content;
}

.top-card-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 14px 22px;
    background: #82be21;
    color: #fff;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s ease;
}

.view-btn:hover {
    background: #6ea51a;
}

.page-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.main-content {
    flex: 0 0 calc(70% - 15px);
    max-width: calc(70% - 15px);
    min-width: 0;
}

/* Override sidebar ONLY on this page */

.page-wrapper .sidebar {
    flex: 0 0 calc(30% - 15px);
    max-width: calc(30% - 15px);
    width: auto;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    .page-wrapper {
        flex-direction: column;
    }

    .top-card {
        flex-direction: column;
    }

    .top-card-image {
        width: 100%;
        min-width: 100%;
        height: 240px;
    }

    .top-card-content {
        padding: 24px;
    }

    .top-page-hero {
        padding: 50px 28px;
    }

    .top-page-hero h1 {
        font-size: 36px;
    }

    .top-card-content h2 {
        font-size: 20px;
    }
    .page-wrapper {
        flex-direction: column;
    }

    .main-content,
    .page-wrapper .sidebar {
        flex: 100%;
        max-width: 100%;
        width: 100%;
    }

}



