* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Raleway", serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
}

header {
    position: sticky;
    top: 0;
    background: #0a3d62;
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, padding 0.3s ease;
    z-index: 1000;
}

header.shrink {
    background: #083050;
    padding: 12px 40px;
}

header h1 {
    font-size: 24px;
    font-weight: 800;
    transition: font-size 0.3s ease;
}

header h1 a {
    color: white;
    text-decoration: none;
}

header.shrink h1 {
    font-size: 20px;
}

textarea {
    resize: none;
}

textarea,
input {
    font-family: "Raleway", serif;
}

em {
    font-style: italic;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
}

.hero {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    text-align: center;
}

.hero-image {
    position: absolute;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;

    mask-image: linear-gradient(to bottom, black 60%, transparent 95%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 95%);
}

.hero-text {
    position: absolute;
    padding: 70px 70px 35px 70px;
    border-radius: 20px;
    margin-top: -200px;
    line-height: 4.5vw;
    z-index: 1;
}

.hero-text .blur-overlay {
    position: absolute;
    margin-top: -50px;
    margin-left: -50px;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    z-index: -1;

    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
    -webkit-mask-composite: intersect;
    /* Chrome/Safari */
    mask-composite: intersect;
    /* Firefox */

    mask-image:
        linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
}

.hero-text * {
    z-index: 1;
}

.hero-text h2 {
    font-size: 6vw;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

.hero-text p {
    font-size: 2vw;
    margin-bottom: -10px;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.7);
}

section {
    padding: 60px 40px;
}

/*.contact {
    background: #eeeeee;
}

.contact form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.contact input,
.contact textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact button {
    padding: 12px;
    border: none;
    background: #0a3d62;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}*/

footer {
    text-align: center;
    padding: 20px;
    background: #0a3d62;
    color: white;
}

#tour-list {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns on large */
}

@media (max-width: 1200px) {
    #tour-list {
        grid-template-columns: repeat(2, 1fr);
        /* jump directly to 2 columns */
    }
}

@media (max-width: 800px) {
    #tour-list {
        grid-template-columns: 1fr;
        /* single column on narrow */
    }
}

.tour-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    transform-origin: center center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);

    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    height: 100%;
}

.tour-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.card-banner-wrapper {
    width: 100%;
    height: 150px;
    /* fixed height for banner area */
    overflow: hidden;
    /* clip zoomed image */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    position: relative;
}

.card-banner-wrapper .card-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.tour-card:hover .card-banner-wrapper .card-banner {
    transform: scale(1.1);
}

.tour-card-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tour-card-content h2 {
    font-size: 25px;
    margin-bottom: 8px;
}

.tour-card-content p {
    margin: 2px 0;
    font-size: 18px;
    line-height: 0.7;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.section-header h2 {
    white-space: nowrap;
    font-size: 40px;
    margin: 0;
}

.section-line {
    flex-grow: 1;
    height: 1.5px;
    background-color: #e2e2e2;
}

.section-line.white {
    background-color: white;
}

/* Outer row layout */
.icon-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
    min-height: 1.8em;
    max-height: 1.8em;
    line-height: 1.8em;
}

/* Inner icon + text block */
.icon-pair {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-pair .icon {
    max-height: 1.4em;
    width: auto;
    vertical-align: middle;
    display: inline-block;
}

.icon-wrapper strong {
    margin-right: 4px;
}

.price {
    margin: 4px 0;
}

.browse-all-banner {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.browse-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://b1088268.smushcdn.com/1088268/wp-content/uploads/2023/03/costa-rica-beach-Cahuita-National-Park.jpg?lossy=2&strip=1&webp=1') center/cover no-repeat;
    transition: transform 0.3s ease;
    z-index: 0;
}

.browse-all-card:hover .browse-bg-layer {
    transform: scale(1.1);
}

.browse-all-card:hover .browse-overlay {
    background-color: rgba(0, 0, 0, 0.2);
}

.browse-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
    z-index: 1;
    pointer-events: none;
}

.browse-all-banner h2 {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 3em;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    padding: 0 12px;
}