/* --- 1. Global/Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

:root {
    --primary-color: #f73167; /* The bright pink/red */
    --secondary-color: #007bff; /* Blue for some elements */
    --text-color: #333;
    --light-text-color: #fff;
    --background-color: #f8f8f8; /* Light gray background */
    --star-color: #ffc107; /* Yellow for stars */
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4 {
    margin-bottom: 0.5em;
}

/* --- 2. Header and Navigation --- */
.main-header {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    color: var(--light-text-color);
}

.logo {
    font-size: 1.2em;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 30px;
    font-size:0.9em;
    font-weight:600;
}

.sign-in-btn {
    border: 1px solid var(--light-text-color);
    padding: 8px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

/* --- 3. Hero Section (Crucial for the full-width image effect) --- */
.hero-section {
    position: relative;
    height: 600px;
    background: url('images/desktop-wallpaper-best-4-traveling-backgrounds-on-hip-travels.jpg') no-repeat center center/cover;
    display: flex;
    align-items: flex-start;
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1));
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 120px 0 0 50px;
    color: var(--light-text-color);
    display: flex;
    align-items: center;
    /* Center the hero content horizontally */
    justify-content: center;
}

.hero-content {
    max-width: 500px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    padding: 0 15px;
}

.hero-content h1 {
    font-size:3.5em;
    font-weight:650;
    margin-bottom: 20px;
    text-align:center;
    line-height:50px;
    font-family:sans-serif;
    text-transform:uppercase;
    width:100%;
}

.hero-content p{
    font-size:1.1rem;
    text-align:center;
}

.search-bar {
    display: flex;
    margin-top: 30px;
    width: 100%;
    max-width: 450px;
}

.search-bar select {
    padding: 15px 20px;
    border: none;
    border-radius: 5px 0 0 5px;
    width: 250px;
    appearance: none;
    width: 60%;
}

.search-btn {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
    padding: 15px 30px;
    border-radius: 0 5px 5px 0;
    font-weight: bold;
    cursor: pointer;
    width: 40%;
}

/* --- 4. Adventure Categories Section --- */
.adventure-categories {
    padding: 60px 0;
}

.adventure-categories h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

.categories-grid {
    display: grid;
    /* Default for Desktop */
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 180px);
    gap: 20px;
}

.main-card {
    background: url('images/Country-Hot-Air-Balloons.jpg') no-repeat center center/cover;
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    border-radius: 10px;
    position: relative;
    padding: 30px;
    color: var(--light-text-color);
    background-color: rgba(0, 0, 0, 0.2);
    background-blend-mode: multiply;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-content h3 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
}

