@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');

:root {
    /* Dark green for text and important elements */
    --primary-color: #00472f;       
    /* Light cyan for background */
    --secondary-color: #84ffff;     
    /* Very dark green for text */
    --text-color-dark: #003030;     
    /* White for text on dark background */
    --text-color-light: #ffffff;    
    /* Cyan for hover effects */
    --hover-color: #4dffff;         
    /* Gray for borders */
    --border-color: #666666;        
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9faef;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    line-height: 1.6;
    color: var(--text-color-dark);
}

body.contact-page {
    background: linear-gradient(rgba(105, 211, 250, 0.5), #F5F5DC), url('../img/contact-bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

p {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

header, footer {
    background: #00472f;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 24px;
    width: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    box-sizing: border-box;
}

header {
    position: fixed;
    top: 0;
}

header h1 {
    font-size: inherit;
    margin: 0;
    font-weight: bold;
    text-transform: uppercase;
}

nav {
    width: 200px;
    position: fixed;
    padding: 20px;
    top: 64px;
    left: 50%;
    transform: translateX(calc(-700px + 20px));
    background: #f9faef;
    z-index: 999;
    height: calc(100vh - 64px);
    overflow-y: auto;
    transition: all 0.3s ease;
}

nav a {
    /* Basic navigation link styling */
    display: block;
    margin: 10px 0;
    padding: 12px 15px;
    background: var(--secondary-color);
    text-decoration: none;
    color: var(--text-color-dark);
    position: relative;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid var(--primary-color);
}

nav a:hover {
    background: var(--hover-color);
    transform: translateX(5px);
    outline: 2px solid var(--primary-color);
}

.dropdown {
    position: relative;
}

.submenu {
    display: none;
    padding: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.submenu a {
    margin-top: 5px;
    padding: 12px 15px 12px 25px;
    background: var(--secondary-color);
    border-bottom: 1px solid var(--primary-color);
    font-weight: bold;
    color: var(--text-color-dark);
}


.submenu a:hover {
    background: var(--hover-color);
}

.dropdown:hover .submenu {
    display: block;
    max-height: 300px; /* Adjust this value based on content */
    padding: 5px 0;
}

.dropdown > a::after {
    content: " \25BC";
    font-size: 12px;
    position: absolute;
    right: 10px;
    transition: transform 0.3s ease;
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
}

main {
    margin-left: 250px;
    padding: 20px;
    position: relative;
    z-index: 1;
    margin-top: 64px;
    flex: 1;
    padding-bottom: 80px;
}

.banner {
    position: relative;
    text-align: center;
    padding: 50px 30px;
    background: url('../img/banner.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    font-size: 20px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
}

.banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: 100%;
}

.banner h2 {
    color: white;
    margin: 0;
    padding: 10px 15px;
    max-width: 800px;
    font-size: 2.2em;
    line-height: 1.3;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    display: inline-block;
}

.photo-credit {
    font-size: 16px;
    font-style: italic;
    margin: 0;
    opacity: 0.8;
    position: absolute;
    bottom: -40px;
    right: 10px;
    z-index: 4; 
    color: rgba(255, 255, 255, 0.9); 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3px 8px;
    border-radius: 4px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.text-box {
    text-align: left;
    padding: 30px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    border-radius: 10px;
    line-height: 1.6;
}

.text-box p {
    margin-bottom: 20px;
}

footer {
    position: relative;
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 20px;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}

/* Large screens */
@media screen and (min-width: 1401px) {
    nav {
        transform: translateX(calc(-700px + 20px));
    }
}

/* Medium screens */
@media screen and (max-width: 1400px) and (min-width: 1025px) {
    nav {
        transform: translateX(calc(-50vw + 20px));
    }
}

/* Tablets */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    nav {
        width: 180px;
        transform: translateX(calc(-50vw + 20px));
        padding: 15px;
        background: #00472f;
        border-radius: 0 10px 10px 0;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    }

    nav a {
        padding: 12px 15px;
        font-size: 15px;
        margin: 5px 0;
        border-radius: 8px;
        background: var(--secondary-color);
        transition: all 0.3s ease;
        border: 2px solid var(--primary-color);
        color: var(--primary-color);
    }

    nav a:hover {
        background: var(--hover-color);
        transform: translateX(5px);
        outline: 2px solid var(--primary-color);
    }

    .submenu {
        width: 160px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        margin-top: 5px;
        border: 1px solid var(--primary-color);
    }

    .submenu a {
        padding: 10px 15px 10px 25px;
        font-size: 14px;
        background: var(--secondary-color);
        border-radius: 0;
        color: var(--primary-color);
        border-bottom: 1px solid var(--primary-color);
    }

    .submenu a:first-child {
        border-radius: 8px 8px 0 0;
    }

    .submenu a:last-child {
        border-radius: 0 0 8px 8px;
        border-bottom: none;
    }

    .submenu a:hover {
        background: var(--hover-color);
    }

    main {
        margin-left: 220px;
    }

    .banner {
        height: 250px;
        padding: 30px 20px;
    }

    .banner h2 {
        font-size: 1.8em;
        padding: 15px;
    }

    .photo-credit {
        font-size: 14px;
    }
}

/* Mobile devices */
@media screen and (max-width: 768px) {
    body {
        padding-bottom: 0;
    }

    header {
        position: relative;
        padding: 15px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    nav {
        width: 100%;
        position: static;
        height: auto;
        padding: 15px;
        background: #00472f;
        transform: none;
        overflow-x: hidden;
        box-sizing: border-box;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    nav a {
        display: block;
        width: 100%;
        color: var(--primary-color);
        background: var(--secondary-color);
        margin: 5px 0;
        padding: 12px 20px;
        font-size: 15px;
        box-sizing: border-box;
        text-align: left;
        border-radius: 8px;
        transition: all 0.3s ease;
        border: 2px solid var(--primary-color);
    }

    nav a:hover {
        background: var(--hover-color);
        transform: translateX(5px);
        outline: 2px solid var(--primary-color);
    }
    
    .dropdown {
        display: block;
        width: 100%;
    }

    .submenu {
        position: static;
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        box-sizing: border-box;
        margin: 5px 0;
        padding: 5px 0;
        display: block;
        max-height: none;
        border-radius: 8px;
        border: 1px solid var(--primary-color);
    }

    .submenu a {
        background: var(--secondary-color);
        border-bottom: 1px solid rgba(0, 71, 47, 0.1);
        padding: 10px 20px 10px 35px;
        margin: 0;
        width: 100%;
        font-size: 14px;
        border-radius: 0;
        color: var(--text-color-dark);
    }

    .submenu a:first-child {
        border-radius: 8px 8px 0 0;
    }

    .submenu a:last-child {
        border-radius: 0 0 8px 8px;
    }

    .submenu a:hover {
        background: var(--hover-color);
    }

    .dropdown > a::after {
        content: " \25BC";
        display: inline-block;
        margin-left: 5px;
        position: static;
        font-size: 12px;
    }

    .dropdown:hover > a::after {
        transform: rotate(180deg);
    }

    main {
        margin-left: 0;
        padding: 15px;
        margin-top: 0;
        width: 100%;
        box-sizing: border-box;
    }

    footer {
        margin-left: -50vw;
        margin-right: -50vw;
        width: 100vw;
        padding: 15px;
    }

    .banner {
        height: auto;
        min-height: 200px;
        padding: 40px 15px;
    }

    .banner h2 {
        font-size: 1.1em;
        padding: 10px;
        line-height: 1.0;
    }

    .banner-content {
        gap: 8px;
    }

    .photo-credit {
        font-size: 12px;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    nav {
        padding: 10px;
    }

    nav a {
        margin: 3px 0;
        padding: 10px 15px;
        font-size: 14px;
    }

    .submenu a {
        padding: 8px 15px 8px 30px;
        font-size: 13px;
    }

    .banner {
        min-height: 180px;
        padding: 30px 10px;
    }

    .banner h2 {
        font-size: 1.1em;
        padding: 8px;
    }

    .banner-content {
        gap: 5px;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 16px;
}

/* Responsive design for gallery */
@media screen and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Styles for package page */
.package-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
}

.package-card {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: white;
}

.package-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.package-card p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.package-card ul {
    list-style-type: none;
    padding-left: 0;
}

.package-card li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.package-card li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.book-button {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-top: 15px;
    width: 100%;
    max-width: 200px;
}

.book-button:hover {
    background-color: #003020;
    transform: translateY(-2px);
}

/* Media Queries for package page */
@media screen and (max-width: 1024px) {
    .package-grid {
        padding: 15px;
    }

    .package-card {
        padding: 15px;
    }

    .package-card h3 {
        font-size: 1.3em;
    }
}

@media screen and (max-width: 768px) {
    .package-grid {
        padding: 10px;
        gap: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .package-card {
        padding: 15px;
        width: 90%;
        max-width: 400px;
    }

    .package-card h3 {
        font-size: 1.2em;
    }

    .package-card p {
        font-size: 0.9em;
    }

    .book-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .package-grid {
        padding: 10px;
        gap: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .package-card {
        padding: 12px;
        width: 95%;
        max-width: 350px;
    }

    .package-card h3 {
        font-size: 1.1em;
    }

    .package-card p {
        font-size: 0.85em;
    }

    .package-card li {
        font-size: 0.85em;
    }

    .book-button {
        padding: 8px 16px;
        font-size: 13px;
        max-width: 100%;
    }
}

/* Contact page specific styles */
body.contact-page {
    background: linear-gradient(rgba(105, 211, 250, 0.5), #F5F5DC), url('../img/contact-bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.contact-page .text-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

.form-group:last-of-type {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-color-dark);
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Media query for mobile devices*/
@media screen and (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }

    .form-group {
        width: 100%;
        margin-bottom: 10px;
    }
}

.contact-form button {
    background: var(--primary-color);
    color: var(--text-color-light);
    padding: 14px 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 0;
    grid-column: 1 / -1;
    width: auto;
    min-width: 200px;
}

.contact-form button:hover {
    background: #003020;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 71, 47, 0.2);
}

.contact-form button:active {
    transform: translateY(0);
}

.contact-form button i {
    margin-right: 8px;
    font-size: 16px;
}

h2, h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

a:active,
button:active {
    transform: scale(0.98);
}

@media screen and (max-width: 768px) {
    nav a, .submenu a {
        /* Full width navigation for small screens */
        width: 100%;
        text-align: center;
    }
}
