/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
}

.container {
    max-width: 1000px; /* Increased from 800px to make the page wider */
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Header styles */
header {
    text-align: center;
    padding: 20px 0;
}



h1 {
    font-size: 28px;
    color: #0056b3;
}

/* Form and interaction styles */
/* Ensures the form group content is centered */
.form-group {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center-align children */
    margin: 15px auto;
    text-align: center; /* Ensures text is centered */
    width: 100%; /* Take full width to respect the center alignment */
}

/* Adjusts label styling to ensure they are centered above inputs */
.form-group label {
    width: auto; /* Allows the label to grow as needed */
    margin-bottom: 5px; /* Space between label and input */
    font-size: 16px;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Style adjustments for inputs to maintain consistent appearance */
.form-group input[type="date"],
.form-group input[type="number"] {
    width: calc(100% - 30px); /* Adjust width if necessary to account for padding */
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px; /* Provides space below each input */
}


/* Ensure any additional elements within .form-group are centered */
.form-group > * {
    align-self: center; /* Center-align all direct children of .form-group */
}


label {
    display: flex;
    align-items: center;
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

input[type="date"],
input[type="number"] {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

#calculateButton{
    display: block; /* Use block display to fill the container width */
    width: 100%; /* Adjusting for padding */;
    margin: auto; /* Center the button in its container */
    padding: 15px; /* Adjust padding as needed */
    font-size: 18px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    margin-bottom: 20px;
}



#calculateTotalPrice {
    display: block; /* Use block display to fill the container width */
    width: calc(100% - 30px); /* Adjusting for padding */;
    margin: auto; /* Center the button in its container */
    padding: 15px; /* Adjust padding as needed */
    font-size: 18px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

@media screen and (max-width: 768px) {
    #calculateTotalPrice {
        padding: 5px; /* Reduced padding on smaller screens */
        width: calc(100% - 30px); /* Adjust width to ensure it doesn't exceed the parent's width */
    }
}

#calculateButton:hover, #calculateTotalPrice:hover {
    background-color: #0056b3;
}

/* Day divider for clarity */
.day-divider {
    border: 0;
    height: 3px;
    background-color: #007BFF;
    margin: 25px 0;
}

/* Floating container for result display */
.floating-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column; /* Align children vertically */
    align-items: center; /* Center children horizontally */
    padding: 10px 0; /* Adjust as necessary */
}



/* Style for the result display */
.result-display {
    width: calc(100% - 30px); /* Full width adjusted for padding */
    margin: 5px 15px; /* Consistent with button spacing */
    padding: 12px 15px;
    background-color: #5a6268; /* Matching button color */
    color: #ffffff;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    text-align: center; /* Ensure text is centered */
}

@media screen and (max-width: 768px) {
    .result-display {
        padding: 5px; /* Reduced padding on smaller screens */
        width: calc(100% - 30px); /* Adjust width to ensure it doesn't exceed the parent's width */
    }
}




.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px; /* Keep as is for mobile friendliness */
    border-radius: 8px;
    margin-bottom: 20px; /* Adds space between each card */
    width: 100%; /* Ensures card takes full width */
}

/* Ensure images don't overflow their container */
.option-card img {
    max-width: 100%; /* Max width is 100% of the parent */
    height: auto; /* Height is automatic to maintain aspect ratio */
    border-radius: 8px; /* Keep existing border radius */
}


/* Styles for tour detail layout */
.tour-detail-row {
    margin-bottom: 15px; /* Spacing between tour detail rows */
}

.tour-name-duration-min {
    display: block; /* Ensures the name, duration, and min are on their own line */
    text-align: center; /* Centers the content */
    margin-bottom: 5px; /* Spacing between this section and the price selection */
}

.tour-name {
    font-size: 18px;
    font-weight: bold;
    text-align: center; /* Center tour name */
    margin-bottom: 5px; /* Space below tour name */
}

.tour-duration-min {
    display: flex;
    justify-content: space-around; /* Even space between duration and min */
    margin-bottom: 5px; /* Space below the duration and min information */
}

.tour-duration-min span {
    margin-right: 5px; /* If you want space between icons and text */
}

.tour-price-selection {
    display: flex;
    justify-content: center; /* Center the checkbox and label horizontally */
    align-items: center; /* Center the checkbox and label vertically */
    margin-top: 5px; /* Optional: space above the price selection */
}

.tour-price-selection label {
    display: flex;
    justify-content: center; /* Center the checkbox and label horizontally */
    align-items: center; /* Center the checkbox and label vertically */
    width: 100%; /* Take full width of container for proper centering */
}

