/* ------------------------------
   Global Styles
-------------------------------*/
* {
    box-sizing: border-box; /* Ensures padding doesn't mess with width */
}

/* ------------------------------
   Header Styles
-------------------------------*/
.header {
    min-height: 483px;
    background-image: url('../img/camping_background.jpg');
    background-size: cover;
    color: white;
    text-align: center;
    font-size: 30px;
    padding-top: 193.5px;
    padding-bottom: 193.5px;
    border-radius: 8px;
}

header {
    font-size: 30px;
    padding-top: 30px;
    padding-bottom: 30px; 
    padding-left: 20px;
}

/* ------------------------------
   Body Styles
-------------------------------*/
body {
    font-family: Arial, sans-serif;
    background-color: #e7e7e7;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    overflow-x: hidden;
}

/* ------------------------------
   Section Styles
-------------------------------*/
section {
    background-color: #fff;
    padding: 30px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#intro {
    text-align: center;
}

/* ------------------------------
   Footer Styles
-------------------------------*/
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    border-radius: 8px;
}

#contact h4 {
    margin-bottom: 10px;
    font-size: 1.5em;
}

#phone {
    font-size: 1.2em;
}

/* ------------------------------
   Navigation Styles
-------------------------------*/
nav {
    display: flex;
    flex-direction: row;
    justify-content: flex-start; /* Align items to the left */
    gap: 30px; /* Space between links (adjust as needed) */
    background: #333;
    padding: 15px; /* Smaller padding */
    flex-wrap: wrap; /* Makes links stack on small screens */
    text-align: center;
    color: white;
    width: 100%;
    margin-top: 10px;
    border-radius: 8px;
}

.a {
    color: white;
    font-size: large;
    text-decoration: none;
    padding: 10px 20px; /* Adds space around the link */
    display: inline-block; /* Makes the link behave like a block element */
    border-radius: 5px; /* Rounded corners for the links */
}

/* Hover effect for links */
.a:hover {
    background-color: #555; /* Slight dark background on hover */
}

.img-link {
    background-color: #333;
}

/* ------------------------------
   Header for H2 Elements
-------------------------------*/
h2 {
    font-size: 2.5em; /* Increase the font size */
    font-weight: bold; /* Make the text bold */
    color: #333; /* Darker color for contrast */
    text-align: center; /* Center-align the text */
    margin-bottom: 20px; /* Add space below the heading */
    padding: 10px 0; /* Add vertical padding for emphasis */
    border-bottom: 3px solid #333; /* Add a bottom border for separation */
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5); /* Shadow for depth */
}

.paragraph {
    max-width: 900px;
}

/* ------------------------------
   Location Section Styles
-------------------------------*/
.location-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px; /* Space between the content and map */
}

.location-text {
    width: 50%;
}

.location-map {
    width: 50%; /* Ensure the container takes up the full width */
    max-width: 400px; /* Limit the max width of the container */
    display: flex;
    justify-content: center; /* Center the map */
}

.location-map img {
    height: auto;
    border-radius: 8px; /* Ensures all corners are rounded */
    object-fit: cover; /* Adjusts how the image fits */
}

.location-img {
    width: 70%;
    margin-right: 10px; /* Adds space to the right */
    margin-bottom: 10px; /* Adds space at the bottom */
    border-radius: 8px; /* Ensure corners stay rounded */
    object-fit: cover; /* Ensures it fills the area properly */
    display: block; /* Fixes layout issues */
}

/* -----------------------------
    Location instruction styles
-------------------------------*/

.location-instructions {
    margin-top: 30px;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 8px;
    display: flex;
    justify-content: space-between; /* Makes space between map and text */
    align-items: center; /* Vertically centers content */
}

.custom-map-container {
    width: 50%; /* Limits the width of the map */
    max-width: 500px;  /* Adjust to fit your design */
}

#custom-map-img {
    width: 100%;  /* Makes the map image take full width of its container */
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

.intructions-text {
    width: 20%;  /* Limits the width of the text */
    padding-left: 20px; /* Adds some space between text and map */
}

/* ------------------------------
   About Section Styles
-------------------------------*/
#about {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* ------------------------------
   Facilities Section Styles
-------------------------------*/
#facilities {
    display: flex;
    flex-direction: row-reverse; /* Image on the right, text on the left */
    gap: 20px;
    padding: 40px;
}

.facilities-section {
    width: 50%; /* Text section takes up 50% */
    padding-left: 50px;
}

