/**
 * Enhanced Accommodation Details Widget Styles
 * Comprehensive and organized styling for accommodation information
 */

.enhanced-accommodation-details {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 24px;
}

/* Header Section */
.enhanced-detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.enhanced-title-section {
    flex: 1;
}

.enhanced-detail-title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.enhanced-detail-title i {
    font-size: 1.1em;
    opacity: 0.9;
}

.enhanced-subtitle {
    font-size: 0.9em;
    opacity: 0.85;
    margin: 0;
}

.enhanced-price-section {
    text-align: right;
}

.enhanced-price-container {
    position: relative;
    margin-bottom: 4px;
}

.enhanced-original-price {
    font-size: 0.9em;
    color: rgba(255,255,255,0.7);
    text-decoration: line-through;
    margin-bottom: 2px;
}

.enhanced-current-price {
    font-size: 1.8em;
    font-weight: 700;
    line-height: 1;
}

.enhanced-offer-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #e74c3c;
    color: white;
    font-size: 0.7em;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    transform: rotate(15deg);
}

.enhanced-per-night {
    font-size: 0.85em;
    opacity: 0.8;
    margin: 0;
}

/* Section Titles */
.enhanced-section-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 16px 0;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 12px;
}

.enhanced-section-title i {
    color: #667eea;
}

/* Key Details Section */
.enhanced-key-details {
    padding: 24px 0;
    background: #f8f9fa;
}

.enhanced-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    padding: 0 24px;
}

.enhanced-detail-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.enhanced-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.enhanced-card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1em;
    flex-shrink: 0;
}

.enhanced-card-content {
    flex: 1;
}

.enhanced-card-label {
    font-size: 0.8em;
    color: #6c757d;
    margin-bottom: 2px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.enhanced-card-value {
    font-size: 1em;
    font-weight: 600;
    color: #2c3e50;
}

/* Pricing Section */
.enhanced-pricing-section {
    padding: 24px 0;
    background: white;
}

.enhanced-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 0 24px;
}

/* Child and Infant Combined Row */
.enhanced-child-infant-row {
    background: #6c757d;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    grid-column: 1 / -1; /* Span full width */
    margin-bottom: 8px;
}

.enhanced-child-section,
.enhanced-infant-section {
    flex: 1;
    text-align: center;
    padding: 0 16px;
}

.enhanced-child-section:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.3);
}

.enhanced-child-infant-label {
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 4px;
    opacity: 0.9;
}

.enhanced-child-infant-price {
    font-size: 1.2em;
    font-weight: 700;
    color: white;
}

/* Extra Person Pricing */
.enhanced-extra-person {
    background: #f8f9fa;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    position: relative;
}

.enhanced-extra-person::before {
    content: "Extra";
    position: absolute;
    top: -8px;
    left: 16px;
    background: #007bff;
    color: white;
    font-size: 0.7em;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.enhanced-extra-person .enhanced-pricing-label {
    color: #007bff;
    font-weight: 600;
    margin-top: 8px;
}

.enhanced-extra-person .enhanced-pricing-value {
    color: #007bff;
    font-size: 1.3em;
}

.enhanced-pricing-note {
    display: block;
    font-size: 0.7em;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 4px;
}

/* Included Items Section */
.enhanced-included-section {
    padding: 24px 0;
    background: #f8f9fa;
}

.enhanced-included-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    padding: 0 24px;
}

.enhanced-included-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9em;
}

.enhanced-included-item i {
    color: #28a745;
    font-size: 1em;
    flex-shrink: 0;
}

/* Features Section */
.enhanced-features-section {
    padding: 24px;
    background: white;
}

.enhanced-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.enhanced-feature-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9em;
}

.enhanced-feature-item i {
    color: #667eea;
    font-size: 1.2em;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .enhanced-detail-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .enhanced-price-section {
        text-align: center;
    }
    
    .enhanced-details-grid {
        grid-template-columns: 1fr;
    }
    
    .enhanced-pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .enhanced-child-infant-row {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .enhanced-child-section,
    .enhanced-infant-section {
        padding: 8px 16px;
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.3);
    }
    
    .enhanced-child-section:last-child,
    .enhanced-infant-section:last-child {
        border-bottom: none;
    }
    
    .enhanced-included-items {
        grid-template-columns: 1fr;
    }
    
    .enhanced-features-grid {
        grid-template-columns: 1fr;
    }
    
    .enhanced-detail-card {
        padding: 12px;
    }
    
    .enhanced-card-icon {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    
    .enhanced-accommodation-details {
        margin: 0 -15px 24px -15px;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .enhanced-accommodation-details {
        margin: 0 -20px 24px -20px;
    }
    
    .enhanced-detail-header {
        padding: 20px;
    }
    
    .enhanced-section-title {
        padding: 0 20px;
        font-size: 1em;
    }
    
    .enhanced-details-grid,
    .enhanced-pricing-grid,
    .enhanced-included-items {
        padding: 0 20px;
    }
    
    .enhanced-features-section {
        padding: 20px;
    }
}
