/* --- General Container Styling --- */
.villa-bidding-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #fff;
}

/* --- Villa Display Section --- */
.villa-carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 10px;
}
.carousel-images-of-villa {
    /* Placeholder styling for the carousel area */
    width: 80%;
    height: 200px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
    border: 1px dashed #ccc;
}
.carousel-prev, .carousel-next {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.2em;
    margin: 0 5px;
}

/* --- Bidding Form Styling --- */
#vbbs-bid-form .input-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 2fr; /* LBL-Input LBL-Input */
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}
#vbbs-bid-form label {
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}
#vbbs-bid-form input[type="text"],
#vbbs-bid-form input[type="number"],
#vbbs-bid-form input[type="tel"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding in the element's total width and height */
}
#vbbs-submit-bid {
    /* This button spans across the remaining columns if the grid is designed right,
       but here it occupies the fourth column of the first row */
    background-color: #4CAF50; /* Green */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    grid-column: 5 / 5; /* This attempts to place it correctly in the grid if you adjust the template */
    /* Let's simplify and make the button span across 2 columns in the second row for better layout */
}

/* Adjusting the grid layout for the button to make sense */
#vbbs-bid-form {
    display: grid;
    gap: 15px;
}
#vbbs-bid-form .input-row:first-child {
    /* People and Bid Amount Row */
    grid-template-columns: 1fr 2fr 1fr 2fr; 
}
#vbbs-bid-form .input-row:last-child {
    /* Name and Mobile Row */
    grid-template-columns: 1fr 2fr 1fr 2fr 1fr 1fr; /* Add space for the button */
}
#vbbs-submit-bid {
    grid-column: 5 / 7; /* Spans two columns at the end of the second row */
    margin-left: 15px;
}

/* --- Message Display --- */
#vbbs-message {
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 15px;
}
#vbbs-message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
#vbbs-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}


/* --- Bid Display Section --- */
.bid-rows-container {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    background-color: #fafafa;
}
.bid-row {
    margin-bottom: 15px;
    padding-bottom: 15px;
}
.bid-row h5 {
    font-size: 1.1em;
    color: #0073aa;
    margin-top: 0;
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
.bid-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #555;
}
.bid-details p {
    margin: 5px 10px 5px 0;
}
.bid-note {
    font-style: italic;
    color: #888;
    font-size: 0.8em;
    margin-top: 5px;
}

/* Hide the <hr> used as a separator between bids */
.bid-row hr {
    border: none;
    border-top: 1px dashed #ccc;
    margin-top: 15px;
}
.bid-row:last-child hr {
    display: none; /* Hide the separator on the last bid row */
}

/* Mobile responsiveness (simple stack) */
@media (max-width: 600px) {
    #vbbs-bid-form .input-row:first-child,
    #vbbs-bid-form .input-row:last-child {
        /* Collapse to a single column layout */
        grid-template-columns: 1fr;
    }
    #vbbs-bid-form label, 
    #vbbs-bid-form input,
    #vbbs-submit-bid {
        grid-column: 1 / -1; /* Span full width */
        margin-left: 0;
    }
    .bid-details {
        flex-direction: column;
    }
}

.bclas{
    margin: 0 auto;
    padding-top: 20px;
}
.bld{font-weight: bold;}



/* --- Adjust Bid Details Layout for Button --- */
.bid-details {
    display: flex;
    /* Allow space for the button at the end */
    justify-content: space-between; 
    align-items: center; /* Vertically align items */
    font-size: 0.9em;
    color: #555;
    /* Ensure the button gets adequate space without wrapping the text */
    flex-wrap: wrap; 
}
.bid-details p {
    /* Give each detail paragraph a minimum width to keep it neat */
    min-width: 150px; 
    margin: 3px 15px 3px 0;
}

/* --- Pay and Reserve Button Styling --- */
.pay-reserve-container {
    /* Push the button to the right */
    margin-left: auto; 
}

