* {
    box-sizing: border-box;
}

body {
    background-color: #f4f4f4;
    padding: 20px;
    margin: 0; 
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 400px;
    background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e') no-repeat center/cover;
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-btn {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hero-btn:hover {
    background: #0056b3;
}

.navbar {
    position: sticky;
    top: 0;
    background: #333;
    color: white;
    padding: 10px 0;
    z-index: 10;
}

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
}

.navbar a:hover {
    color: #007bff;
}

.destinations h1 {
    color: #333;
    text-align: center;
    font-size: 2.5em;
}

.destination-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.destination-card {
    flex: 1 1 300px;
    max-width: 350px;
    height: 400px;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1;
    max-height: 60%;
}

.destination-card:hover .overlay {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .navbar {
        padding: 5px 0; 
    }
    .navbar li {
        margin: 0 10px; 
        font-size: 0.9em;
    }
    .overlay {
        display: none; 
    }
    .destination-card:active .overlay {
        display: flex; 
    }
    .overlay button:focus {
        background: #007bff;
        outline: none; 
    }
    .hero {
        height: 200px;
    }
    .hero h1 {
        font-size: 2em; 
    }
    .reviews .review-container {
        justify-content: center;
    }
}

.overlay h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.overlay p {
    font-size: 1em;
}

.overlay button {
    margin-top: 10px;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.overlay button:hover {
    background: #0056b3;
}

.reviews {
    max-width: 1200px;
    margin: 40px auto;
    text-align: center;
}

.reviews h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

.review-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.review-card {
    flex: 1 1 250px;
    max-width: 300px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.review-card p:first-child {
    font-style: italic;
    margin-bottom: 10px;
}

.review-card h3 {
    font-size: 1.2em;
    color: #007bff;
}

@media (max-width: 600px) {
    .destination-card {
        flex: 1 1 100%;
    }
}