/*-- -------------------------- -->
<---     Hero                   -->
<--- -------------------------- -*/

@media only screen and (min-width: 0rem){
    #hero {
        position: relative;
        color: #fff;
        text-align: center;
        padding: 15rem 1rem;
        overflow: hidden;
    }

    .hero-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        z-index: 0;
    }

    .hero-container {
        max-width: 80rem;
        margin: 0 auto;
        position: relative;
        z-index: 2;
    }

    #hero h1 {
        font-size: 5rem;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .hero-content {
        font-size: var(--bodyFontSize);
        max-width: 600px;
        margin: 0 auto 2rem;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }
}

/*-- -------------------------- -->
<---     Hero Mobile            -->
<--- -------------------------- -*/
@media only screen and (max-width: 63.9375rem) {
    #hero {
        padding: 5rem 1rem;
    }
    #hero h1 {
        font-size: 3rem;
    }
}

/*-- -------------------------- -->
<---     Welcome                -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem){
    #welcome {
        padding: 2rem 1rem 0rem 1rem;
    }
 
    .welcome-container {
        max-width: 60rem;
        margin: 0 auto;
        line-height: 1.5;
        display: flex;
        flex-direction: column;
        padding: 0 2rem;
    }
}

@media only screen and (max-width: 63.9375rem) {
    .welcome-container {
        padding: 0 1rem;
    }
}

/*-- -------------------------- -->
<---     Islands               -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem){
    #islands {
        padding: 1rem 1rem;
    }

    .islands-container {
        max-width: 60rem;
        margin: 0 auto;
        text-align: center;
    }
 
    .islands-container p {
        margin-bottom: 2rem;
        padding: 0 2rem;
        line-height: 1.5;
    }
 
    .island-links {
        display: flex;
        justify-content: center;
        gap: 2rem;
    }
 
    .island-link {
        background-color: var(--secondary);
        color: #fff;
        padding: 1rem 2rem;
        text-decoration: none;
        border-radius: 4px;
        transition: all 0.3s;
        font-weight: bold;
    }
}
 
@media only screen and (max-width: 63.9375rem) {
    .island-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
 
    .island-link {
        width: 80%;
        max-width: 300px;
    }
}

/*-- -------------------------- -->
<---     Popular Hikes          -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem){
    #popular-hikes {
        padding: 3rem 1rem;
        background-color: #f9f9f9;
    }
 
    .popular-container {
        max-width: 80rem;
        margin: 0 auto;
        text-align: center;
    }
 
    .popular-container h2 {
        margin-bottom: 1rem;
    }
 
    .popular-container p {
        margin-bottom: 2rem;
        max-width: 60rem;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.5;
    }
 
    .hikes-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 1200px;
        margin: 0 auto;
    }
 
    .hike-card {
        display: block;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        text-decoration: none;
        background-color: #fff;
        position: relative;
    }
 
    .hike-image {
        height: 180px;
        overflow: hidden;
    }
 
    .hike-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
 
    .hike-card h3 {
        color: #000;
        padding: 1rem 1rem 0.5rem;
        margin: 0;
        font-size: 1.3rem;
        text-align: left;
    }
    
    .island-tag {
        display: inline-block;
        background-color: var(--secondary);
        color: white;
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
        border-radius: 4px;
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-weight: bold;
    }
}

/* Tablet view - 2 columns */
@media only screen and (max-width: 63.9375rem) {
    .hikes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile view - single column */
@media only screen and (max-width: 40rem) {
    .hikes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hike-image {
        height: 200px;
    }
}

/*-- -------------------------- -->
<---     Tour Partners          -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem){
    #tour-partners {
        padding: 3rem 1rem;
    }

    .partners-container {
        max-width: 80rem;
        margin: 0 auto;
        text-align: center;
    }

    .partners-container h2 {
        margin-bottom: 1rem;
    }

    .partners-container > p {
        margin-bottom: 2rem;
        max-width: 60rem;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.5;
    }

    .tour-cards-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 900px;
        margin: 0 auto;
    }

    .tour-card {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        background-color: #fff;
        position: relative;
        text-align: left;
    }

    .tour-card-image {
        height: 280px;
        overflow: hidden;
        position: relative;
    }

    .tour-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .tour-card-content {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .tour-card-title {
        font-size: 1.3rem;
        display: block;
        width: 100%;
    }

    .tour-card-content p {
        font-size: 1rem;
        line-height: 1.5;
        margin: 0;
        color: #444;
        width: 100%;
    }

    .view-availability-btn {
        display: block;
        background-color: #02B0B8;
        color: white;
        padding: 0.8rem 1.5rem;
        text-decoration: none;
        font-weight: bold;
        border-radius: 4px;
        text-align: center;
        margin: 1rem auto;
        transition: background-color 0.3s ease;
        font-size: 1.1rem;
        width: 200px;
    }

    .view-availability-btn:hover {
        background-color: #018e94;
        text-decoration: none;
    }
}

@media only screen and (max-width: 63.9375rem) {
    .tour-cards-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .tour-card-image {
        height: 250px;
    }

    .view-availability-btn {
        width: 80%;
    }
}

@media only screen and (max-width: 40rem) {
    .tour-card-image {
        height: 220px;
    }
}

/*-- -------------------------- -->
<---     Guide                   -->
<--- -------------------------- -*/
@media only screen and (min-width: 0rem){
    #guide {
        padding: 1rem;
    }
 
    .guide-container {
        max-width: 60rem;
        margin: 0 auto;
        line-height: 1.5;
        display: flex;
        flex-direction: column;
    }

    .guide-container li {
        padding: 0.5rem 0;
    }

    #guide h2, h3{
        text-align: center;
        margin-bottom: 0;
    }
}

@media only screen and (max-width: 63.9375rem) {
    .guide-container {
        padding: 0 1rem;
    }
}