/* =====================
   GLOBAL STYLES
===================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #f4f4f4;
}

/* =====================
   HERO / PARALLAX
===================== */
.parallax-hero {
    height: 70vh;
    background-image: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    background: rgba(0, 0, 0, 0.55);
    padding: 30px 40px;
    color: #fff;
    border-radius: 14px;
    text-align: center;
}

/* =====================
   GALLERY SLIDER
===================== */
.gallery-container {
    text-align: center;
    padding: 40px 0;
}

.slider-wrapper {
    position: relative;
    max-width: 1000px;
    height: 500px;
    margin: auto;
    overflow: hidden;
    border-radius: 15px;
}

.slide-item {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
}

.fade {
    animation: fadeEffect 1.5s;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* =====================
   INFO BAR
===================== */
.info-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background: #004a99;
    color: white;
    padding: 12px;
    gap: 10px;
    font-weight: bold;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-item img {
    width: 22px;
    height: 22px;
}

/* =====================
   TIME SLIDER
===================== */
.time-control {
    padding: 20px;
    background: #0a2540;
    color: white;
    text-align: center;
}

.time-label {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: bold;
}

#timeSlider {
    width: 80%;
    max-width: 500px;
}

.time-icons {
    position: relative;
    height: 80px;
    margin-top: 15px;
}

.time-icons img {
    position: absolute;
    width: 40px;
    transition: transform 0.4s linear, opacity 0.4s;
}

#sunIcon {
    left: 50%;
    transform: translateX(-50%);
}

#moonIcon {
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
}

/* =====================
   TIDES SECTION
===================== */
.seashore-side {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(to top, #87ceeb 0%, #cceeff 70%); /* sky */
}

.sea {
    position: absolute;
    bottom: 0;
    width: 300%; /* extra width for horizontal tide motion */
    height: 100px;
    background: linear-gradient(to top, #1e90ff, #00bfff);
    border-radius: 50% 50% 0 0;
    z-index: 1;
    transform: translateX(0);
    transition: transform 2s ease-out;
    animation: waves 4s ease-in-out infinite alternate;
}

.beach {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
    background: #f4d18a;
    z-index: 2;
    border-radius: 0 0 20% 20%;
}

.houses {
    position: absolute;
    bottom: 50px;
    left: 20%;
    width: 120px;
    height: 50px;
    background: url('https://images.unsplash.com/photo-1587801139517-30d93b17f1f3?auto=format&fit=crop&w=200&q=60') no-repeat bottom;
    background-size: contain;
    z-index: 3;
}

@keyframes waves {
    0% { transform: translateX(0); }
    50% { transform: translateX(-20px); }
    100% { transform: translateX(0); }
}

.sun-moon {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, #fffacd 0%, #ffd700 70%, transparent 100%);
    opacity: 0.7;
    animation: floatReflection 6s ease-in-out infinite alternate;
}

@keyframes floatReflection {
    0% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
    100% { transform: translateX(-50%) translateY(0); }
}

/* =====================
   MAP
===================== */
.map-section {
    text-align: center;
    padding: 20px 0;
}

#map {
    height: 600px;
    width: 94%;
    margin: auto;
    border-radius: 14px;
}

/* =====================
   FOOTER
===================== */
.site-footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 18px;
    font-size: 14px;
}

/* =====================
   MEDIA QUERIES / RESPONSIVE
===================== */
@media (max-width: 768px) {

    .parallax-hero {
        background-attachment: scroll;
        height: 55vh;
    }

    .hero-content {
        padding: 20px;
    }

    .info-bar {
        flex-direction: column;
        align-items: center;
    }

    #map {
        height: 420px;
        width: 96%;
    }

    #timeSlider {
        width: 95%;
    }

    .seashore-side {
        height: 150px;
    }

    .houses {
        width: 80px;
        height: 35px;
        bottom: 35px;
    }

    .sun-moon {
        width: 30px;
        height: 30px;
    }
}
