/**
 * SuiteSync Compact Accommodation Details Widget Styles
 * Enhanced styling to match the test file design
 */

.compact-accommodation-details {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px 12px 0 0;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.compact-detail-header {
    background: linear-gradient(135deg, #e8d3c1 0%, #dad0c9 100%);
    color: white;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.compact-detail-title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1d1d1d;
}
.compact-detail-title i {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b15f1e;
}

.compact-price-section {
    text-align: right;
}

.compact-price-container {
    position: relative;
    margin-bottom: 4px;
}

.compact-original-price {
    font-size: 0.9em;
    color: rgb(0 0 0 / 70%);
    text-decoration: line-through;
    margin-bottom: 2px;
}

.compact-current-price {
    font-size: 1.8em;
    font-weight: 700;
    line-height: 1;
    color: #0c6a4d;
}

.compact-offer-badge {
    position: absolute;
    top: -18px;
    right: -12px;
    background: #e74c3c;
    color: white;
    font-size: 0.7em;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.compact-per-night {
    font-size: 0.85em;
    opacity: 0.8;
    margin: 0;
    color: #0f0f0f;
}

/* Key Details Section */
.compact-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid #d8d8d8;
}

.compact-detail-item {
    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;
}

.compact-detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.compact-detail-item {
    display: flex;
    align-items: center;
    font-size: 0.85em;
    color: #212020;
}

.compact-detail-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #585858, #ab896e);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1em;
    flex-shrink: 0;
}

.compact-detail-value {
    font-weight: 600;
    color: #2c3e50;
}

.compact-pricing-section {
    padding: 24px;
    background: white;
}

/* Pricing Section Enhanced */
.compact-pricing-section {
    padding: 8px 10px;
}

.compact-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 6px;
    font-size: 0.8em;
}

.compact-pricing-item {
    text-align: center;
    padding: 4px;
}

.compact-pricing-label {
    color: #ffffff;
    font-size: 0.75em;
    margin-bottom: 2px;
}

.compact-pricing-value {
    font-weight: 600;
    color: #ffffff;
}

/* Child and Infant Combined Row for Compact Widget */
.compact-child-infant-row {
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #050505;
}

.compact-child-section,
.compact-infant-section {
    flex: 1;
    text-align: center;
    padding: 0 16px;
}

.compact-child-section:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.3);
}

.compact-child-infant-label {
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 4px;
    opacity: 0.9;
}

.compact-child-infant-price {
    font-size: 1.2em;
    font-weight: 700;
    color: #ab896e;
}

/* Header Section Enhanced */
.compact-title-section {
    flex: 1;
}

.compact-subtitle {
    font-size: 0.9em;
    opacity: 0.85;
    margin: 0;
    color: #141414;
}

.compact-detail-content {
    flex: 1;
}

.compact-detail-label {
    font-size: 0.8em;
    color: #6c757d;
    margin-bottom: 2px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Section Titles */
.compact-section-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 16px 0;
    padding: 15px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 12px;
    background: linear-gradient(135deg, #e8d3c1 0%, #e2ddda 100%);
}

.compact-section-title i {
    color: #b15f1e;
}

/* Included Items Section */
.compact-included-section {
    padding: 24px 0;
    background: #f8f9fa;
}

.compact-included-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2px;
    padding: 0 24px;
}

.compact-included-item {
    background: white;
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9em;
}

.compact-included-item i {
    color: #28a745;
    font-size: 1em;
    flex-shrink: 0;
}

/* Responsive Design for Compact Widget */
@media (max-width: 768px) {
    .compact-child-infant-row {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .compact-child-section,
    .compact-infant-section {
        padding: 8px 16px;
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.3);
    }
    
    .compact-child-section:last-child,
    .compact-infant-section:last-child {
        border-bottom: none;
    }
}
