* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
}

html {
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

.section {
    padding: 80px 0;
    text-align: center;
}

.light {
    background: #f4f4f4;
}

.header {
    background: linear-gradient(90deg, #2C3E50 60%, #ff3b8d 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(44, 62, 80, 0.12);
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    color: rgb(245, 247, 252);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.nav-links a:hover,
.nav-links a:focus {
    background: rgba(255, 59, 141, 0.15);
    color: #ff3b8d;
    box-shadow: 0 2px 8px rgba(255, 59, 141, 0.10);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.dark-btn {
    margin-right: 10px;
    cursor: pointer;
}

.dark-btn {
    background: #ffe6f2;
    border: 2px solid #ff3b8d;
    color: #ff3b8d;
    box-shadow: 0 2px 8px rgba(255, 59, 141, 0.15);
    border-radius: 50%;
    padding: 6px 8px;
    transition: box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.15);
    outline: none;
}

.dark-btn:hover,
.dark-btn:focus {
    background: #ffd1ea;
    color: #c2185b;
    box-shadow: 0 4px 16px rgba(255, 59, 141, 0.25);
}

.dark-btn svg {
    vertical-align: middle;
    filter: drop-shadow(0 1px 2px #ffd1ea);
    stroke: #ff3b8d;
}

.dark-mode .dark-btn {
    background: #2a1a2e;
    border: 2px solid #ff3b8d;
    color: #ffb6e6;
}

.dark-mode .dark-btn svg {
    filter: drop-shadow(0 1px 2px #2a1a2e);
    stroke: #ffb6e6;
}

.hero {
    height: 90vh;
    background: linear-gradient(120deg, rgba(44, 62, 80, 0.55) 40%, rgba(230, 126, 34, 0.25)), url("images/guesthouse-main.jpg") center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(234, 226, 226);
    text-align: center;
    animation: fadeInHero 1.2s cubic-bezier(.4, 0, .2, 1);
}

@keyframes fadeInHero {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.hero-content {
    background: rgba(0, 0, 0, 0.32);
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.18);
    animation: fadeInUp 1.2s 0.2s cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.btn {
    background: linear-gradient(90deg, #ff3b8d 60%, #ffb6e6 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1.08rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.10);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    outline: none;
}

.btn:hover,
.btn:focus {
    background: linear-gradient(90deg, #ffb6e6 0%, #ff3b8d 100%);
    box-shadow: 0 6px 24px rgba(255, 59, 141, 0.18);
    transform: translateY(-2px) scale(1.04);
}

.cards {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 28px 20px 20px 20px;
    border-radius: 18px;
    width: 300px;
    box-shadow: 0 5px 24px rgba(44, 62, 80, 0.10);
    transition: box-shadow 0.25s, transform 0.18s, background 0.18s;
    position: relative;
    overflow: hidden;
    animation: fadeInCard 1.1s cubic-bezier(.4, 0, .2, 1);
}

.card.service {
    background: linear-gradient(120deg, #ffe6f2 60%, #fff0fa 100%);
    color: #ff3b8d;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1.5px solid #ffb6e6;
    box-shadow: 0 4px 18px rgba(255, 59, 141, 0.08);
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.card.service:hover,
.card.service:focus {
    background: linear-gradient(120deg, #ffb6e6 60%, #ffe6f2 100%);
    color: #c2185b;
    box-shadow: 0 8px 32px rgba(255, 59, 141, 0.15);
}

.card:hover,
.card:focus {
    box-shadow: 0 12px 36px rgba(255, 59, 141, 0.18);
    transform: translateY(-6px) scale(1.03);
    z-index: 2;
}

.card img {
    width: 100%;
    border-radius: 12px;
    transition: filter 0.2s;
}

.card:hover img {
    box-shadow: 0 8px 32px rgba(255, 59, 141, 0.15);
    filter: brightness(1.07) saturate(1.12);
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.card img {
    width: 100%;
    border-radius: 10px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px 22px;
    justify-items: center;
    align-items: stretch;
    margin-top: 32px;
}

.gallery img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 14px;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.18s, filter 0.18s;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
    background: #f7f1e3;
    margin: 0 auto;
}

.gallery img:hover,
.gallery img:focus {
    box-shadow: 0 12px 36px rgba(255, 59, 141, 0.18);
    transform: scale(1.045) translateY(-4px);
    filter: brightness(1.08) saturate(1.18);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: auto;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border: 1.5px solid #ff3b8d;
    box-shadow: 0 2px 8px rgba(255, 59, 141, 0.10);

    /* Pink accent for buttons in dark mode */
    .dark-mode .btn {
        background: linear-gradient(90deg, #ff3b8d 60%, #ffb6e6 100%) !important;
        color: #fff;
        box-shadow: 0 2px 8px rgba(255, 59, 141, 0.10);
    }

    .dark-mode .btn:hover,
    .dark-mode .btn:focus {
        background: linear-gradient(90deg, #ffb6e6 0%, #ff3b8d 100%) !important;
        box-shadow: 0 6px 24px rgba(255, 59, 141, 0.18);
    }

    /* Pink accent for service cards in dark mode */
    .dark-mode .card.service {
        background: linear-gradient(120deg, #3a1a2e 60%, #ff3b8d 100%);
        color: #fff;
        border: 1.5px solid #ff3b8d;
        box-shadow: 0 4px 18px rgba(255, 59, 141, 0.18);
    }

    .dark-mode .card.service:hover,
    .dark-mode .card.service:focus {
        background: linear-gradient(120deg, #ff3b8d 60%, #3a1a2e 100%);
        color: #ffe6f2;
        box-shadow: 0 8px 32px rgba(255, 59, 141, 0.25);
    }

    
    button:focus,
    .btn:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: 2px solid #ff3b8d !important;
        outline-offset: 2px;
    }
}

.map-container {
    margin-top: 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 24px rgba(44, 62, 80, 0.10);
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s 0.3s cubic-bezier(.4, 0, .2, 1) both;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    display: block;
    border: 0;
}


footer {
    background: linear-gradient(90deg, #2C3E50 60%, #ff3b8d 100%);
    border-top: 4px solid #ff3b8d;
    color: white;
    text-align: center;
    padding: 28px 20px 20px 20px;
    font-size: 1.08rem;
    letter-spacing: 0.5px;
    box-shadow: 0 -2px 16px rgba(44, 62, 80, 0.10);
}

.modal,
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lightbox img {
    max-width: 80%;
}

#topBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    display: none;
}

.social-icons img {
    width: 30px;
    margin: 5px;
    cursor: pointer;
}

#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    z-index: 9999;
}

/* DARK MODE */
.dark-mode {
    background: #181a23;
    color: white;
    transition: background 0.3s, color 0.3s;
}

.dark-mode .card {
    background: #23243a;
    color: white;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.18);
}

.dark-mode footer {
    background: linear-gradient(90deg, #23243a 60%, #ff3b8d 100%);
    border-top: 4px solid #ff3b8d;
}


.dark-mode #review {
    color: #fffbe6;
    background: #23243a;
    border-radius: 10px;
    padding: 18px 24px;
    margin: 18px auto 0 auto;
    max-width: 520px;
    font-size: 1.15rem;
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.18);
    letter-spacing: 0.2px;
}


.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode .card h3,
.dark-mode .hero-content h1,
.dark-mode .hero-content h2 {
    color: #d1a7cb !important;
    text-shadow: 0 2px 8px rgba(44, 62, 80, 0.18);
}

.dark-mode .section h2,
.dark-mode .section h1,
.dark-mode .section h3,
.dark-mode .light h2,
.dark-mode .light h1,
.dark-mode .light h3,
.dark-mode .container h2,
.dark-mode .container h1,
.dark-mode .container h3 {
    color: #e5abd9 !important;
    text-shadow: 0 2px 8px rgba(44, 62, 80, 0.18);
    background: rgba(44, 62, 80, 0.65);
    border-radius: 10px;
    padding: 8px 24px 6px 24px;
    display: inline-block;
    margin-bottom: 18px;
}


/* TABLET & MOBILE: up to 1024px */
@media (max-width: 1024px) {
    .container {
        width: 96%;
        padding: 0 8px;
    }

    .cards {
        gap: 20px;
    }

    .gallery {
        gap: 18px 10px;
    }
}


@media (max-width: 900px) {
    .cards {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .card {
        width: 90vw;
        max-width: 400px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .map-container iframe {
        height: 300px;
    }
}


@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
    }

    .logo {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        background: #2C3E50;
        flex-direction: column;
        padding: 20px 24px 20px 24px;
        width: 70vw;
        max-width: 320px;
        border-radius: 0 0 0 18px;
        box-shadow: 0 8px 32px rgba(44, 62, 80, 0.18);
        z-index: 200;
    }

    .nav-links.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
        margin-left: 12px;
    }

    .section {
        padding: 48px 0 36px 0;
    }

    .hero {
        height: 60vh;
        padding: 0 0 24px 0;
    }

    .hero-content {
        padding: 24px 10px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 8px;
    }

    .gallery img {
        max-width: 100%;
        aspect-ratio: 4/3;
    }

    .map-container iframe {
        height: 220px;
    }

    footer {
        font-size: 0.98rem;
        padding: 18px 8px 12px 8px;
    }
}


@media (max-width: 600px) {
    .container {
        width: 99%;
        padding: 0 2px;
    }

    .section {
        padding: 32px 0 20px 0;
    }

    .hero {
        height: 44vh;
        min-height: 260px;
    }

    .hero-content h1 {
        font-size: 1.25rem;
    }

    .btn {
        font-size: 0.98rem;
        padding: 10px 16px;
    }

    .card {
        padding: 16px 8px 12px 8px;
        font-size: 0.98rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 8px 0;
    }

    .gallery img {
        aspect-ratio: 4/3;
        max-width: 100%;
    }

    .map-container iframe {
        height: 140px;
    }

    .contact-form {
        max-width: 98vw;
        padding: 0 2px;
    }

    .modal-content {
        padding: 12px 4px;
        font-size: 0.98rem;
    }
}


@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }

    .navbar {
        padding: 6px 0;
    }

    .section h2,
    .section h1 {
        font-size: 1.1rem;
    }

    .card h3 {
        font-size: 1rem;
    }

    .btn {
        font-size: 0.92rem;
        padding: 8px 10px;
    }

    .footer {
        font-size: 0.92rem;
        padding: 10px 2px 8px 2px;
    }
}