/* Villa Details Page Layout - Matching Photo Style */

/* Summary Section */
.villa-summary {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.villa-summary-title {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin: 0;
    line-height: 1.4;
}

/* Description Section */
.villa-description-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e0e0e0;
}

.villa-description-section p {
    font-size: 16px;
    line-height: 1.6;
    color: #484848;
    margin-bottom: 16px;
}

.villa-show-more {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 8px;
}

.villa-show-more:hover {
    color: #000;
}

/* Section Styling */
.villa-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e0e0e0;
}

.villa-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin: 0 0 24px 0;
    line-height: 1.4;
}

/* Bed Arrangements Section */
.bed-arrangements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.bed-arrangement-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border: 1px solid #dddddd;
    border-radius: 12px;
    background: #fff;
}

.bed-icon {
    font-size: 24px;
    line-height: 1;
}

.bed-info {
    flex: 1;
}

.bed-room-label {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.bed-type {
    font-size: 15px;
    color: #717171;
}

/* House Type Section */
.house-types {
    font-size: 16px;
    line-height: 1.6;
    color: #484848;
}

/* Location Section */
.location-features {
    font-size: 16px;
    line-height: 1.6;
    color: #484848;
}

/* Amenities Section */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 20px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #222;
}

.amenity-icon {
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.amenity-name {
    line-height: 1.3;
}

/* Calendar Section Styling */
.villa-calendar-section {
    margin-top: 32px;
}

.villa-calendar-section .mphb-calendar {
    font-family: inherit;
    width: 100%;
}

/* Calendar table styling */
.villa-calendar-section .datepick-month table {
    width: 100%;
    table-layout: fixed;
}

.villa-calendar-section .datepick-month td {
    text-align: center;
    padding: 10px 6px;
    min-width: 60px;
    width: 60px;
}

.villa-calendar-section .datepick-month th {
    min-width: 60px;
    width: 60px;
}

.villa-calendar-section .datepick-month td a {
    display: block;
    text-decoration: none;
    padding: 4px 2px;
}

/* Calendar price styling */
.villa-calendar-section .datepick-month td .mphb-price {
    display: block;
    font-size: 11px;
    color: #484848;
    margin-top: 4px;
    font-weight: 500;
    white-space: nowrap;
}

/* Give calendar container more space */
.villa-calendar-section .datepick {
    min-width: 100%;
}

/* Calendar date selection styling */
.villa-calendar-section .datepick-month td {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.villa-calendar-section .datepick-month td:hover:not(.datepick-other-month):not(.datepick-unselectable) {
    background-color: #f0f0f0;
}

.villa-calendar-section .datepick-month td.selected-range {
    background-color: #d4edda !important;
    border-color: #01bea0;
}

.villa-calendar-section .datepick-month td.selected-range a {
    color: #155724;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .villa-summary-title {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .bed-arrangements-grid {
        grid-template-columns: 1fr;
    }
    
    /* Amenities: 2 columns on mobile */
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 12px;
    }
    
    .amenity-item {
        font-size: 12px;
        gap: 8px;
    }
    
    .amenity-icon {
        font-size: 14px;
        width: 20px;
        height: 20px;
    }
    
    .bed-arrangement-item {
        padding: 16px;
    }
    
    /* Calendar: Reduce width on mobile */
    .villa-calendar-section .datepick-month td {
        min-width: 40px;
        width: 40px;
        padding: 6px 2px;
    }
    
    .villa-calendar-section .datepick-month th {
        min-width: 40px;
        width: 40px;
    }
    
    .villa-calendar-section .datepick-month td .mphb-price {
        font-size: 9px;
        margin-top: 2px;
    }
    
    .villa-calendar-section .datepick-month td a {
        padding: 2px 1px;
        font-size: 14px;
    }
    
    /* Booking card date fields: less width */
    .booking-dates-section {
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: space-between;
    }
    
    .date-input-group {
        flex: 1;
        min-width: 0;
    }
    
    .date-input-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .date-input-group input,
    .date-input-group .date-input,
    .date-input-group input[type="date"],
    #checkin-date,
    #checkout-date {
        width: 100% !important;
        max-width: 100%;
        font-size: 14px !important;
        padding: 10px 12px !important;
        box-sizing: border-box;
        -webkit-appearance: none;
        -moz-appearance: textfield;
        appearance: none;
        min-height: 44px; /* Better touch target for mobile */
    }
    
    /* Ensure date inputs are properly styled on mobile */
    .date-input-group input[type="date"] {
        color: #333;
        background-color: #fff;
    }
    
    /* Show calendar picker on mobile */
    .date-input-group input[type="date"]::-webkit-calendar-picker-indicator {
        display: block !important;
        opacity: 1 !important;
        cursor: pointer;
        width: 24px;
        height: 24px;
        margin-left: 8px;
    }
    
    .date-input-group input[type="date"]::-moz-calendar-picker-indicator {
        display: block !important;
        opacity: 1 !important;
        cursor: pointer;
    }
    
    /* Make booking card content more compact on mobile */
    .accommodation-booking-card .booking-card-content {
        padding: 20px 16px;
    }
    
    .booking-card-header h3 {
        font-size: 20px;
    }
    
    .booking-guests-section {
        display: flex;
        gap: 10px;
    }
    
    .guests-input-group {
        flex: 1;
    }
    
    .guests-input-group label {
        font-size: 13px;
    }
    
    .guests-select {
        font-size: 13px !important;
        padding: 8px 10px !important;
    }
}

/* Main Content Area Adjustments */
.villa-details-content {
    max-width: 100%;
}

.accommodation-main-content {
    padding-right: 40px;
}

@media (max-width: 1200px) {
    .accommodation-main-content {
        padding-right: 20px;
    }
}

@media (max-width: 992px) {
    .accommodation-details-layout {
        display: flex !important;
        flex-direction: column-reverse !important;
    }
    
    .accommodation-main-content {
        padding-right: 0;
        order: 2;
    }
    
    .accommodation-booking-card {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 30px;
        order: 1;
    }
}