.tour-price-selection input[type="checkbox"] {
    margin-right: 10px; /* Space between the checkbox and the label text */
}


/* Responsive adjustments */
@media screen and (max-width: 767px) {
    .tour-detail-row,
    .tour-name-duration-min,
    .tour-price-selection {
        margin-bottom: 10px; /* Increased spacing for better touch targets */
    }
}


@media screen and (max-width: 767px) {
    .option-card {
        padding: 10px; /* Reduced padding on smaller screens */
    }
}



/* Preventing content from overflowing */
.option-card, .option-details, .option-select-area {
    overflow: hidden; /* Hide any content that overflows */
    word-wrap: break-word; /* Prevent long words from causing overflow */
}



.option-details, .option-select-area {
    text-align: center;
    width: 100%;
}

.option-select-area {
    background-color: #f2f2f2; /* Light gray background for contrast */
    padding: 10px;
    border-radius: 5px;
    align-items: center; /* Vertically centers the content */
    justify-content: start; /* Aligns content to the start */
    display: block; /* Ensure that select area is block-level */
    width: 100%; /* Select area should take the full width */
}

.option-select-area input[type="checkbox"],
.option-select-area input[type="radio"] {
    /* Custom appearance */
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    height: 20px; /* Adjust size as needed */
    width: 20px; /* Adjust size as needed */
    border: 2px solid #007BFF; /* Border color */
    border-radius: 4px; /* Adjust for radio buttons as needed */
    margin-right: 10px; /* Space between the checkbox/radio and the text */
    cursor: pointer;
}

.option-select-area input[type="radio"] {
    border-radius: 50%; /* Fully round for radio buttons */
}

.price-duration {
    font-size: 16px; /* Adjust size as needed */
    font-weight: bold; /* Make it stand out */
}

/* Ensures larger touch targets for mobile */
@media screen and (max-width: 600px) {
    .option-select-area input[type="checkbox"],
    .option-select-area input[type="radio"] {
        height: 25px; /* Larger for touch */
        width: 25px; /* Larger for touch */
    }
}

/* Custom styles for larger checkboxes and radio buttons for mobile use */
input[type="checkbox"], input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    height: 25px;
    width: 25px;
    border: 2px solid #007BFF;
    border-radius: 4px; /* Circular edges for radio */
    cursor: pointer;
    margin-right: 8px;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked, input[type="radio"]:checked {
    background-color: #007BFF;
}

input[type="checkbox"]:focus, input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}

@media screen and (max-width: 600px) {
    input[type="checkbox"], input[type="radio"] {
        height: 30px;
        width: 30px;
    }
}


.details-container {
    margin: 10px 0; /* Add space above and below the details container */
    display: flex;
    align-items: center; /* Align items vertically */
    justify-content: center; /* Center items horizontally */
}

.duration i,
.min-people i {
    margin-right: 5px; /* Adjust the margin to add space between the icon and text */
}

.duration, 
.min-people {
    display: inline-flex; /* Display as inline flex to keep them in one line */
    align-items: center; /* Align items vertically */
    margin-right: 10px; /* Adjust spacing between the two divs */
}










/* CSS for +/- icons on number input fields */
.input-group {
    display: flex; /* Use flexbox for layout */
    justify-content: center; /* Center the items if necessary */
    position: relative; /* Keeps positioned children relative to this container */
    width: calc(100% - 30px); /* Full width accounting for padding; adjust as necessary */
    margin: auto; /* Center align the input group if it's not full width */
}



.input-group .icon {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 10px;
    font-size: 1.5em;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
}

.input-group .icon:hover {
    background-color: #0056b3;
}

.input-group .icon.left {
    left: 0;
}

.input-group .icon.right {
    right: 0;
}

.input-group input[type="number"] {
    padding-left: 45px;
    padding-right: 45px;
    text-align: center;
    -moz-appearance: textfield;
    appearance: none;
}

.input-group input[type="number"]::-webkit-inner-spin-button,
.input-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}




.options-heading {
    text-align: center;
    font-size: 22px;
    color: #007BFF; /* Adjust the color to fit your design */
    margin-bottom: 30px; /* Adds more space below the headings */
    font-weight: normal; /* Less bold */
    padding: 10px; /* Adds some padding around the text */
    border-radius: 5px; /* Slightly rounded corners for a soft look */
    background-color: #f2f2f2; /* Adjusted back to light grey for contrast */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Soft shadow for depth */
    display: block; /* Ensure it's block-level for proper centering */
    width: 100%; /* Ensure it takes full width for center alignment */
}