.pay-reserve-btn {
    /* Use the Airbnb-inspired red for action buttons */
    background-color: var(--airbnb-red, #FF385C);
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    transition: background-color 0.3s, opacity 0.3s;
    box-shadow: 0 2px 5px rgba(255, 56, 92, 0.3);
    white-space: nowrap; /* Prevent button text from wrapping */
}

.pay-reserve-btn:hover {
    background-color: #D9002C; /* Slightly darker red on hover */
}

/* --- Responsive Adjustments for Bid Details --- */
@media (max-width: 768px) {
    .bid-details {
        flex-direction: column;
        align-items: flex-start; /* Stack details on mobile */
    }
    .bid-details p {
        width: 100%; /* Full width for text details */
        margin: 5px 0;
    }
    .pay-reserve-container {
        width: 100%; /* Full width for the button container */
        margin-left: 0;
        margin-top: 15px; /* Space above button */
    }
    .pay-reserve-btn {
        width: 100%; /* Button takes full width of the container */
    }
}

/* --- Modal Background and Layout --- */
.vbbs-modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 9999; /* High Z-index to cover everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6); /* Black background with opacity */
}

/* Modal Content Box (Airbnb-style card) */
.vbbs-modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 30px;
    border: 1px solid var(--airbnb-light-gray);
    width: 90%; 
    max-width: 500px; /* Max width for a clean look */
    border-radius: 12px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-family: var(--font-family);
}

/* Close Button */
.vbbs-close-btn {
    color: var(--airbnb-black);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}
.vbbs-close-btn:hover,
.vbbs-close-btn:focus {
    color: var(--airbnb-red);
    text-decoration: none;
}

/* Form Styling within Modal */
.vbbs-modal-content h2 {
    border-bottom: 1px solid var(--airbnb-light-gray);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.vbbs-modal-content .input-group {
    margin-bottom: 15px;
}
.vbbs-modal-content label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}
.vbbs-modal-content input[type="text"],
.vbbs-modal-content input[type="tel"],
.vbbs-modal-content input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--airbnb-light-gray);
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
}

/* Custom Buttons (Primary and Default) */
.vbbs-button {
    background-color: var(--airbnb-red); 
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s;
}
.vbbs-button:hover {
    background-color: #D9002C; 
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    margin: 15px auto;
    background-color: var(--airbnb-bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--airbnb-light-gray);
    border-radius: 8px;
}
.small-print {
    font-size: 0.8em;
    color: #888;
    margin-top: 10px;
}

/* Message Status within Modal */
#vbbs-auth-message {
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    margin-top: 10px;
}
#vbbs-auth-message.error {
    background-color: #FEEEEE;
    color: var(--airbnb-red);
}
#vbbs-auth-message.success {
    background-color: #E6F7EF;
    color: #188038;
}

/* Responsive adjustments for modal */
@media (max-width: 600px) {
    .vbbs-modal-content {
        margin: 5% auto;
        padding: 20px;
    }
}

/* --- UPI Apps Container Styling --- */
#vbbs-upi-apps-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for buttons */
    gap: 10px;
    margin-top: 20px;
}
.pay-prompt {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1em;
    font-weight: 500;
    color: var(--airbnb-black);
    margin-bottom: 10px;
}
.vbbs-upi-app-btn {
    display: block;
    text-align: center;
    padding: 12px 5px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s, opacity 0.2s;
    font-size: 0.9em;
    border: 1px solid var(--airbnb-light-gray);
}
.vbbs-upi-app-btn:hover {
    opacity: 0.9;
}

/* Specific App Styling (Optional but helpful for visual confirmation) */
.vbbs-upi-gpay {
    background-color: #5f6368; 
    color: white;
}
.vbbs-upi-phonepe {
    background-color: #6739B7; 
    color: white;
}
.vbbs-upi-paytm {
    background-color: #00B9F1; 
    color: white;
}
.vbbs-upi-generic {
    background-color: #f0f0f0; 
    color: var(--airbnb-black);
}

/* Mobile: Stack buttons vertically */
@media (max-width: 600px) {
    #vbbs-upi-apps-container {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
}

.vbbs-button, .vbbs-button {
    background-color: #D9002C;
}