.facilities-section ul {
    list-style-type: disc; /* Ensures the bullet points show */
    padding-left: 20px; /* Adds indentation for the list items */
}

.facilities-img-container {
    overflow: hidden; /* Ensures the image respects border-radius */
    border-radius: 8px;
    height: auto;
    object-fit: cover;
    display: block; /* Removes extra space below the image */
    max-width: 40%; /* Image takes up 50% of the width */
}

#facilities-header {
    margin-bottom: 10px;
}

/* ------------------------------
   Link Hover Effects
-------------------------------*/
.a:hover {
    background-color: #555;
    text-decoration: none; /* Remove underline on hover for better visual */
}

/* ------------------------------
   Scroll Behavior and Misc Styles
-------------------------------*/
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.facilities-img:hover {
    transform: scale(1.5);
    transition: transform 0.3s ease;
}

/* ------------------------------
   Back to Top Button Styles
-------------------------------*/
#back-to-top {
    position: fixed;
    bottom: 20px; /* 20px from the bottom of the screen */
    right: 20px; /* 20px from the right of the screen */
    background-color: #333; /* Dark background color */
    color: white; /* White text */
    padding: 10px 20px;
    border-radius: 50px; /* Rounded corners */
    font-size: 16px;
    cursor: pointer;
    z-index: 1000; /* Ensure it's always on top */
}

#back-to-top:hover {
    background-color: #555; /* Darker background on hover */
}

/* ------------------------------
   WhatsApp Icon Styles
-------------------------------*/
.small-campers {
    color: red;
}

#book {
    background-color: #25D366;
    text-shadow:
    1px 1px 2px black,  /* Top-left shadow */
    -1px -1px 2px black, /* Bottom-right shadow */
    1px -1px 2px black,  /* Top-right shadow */
    -1px 1px 2px black;  /* Bottom-left shadow */
}

#book:hover {
    background-color: #7bc998;
}

.whatsapp-icon {
    position: fixed; /* Fixes the icon to a fixed position on the screen */
    bottom: 70px;    /* Adjust this value to place the icon above the Back to Top button */
    right: 20px;     /* Position it on the right side of the screen */
    font-size: 40px; /* Size of the WhatsApp icon */
    color: #25D366;  /* WhatsApp green color */
    background-color: white; /* Optional: background color for the icon */
    border-radius: 50%; /* This makes it perfectly round */
    padding: 9px 12px 12px 12px;    /* Space around the icon (adjust for size) */
    width: 60px;      /* Set a fixed width */
    height: 60px;     /* Set a fixed height to maintain a perfect circle */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: shadow effect */
    transition: transform 0.3s ease; /* Optional: smooth hover effect */
    border: 2px solid black;
}

.whatsapp-icon:hover {
    background-color: #ECECEC;
}

/* ------------------------------
   Photo and Video Styles
-------------------------------*/
.photos {
    box-sizing: border-box;
    margin: 10px;  /* Add margin around each image */
    width: 47%;  /* Make each image take 50% of the container width */
    height: 400px;  /* Global height for large screens */
    object-fit: cover;  /* Ensure images cover their containers without distortion */
    border-radius: 8px;
    display: inline-block;
}

.video {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
    margin-bottom: 10px;
}

.drone {
    width: 485px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.wide {
    width: 485px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.photo-header {
    font-size: 4vw;
    font-weight: bold;
    text-align: center;
}

h3 {
    text-align: center;
}

/*---------------------
 Make Your Price Styles 
 ------------------------*/

.make-your-price {
    background-color: #f2f2f2;  /* Light gray background */
    padding: 40px 30px;         /* Increased padding */
    padding-left: 10%;         /* More padding for better spacing */
    border-radius: 8px;         /* Rounded corners */
    margin-top: 40px;           /* Increased space above the section */
    color: #333;
    font-size: 1.25em;
    font-weight: 600;
}

#make-your-price-title {
    font-size: 3em;             /* Larger font size for the title */
    color: #333;                /* Dark color for contrast */
    margin-bottom: 30px;        /* More space below the heading */
    text-align: center;
    font-weight: bolder;
}

#adults-counter, #children-counter, #van-checkbox, #electricity-checkbox, #washing-machine-checkbox {
    font-size: 1.2em;
    margin-bottom: 15px; /* Space between each section */
}

button {
    font-size: 1.2em;
    margin-left: 10px;
}

