:root {
    --foreground: #09090b;
    --background: #ffffff;
    --card: #ffffff;
    --card-foreground: #09090b;
    --primary: #18181b; /* Dark gray/black for primary actions */
    --primary-foreground: #fafafa;
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    --border: #e4e4e7;
    --input: #e4e4e7;
    --ring: #a1a1aa; /* Adjusted for focus, can be primary color too */
    --radius: 0.375rem; /* Equivalent to Tailwind's rounded-md */

    --green-50: #f0fdf4;
    --green-200: #bbf7d0;
    --green-600: #1bc259;
    --green-700: #16a34a;
    --red-50: #fef2f2;
    --red-200: #fecaca;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --yellow-50: #fffbeb;
    --yellow-200: #fef08a;
    --yellow-600: #ca8a04;
    --yellow-700: #a16207;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.custom-container {
    max-width: 64rem; /* max-w-4xl */
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 0.5rem; /* py-8, adjusted horizontal padding */
}
#suggestedOptionsContainer {
    margin-top: 1rem;
}
/* Space items in container */
.container > *:not(:last-child) {
    margin-bottom: 1.5rem; /* space-y-6 */
}
#messageAreaWrapper{
    position: relative;
    margin-top: 1rem;
    z-index: 0;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s ease-in-out;
    @starting-style {
        transform: translateY(-150%);
        opacity: 0;
    }
}
#currentReservationsArea{
margin-top: 0.5rem;
 transform: translateY(0);
 opacity: 1;
    transition: transform 0.5s ease-in-out;
    @starting-style {
        transform: translateY(150%);
        opacity: 0;
    }
}
/* Override for specific wrappers if they are hidden */
#messageAreaWrapper:not([style*="display: none"]) + *,
#suggestedOptionsContainerWrapper:not([style*="display: none"]) + * {
    margin-top: 1.5rem;
}
#suggestedOptionsContainerWrapper{
   animation-duration: 0.5s;
   transition: all 0.5s ease-in-out;
   opacity: 1;
   @starting-style {
    opacity: 0;
   }
}

.card {
    position: relative;
    z-index: 1;
    background-color: var(--card);
    color: var(--card-foreground);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); /* Tailwind shadow-sm */
}

.card-header {
    padding: 1rem 1.5rem; /* p-4 md:p-6, using p-6 from CardHeader */
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    flex-wrap: wrap;
}
#price_info {
    position: absolute;
    top: -7px;
    right:-30px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    background: transparent;
    border:none;
}
.popover-box{
    position:fixed;  
    border-radius: 10px;
    padding: 2rem;
    width:max-content;
    padding-top: 1.5rem;
    border:none;
    background-color: white;
    opacity: 1;
    overflow-x: hidden;
    transition: opacity 0.2s ease-in-out;
    @starting-style {
        opacity: 0;
    }
}
#price_info:after {
    content: "";
    border: 1px solid black;
    border-radius: 100%;
    width: 20px;
    height: 20px;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: box-shadow 0.1s ease-in-out;
    box-shadow :2px 2px 5px -3px #00000094,inset 0 0 0 , inset -2px -2px 2px #c7c7c794;
    user-select: none;
}
#price_info:hover:after {
box-shadow: 0 0 0 , inset 2px 2px 2px -2px #00000087, inset -2px -2px 2px #c7c7c7b8;

}
.popover-close-button{
    position:absolute;
    top:0;
    right:0;
    border:none;
    background:transparent;
    cursor:pointer;
    font-size: 1.5rem;
    padding:5px 10px;
    transform: rotate(45deg);
}
.popover-box::backdrop{
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
    @starting-style {
        opacity: 0;
    }
}
.popover-box h3{
text-align: center;
font-size: 1.5rem;
}
.popover-box ul{
    list-style: none;
    padding: 0;
    margin: 0;
}
.popover-box ul li {
font-weight: semi-bold;

}

.card-header:last-child { /* If no content/footer */
    border-bottom: none;
}


    .card-title {
        font-size: 1.25rem; /* text-xl or text-2xl, CardTitle is usually larger */
        font-weight: 600;
        line-height: 1.2;
        margin:0;
    }
.card-subtitle {
    font-size: 1rem; /* text-xl or text-2xl, CardTitle is usually larger */
    font-weight: 600;
    line-height: 1.2;
    margin:0;
}
.card-header .card-title + .card-description {
    margin-top: 0.25rem;
}


.card-description {
    font-size: 0.875rem; /* text-sm */
    color: var(--muted-foreground);
    margin:0;
}

.card-content {
    padding: 1.5rem; /* p-6 from CardContent */
}
.card-content.input-section-content > *:not(:last-child) {
     margin-bottom: 1rem; /* space-y-4 */
}
.card-content.options-list > *:not(:last-child) {
    margin-bottom: 0.75rem; /* space-y-3 */
}


.card-footer {
    padding: 1rem 1.5rem; /* p-4 md:p-6 */
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
}
.card-footer:first-child { /* If no header/content */
    border-top: none;
}


.input-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem; /* gap-4 */
}

.label {
    display: flex; /* For icon alignment */
    align-items: center;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    margin-bottom: 0.5rem; /* Default spacing for labels */
    color: var(--foreground);
}