.view-btn {
    background: var(--light-text-color);
    color: var(--text-color);
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.small-card {
    border-radius: 10px;
    padding: 20px;
    font-weight: bold;
    display: flex;
    align-items: flex-end;
    color: var(--light-text-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
}

/* Specific backgrounds for each small card */
.hiking { background-image: url('images/download\ \(2\).jfif'); background-color: rgba(0, 0, 0, 0.2); }
.skiing { background-image: url('images/download\ \(3\).jfif'); background-color: rgba(0, 0, 0, 0.2); }
.cycling { background-image: url('images/images\ \(1\).jfif'); background-color: rgba(0, 0, 0, 0.2); }
.flyboarding { background-image: url('images/download\ \(1\).jfif'); background-color: rgba(0, 0, 0, 0.2); }
.ziplining { background-image: url('images/ziplining.jpg'); background-color: rgba(0, 0, 0, 0.2); }
.surfing { background-image: url('images/surfing.jpg'); background-color: rgba(0, 0, 0, 0.2); }


/* --- 5. Activity Listings Section --- */
.activity-listings {
    padding-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    margin-bottom: 0;
}

.tabs {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 20px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.listings-grid {
    /* Default for Desktop */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.activity-card {
    background: var(--light-text-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.card-image-wrapper {
    position: relative;
    height: 200px;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.badge {
    position: absolute;
    top: 15px;
    right: 0;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 5px 15px;
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 5px 0 0 5px;
}

.card-details {
    padding: 15px;
}

.type {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 5px;
}

.title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
}

.rating {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.stars {
    color: var(--star-color);
    margin-right: 5px;
}

.score {
    font-weight: bold;
    margin-right: 5px;
}

.price {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-color);
}

.show-more-container {
    text-align: center;
    margin-top: 40px;
}

.show-more-btn {
    background: none;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

/* --- 6. Footer --- */
footer {
    background-color: var(--background-color);
    padding-top: 40px;
}

.footer-top {
    /* Default for Desktop */
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid #ddd;
}

.footer-links-group {
    flex: 1;
}

.footer-links-group h4 {
    font-size: 1em;
    margin-bottom: 15px;
    color: var(--text-color);
}

.footer-links-group li, .join-adventure p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}

.join-adventure {
    flex: 2;
    max-width: 400px;
}

.subscribe-form {
    display: flex;
    margin-top: 15px;
}

.subscribe-form input {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    flex-grow: 1;
}

.subscribe-form button {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
    padding: 12px 25px;
    border-radius: 0 5px 5px 0;
    font-weight: 600;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding: 15px 0;
    font-size: 0.8em;
    color: #999;
}


/* ======================================= */
/* !!! R E S P O N S I V E   D E S I G N !!! */
/* ======================================= */

/* ------------------------------------- */
/* Tablet Layout (max-width: 992px) */
/* ------------------------------------- */
@media (max-width: 992px) {
    /* Header */
    .navbar {
        padding: 20px;
    }
    .nav-links {
        gap: 20px;
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 3em;
        line-height: 45px;
    }
    
    /* Categories Grid */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(auto, 160px);
    }

    .main-card {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
    
    .small-card:nth-child(2) { grid-column: 1 / 2; grid-row: 2 / 3; }
    .small-card:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
    .small-card:nth-child(4) { grid-column: 1 / 2; grid-row: 3 / 4; }
    .small-card:nth-child(5) { grid-column: 2 / 3; grid-row: 3 / 4; }
    .small-card:nth-child(6) { grid-column: 1 / 2; grid-row: 4 / 5; }
    .small-card:nth-child(7) { grid-column: 2 / 3; grid-row: 4 / 5; }
    
    /* Activity Listings Grid */
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ------------------------------------- */
/* Mobile Layout (max-width: 768px) */
/* ------------------------------------- */
@media (max-width: 768px) {
    /* Header */
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 15px;
    }

    .nav-links {
        display: none;
    }

    .sign-in-btn {
        margin-top: 10px;
    }
    
    /* Hero Section */
    .hero-overlay {
        padding: 100px 0 0 0;
    }

    .hero-content h1 {
        font-size: 2.5em;
        line-height: 40px;
    }
    
    /* Section Header Tabs */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .section-header h2 {
        margin-bottom: 15px;
    }

    /* Categories Grid */
    .categories-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .main-card {
        grid-column: 1 / 2;
        grid-row: auto;
        height: 250px;
    }
    
    .small-card {
        grid-column: 1 / 2 !important;
        grid-row: auto !important;
        height: 120px;
        font-size: 1.2em;
    }

    /* Activity Listings Grid */
    .listings-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        gap: 30px;
        padding: 0 15px 30px;
    }
    
    .footer-links-group {
        width: 100%;
    }
    
    .join-adventure {
        max-width: 100%;
    }
}

/* ------------------------------------- */
/* Small Mobile Layout (max-width: 480px) */
/* ------------------------------------- */
@media (max-width: 480px) {
    /* Hero Section */
    .hero-content h1 {
        font-size: 2em;
        line-height: 30px;
    }
    
    /* Search Bar */
    .search-bar {
        flex-direction: column;
        align-items: center;
    }

    .search-bar select,
    .search-btn {
        width: 100%;
        border-radius: 5px;
        margin: 5px 0;
    }

    .search-bar select {
        border-radius: 5px;
    }

    .search-btn {
        border-radius: 5px;
    }

    /* Footer Subscribe Form */
    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
        border-radius: 5px;
        margin-top: 5px;
    }
    
    .subscribe-form input {
        margin-top: 0;
    }

    .adventure-categories h2{
      display:none;
    }

    .categories-grid{
    display:none;
}
}


@media (max-width: 600px){
  .adventure-categories h2{
    display:none;
  }

  .categories-grid{
    display:none;
  }
}

@media (max-width: 780px){
  .categories-grid{
    display:none;
  }

  .adventure-categories h2{
    display:none;
  }
}

@media (max-width: 880px){
  .categories-grid{
    display:none;
  }

  .adventure-categories h2{
    display:none;
  }
}

@media(max-width:1000px) {
   .categories-grid{
    display:none;
  }

  .adventure-categories h2{
    display:none;
  }
}