/* Styling specifically for date groups */
.date-group {
    display: flex; /* Enables flexbox layout */
    justify-content: space-between; /* Distributes space between children */
    width: 100%; /* Ensures the group takes full width of its container */
}

.date-field {
    flex: 1; /* Allows each field to grow and fill the space equally */
    margin-right: 10px; /* Adds some space between the date fields */
}

.date-field:last-child {
    margin-right: 0; /* Removes the margin from the last child to avoid unnecessary spacing */
}

/* Ensures inputs within date fields take available space */
.date-group input[type="date"] {
    width: 100%; /* Full width to fill their parent container */
    padding: 15px; /* Consistent padding */
    border: 1px solid #ccc; /* Consistent border */
    border-radius: 5px; /* Consistent border-radius */
    -webkit-appearance: none; /* Removes default styling for Safari */
    appearance: none; /* Standardizes appearance across browsers */
}

@media screen and (max-width: 768px) {
    /* Adjusts layout on smaller screens if needed */
    .date-group {
        flex-direction: column; /* Stacks the date fields vertically */
    }
    .date-field {
        margin-right: 0; /* Resets margin-right as it's no longer needed in a column layout */
        margin-bottom: 10px; /* Adds space between stacked fields */
    }
    .date-field:last-child {
        margin-bottom: 0; /* Removes bottom margin from the last child to avoid extra space */
    }
}




.action-button, .print-button {
    display: block;
    width: calc(100% - 30px); /* Adjusting for padding */
    margin: 5px 15px; /* Adjust spacing around buttons */
    padding: 15px;
    font-size: 18px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

@media screen and (max-width: 768px) {
    .print-button {
        padding: 5px; /* Reduced padding on smaller screens */
        width: calc(100% - 30px); /* Adjust width to ensure it doesn't exceed the parent's width */
    }
}

@media screen and (max-width: 768px) {
    .action-button {
        padding: 5px; /* Reduced padding on smaller screens */
        width: calc(100% - 30px); /* Adjust width to ensure it doesn't exceed the parent's width */
    }
}

.action-button {
    background-color: #007BFF; /* Original button color */
}

.action-button:hover {
    background-color: #0056b3;
}

.print-button {
    background-color: #00a925; /* Grey color */
}

.print-button:hover {
    background-color: #006b17; /* Darker grey */
}

.print-button1 {
    background-color: #6c757d; /* Grey color */
}

.print-button1:hover {
    background-color: #5a6268; /* Darker grey */
}


.form-row {
    display: flex;
    justify-content: space-between; /* This will place them on the left and right */
}

/* Dropdown Container Styling */
.dropdown-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
    background-color: #f9f9f9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Dropdown Header Styling */
.dropdown-header {
    background-color: #007bff;
    color: white;
    padding: 20px;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    justify-content: center;  /* Center text horizontally */
    align-items: center;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #0056b3;
}

/* Icon for Dropdown - Consistent with Old One */
.dropdown-icon {
    margin-left: 10px;
    font-size: 20px;
    transition: transform 0.3s;
}

/* Dropdown Content Styling */
.dropdown-content {
    display: none;
    padding: 25px;
    background-color: #ffffff;
    text-align: center;
    border-top: 1px solid #ddd;
}


/* Inner Description Text */
.dropdown-content h4 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #555;
    font-weight: normal;
}


.dropdown-header.open .dropdown-icon {
    transform: rotate(180deg);
}

.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.option-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    width: calc(33% - 20px);
    text-align: center;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.option-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.extra-space-footer {
    height: 250px;  /* Increase height to add more space */
    width: 100%;
    background-color: transparent;
}

h3 {
    text-align: center;
    font-size: 20px;  /* Match options-heading size */
    
    
    font-weight: normal;  /* Less bold */
    
    
    
    
    display: block;
    width: 100%;
}

/* Mobile-Friendly Tour Card Layout */
@media screen and (max-width: 768px) {
    .options-grid {
        display: flex;
        flex-direction: column;  /* Stack items vertically */
        gap: 20px;  /* Maintain spacing between items */
    }

    .option-card {
        width: 100%;  /* Full width to avoid side-by-side */
        max-width: 400px;  /* Optional: Limit the max width */
        margin: 0 auto;  /* Center the card horizontally */
    }

    .option-card img {
        height: auto;  /* Ensure images resize correctly */
    }
}