.label .icon {
    margin-right: 0.25rem; /* mr-1 */
    width: 1rem; /* w-4 */
    height: 1rem; /* h-4 */
}

.input {
    display: flex;
    height: 2.5rem; /* h-10 */
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--input);
    background-color: var(--background);
    padding: 0.5rem 0.75rem; /* px-3 py-2 */
    font-size: 0.875rem; /* text-sm */
    box-sizing: border-box;
}

.input:focus {
    outline: none;
    border-color: var(--ring); /* Simplified focus */
    box-shadow: 0 0 0 2px rgba(var(--ring-rgb, 161, 161, 170), 0.5); /* Ring effect */
}

.input.bg-muted {
    background-color: var(--muted);
    cursor: default;
}

.input-with-max {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.max-beds-info {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    padding: 0.5rem 1rem; /* h-10 px-4 py-2 */
    height: 2.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out;
    width: 100%; /* w-full */
}

.button-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}
.button-confirm{
    background-color: var(--green-700);
    color: var(--primary-foreground);
}
.button-confirm:hover{
    background-color: var(--green-600);
}

.button-primary:hover {
    background-color: rgba(24, 24, 27, 0.9); /* primary/90 */
}

.button:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.message-card {
    padding: 0; /* CardContent will handle padding */
}
.message-card.bg-green-50 { background-color: var(--green-50); border-color: var(--green-200); }
.message-card.bg-red-50 { background-color: var(--red-50); border-color: var(--red-200); }
.message-card.bg-yellow-50 { background-color: var(--yellow-50); border-color: var(--yellow-200); }

.message-content {
    display: flex;
    align-items: center;
    padding: 1rem; /* p-4 */
}
.message-content .icon {
    margin-right: 0.5rem; /* mr-2 */
    width: 1.25rem; /* h-5 w-5 */
    height: 1.25rem;
}
.message-content .text-green-600 { color: var(--green-600); }
.message-content .text-red-600 { color: var(--red-600); }
.message-content .text-yellow-600 { color: var(--yellow-600); }

#messageText.text-green-700 { color: var(--green-700); }
#messageText.text-red-700 { color: var(--red-700); }
#messageText.text-yellow-700 { color: var(--yellow-700); }


.option-card { /* This is a .card used for options */
    padding: 1rem; /* p-4 */
    cursor: pointer;
    transition: box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.option-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); /* shadow-md */
}
.option-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary), 0 8px 10px -5px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05); /* ring-2 ring-primary shadow-lg */
}
.option-card .option-description {
    font-weight: 600; /* font-semibold */
}
.option-card .option-notes,
.option-card .option-details {
    font-size: 0.875rem; /* text-sm */
    color: var(--muted-foreground);
    margin-top: 0.25rem; /* mt-1 */
}

/* Current Reservations Styles */
.current-reservations-card {
    background-color: var(--green-50);
    border-color: var(--green-200);
}

.reservations-list {
    margin-bottom: 1rem;
}

.reservation-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.reservation-item:last-child {
    margin-bottom: 0;
}

.reservation-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    color: var(--green-600);
}

.reservation-details {
    flex: 1;
}

.reservation-details .room-name {
    font-weight: 600;
    color: var(--foreground);
}

.reservation-details .gender-info {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.125rem;
}

.remaining-info {
    padding: 0.75rem;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.remaining-info .remaining-count {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--green-700);
}

.remaining-info .remaining-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}


.separator {
    border: 0;
    height: 1px;
    background-color: var(--border);
    margin: 1.5rem 0; /* my-6 */
}

.availabilities-grid {
    display: grid;
    grid-template-columns: 1fr; /* sm:grid-cols-2 */
    gap: 1rem; /* gap-4 */
}

.availability-item-card { /* This is a .card used for availability items */
    padding: 0.75rem; /* p-3 */
}
.availability-item-content {
    display: flex;
    align-items: center;
}
.availability-item-content .icon {
    width: 1.5rem; /* h-6 w-6 */
    height: 1.5rem;
    color: var(--primary);
    margin-right: 0.75rem; /* space-x-3 */
}
.availability-item-text .room-name {
    font-weight: 500; /* font-medium */
}
.availability-item-text .room-details,
.availability-item-text .room-assignment {
    font-size: 0.875rem; /* text-sm */
    color: var(--muted-foreground);
}
.availability-item-text .room-assignment {
    font-size: 0.75rem; /* text-xs */
}
.availability-item-text .room-details .beds-count {
    font-weight: 700; /* font-bold */
}
.whatsapp-button{
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: orange;
    display: block;
    margin-inline: auto;
    margin-bottom:1rem;
    color: white;
    cursor: pointer;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    margin-top: 1rem; /* mt-4 */
}
.confirmReservationButton{
    background-color: #15803d;
}


/* Responsive Adjustments */
@media (min-width: 768px) { /* md breakpoint */
    .container {
        padding: 2rem; /* py-8 from original main, md:p-6 from component */
    }
    .input-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .button { /* For buttons that are md:w-auto */
        width: auto;
    }
    .input-section-content .button { /* Specifically for the search button */
         width: auto;
    }
    .card-footer .button { /* Specifically for the confirm button */
        width: auto;
    }
}

@media (min-width: 640px) { /* sm breakpoint */
    .availabilities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}