/*
Theme Name: Amoja Child - Lot Sales
Description: Child theme for Amoja to convert room booking to lot sales
Template: amoja
Version: 1.0.0
*/


/* Import parent theme styles */
@import url("../amoja/style.css");

/* ==========================================================================
   LOT SALES CUSTOMIZATIONS
   ========================================================================== */

/* Lot Inquiry Form Styles */
.lot-inquiry-block {
    margin-bottom: 20px;
}

.lot-inquiry-block label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.lot-inquiry-block input,
.lot-inquiry-block textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.lot-inquiry-block input:focus,
.lot-inquiry-block textarea:focus {
    outline: none;
    border-color: #F7931E;
    box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.1);
}

.lot_inquiry_submit {
    background-color: #F7931E !important;
    color: white !important;
    border: none !important;
    padding: 15px 30px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.lot_inquiry_submit:hover {
    background-color: #e5831a !important;
    transform: translateY(-1px);
}

/* Lot Meta Display Styles */
.lot-meta {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.lot-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.lot-meta-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #F7931E;
}

.lot-meta-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.lot-meta-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.lot-meta-value.price {
    color: #F7931E;
    font-size: 24px;
}

/* Lot Status Styles */
.lot-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lot-status.available {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lot-status.reserved {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.lot-status.sold {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Lot Features List */
.lot-features {
    margin: 20px 0;
}

.lot-features h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.lot-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lot-features-list li {
    background: white;
    margin-bottom: 8px;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 3px solid #F7931E;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.lot-features-list li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
    font-size: 16px;
}

/* Item Block Modifications for Lots */
.babe_items .item-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.item-lot-number,
.item-lot-category,
.item-lot-size,
.item-lot-status {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
}

.item-lot-number span,
.item-lot-category span,
.item-lot-size span {
    font-weight: 600;
    color: #333;
}

.item-lot-status span {
    font-weight: 600;
}

.item-lot-status.available span {
    color: #28a745;
}

.item-lot-status.reserved span {
    color: #ffc107;
}

.item-lot-status.sold span {
    color: #dc3545;
}

/* Price Display Updates */
.item_info_price label {
    display: inline !important;
}

.item_info_price_new {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #F7931E !important;
}

/* Remove booking-specific elements */
.booking-date-block,
.booking-guests-block,
.booking-times-block,
.booking-meeting-point {
    display: none !important;
}

/* Form container improvements */
#booking_form_block,
#lot_inquiry_form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 20px 0;
}

#booking_form_block h5,
#lot_inquiry_form h5 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lot-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .lot-meta-item {
        margin-bottom: 10px;
    }
    
    .babe_items .item-meta {
        grid-template-columns: 1fr;
    }
    
    .lot-inquiry-block input,
    .lot-inquiry-block textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Admin Styles */
.post-type-to_book .wp-list-table .lot-status-available {
    color: #28a745;
    font-weight: bold;
}

.post-type-to_book .wp-list-table .lot-status-reserved {
    color: #ffc107;
    font-weight: bold;
}

.post-type-to_book .wp-list-table .lot-status-sold {
    color: #dc3545;
    font-weight: bold;
}

/* Single Lot Page Improvements */
.single-to_book .lot-hero {
    background: linear-gradient(135deg, #F7931E 0%, #e5831a 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 30px;
}

.single-to_book .lot-hero h1 {
    margin-bottom: 10px;
    font-size: 2.5em;
}

.single-to_book .lot-hero .lot-number {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Success/Error Messages */
.lot-inquiry-message {
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    font-weight: 600;
}

.lot-inquiry-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lot-inquiry-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Hide unnecessary booking elements */
.babe_post_content_title:contains("Book This Room"),
.booking_form_type_single_custom,
.booking_form_type_recurrent_custom {
    display: none !important;
}