#adults, #children {
    font-size: 1.5em;
    margin-left: 10px;
}

#calculate-price-btn, #reset-price-btn {
    background-color: #25D366;  /* WhatsApp green color for the button */
    color: white;               /* White text */
    font-size: 1.5em;           /* Larger font size for the button text */
    padding: 18px 30px;         /* Increased padding around the button */
    margin-top: 20px;
    border-radius: 10px;        /* More rounded corners for the button */
    cursor: pointer;           /* Cursor changes to pointer on hover */
    border: none;               /* Remove default border */
    font-weight: 600;
}

#calculate-price-btn:hover, #reset-price-btn:hover {
    background-color: #7bc998;  /* Darker green on hover */
}

#reset-price-btn {
    margin-left: 40px;
}

#book-price {
    background-color: #25D366;  /* WhatsApp green color for the button */
    color: white;               /* White text */
    font-size: 1.5em;           /* Larger font size for the button text */
    padding: 12px 30px;         /* Increased padding around the button */
    margin-top: 20px;
    margin-left: 50px;
    border-radius: 10px;        /* More rounded corners for the button */
    cursor: pointer;           /* Cursor changes to pointer on hover */
    border: none;               /* Remove default border */
}

#final-price-container {
    margin-top: 20px;
}

.final-price {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
}

.font-size {
    font-size: x-large;
}

#electricity-checkbox {
    padding-left: 10px;
}

/* ------------------------------
   Map Image Styles
-------------------------------*/
.location-link {
    position: relative; /* Needed to position the link inside the image */
    display: inline-block;
}

.view-larger-link-container {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 2; /* Ensure it is above the image */
}

.view-larger-link {
    color: white; /* White text */
    font-size: 1.1em;
    text-decoration: none;
    font-weight: bold;
}

.view-larger-link:hover {
    color: #25D366; /* Green on hover */
    text-decoration: underline; /* Underline on hover */
}


/* ------------------------------
   Media Queries for Responsiveness
-------------------------------*/
@media screen and (max-width: 768px) {

    header {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    nav {
        flex-direction: column;
        padding: 15px 10px;
        text-align: center;
        gap: 10px; /* Reduce gap between links */
    }

    nav a {
        display: block; /* Make links take full width */
        width: 100%; 
        padding: 12px 0; /* Adjust padding for better spacing */
        background-color: #444; /* Slightly different shade */
        border-radius: 5px;
    }

    nav a:hover {
        background-color: #555;
    }

    .location-container {
        flex-direction: column;
        align-items: center;
    }

    a {
        text-decoration: underline;
    }

    #about {
        flex-direction: column; /* Stacks the sections vertically */
        align-items: center; /* Center-align the sections */
    }

    .paragraph {
        max-width: 100%; /* Make each section take full width on mobile */
        margin-bottom: 20px; /* Add some space between sections */
        line-height: 1.6; /* Improve line spacing for readability */
        font-size: 16px; /* Slightly reduce font size for better fit */
        text-align: justify; /* Justify the text to avoid too many breaks */
    }

    /* Fix for the location text */
    .location-text {
        margin: 0; /* Remove any extra margin */
        padding: 0; /* Remove extra padding */
        font-size: 16px; /* Make the text fit better */
        width: 100%; /* Ensure the text takes full width */
        box-sizing: border-box; /* Prevent padding or margin from affecting width */
    }

    #facilities {
        flex-direction: column; /* Stack the image and text vertically */
        align-items: center; /* Center the content */
    }

    .facilities-section {
        width: 100%; /* Text takes full width on smaller screens */
        padding-right: 0; /* Remove right padding */
    }

    .facilities-img-container {
        max-width: 80%; /* Image takes up 80% of the width on small screens */
        margin-top: 20px; /* Adds space above the image */
    }

    .location-img {
        width: 100%; /* Allow the container to take the full width */
    }

    .location-map-img {
        width: 100%; /* Shrinks the image to 80% */
    }

    .location-instructions {
        flex-direction: column; /* Stack map and text vertically */
    }

    .custom-map-container,
    .intructions-text {
        max-width: 100%; /* Makes both map and text take full width on mobile */
        padding-left: 0; /* Remove left padding for the mobile view */
    }

    .intructions-text {
        margin-bottom: 20px; /* Adds some space between text and map */
    }

    #custom-map-img {
        width: 150%;
        margin: 0 auto;
    }

}