/* Styles for DPE Note Display */

/* Main container styles */
.dpe-container {
    margin-top: 20px;
   /* border-radius: 10px;
    background-color: #f8f4f0;*/
    padding: 20px;
    /*box-shadow: 0 3px 10px rgba(0,0,0,0.1);*/
}

/* Property info section */
.property-info {
    display: flex;
    flex-wrap: wrap;
    border-radius: 4px;
    background-color: #ffffff;
    margin-bottom: 20px;
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.125);
}

.property-info-header {
    width: 100%;
    display: flex;
    background-color: rgba(0,0,0,.125);
    color: #495057;
    border-radius: 3px 3px 0 0;
    font-weight: 500;
}

.property-info-content {
    width: 100%;
    display: flex;
    padding: 15px 0;
}

.property-info-item {
    width: 33%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.property-info-label {
    font-weight: 600;
}

.property-info-value {
    color: #212529;
    text-align: left;
}

/* DPE Rating section */

.dpe-ratings {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.errorAdeme {
    text-align: center;
    color: darkred;
    line-height: 1.5em;
    font-weight: 600;
    margin-top: 20px;
    padding: 10px;
    background-color: #f8d7da;
    border : 1px solid #f5c6cb;
    border-radius: 10px;
    width: 80%;
}

.dpe-rating {
    width: 47%;
    display: flex;
    flex-wrap: wrap;
    border-radius: 4px;
    background-color: #ffffff;
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.125);
}

.dpe-rating-header {
    width: 100%;
    border-radius: 3px 3px 0 0;
    background-color: rgba(0,0,0,.125);
    color: #495057;
    padding: 12px 15px;
    font-weight: 600;
    text-align: center;
}

.dpe-rating-content {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
}

.center {
    text-align: center;
}

.dpe-rating-item {
    display: flex;
    flex-direction: column;
    width: 33%;
    align-items: center;
    padding: 10px;
    height: 180px; /* Fixed height to ensure consistent layout */
}

.dpe-rating-label {

    color: #495057;
    text-align: center;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dpe-rating-value {
    margin-top: 5px;
    color: #212529;
}

.tinyText {
    font-size: 10px;
    color: #716f74;
}

/* Energy rating letter display */
.energy-letter-container {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.energy-letter {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .noMobile {
        display: none !important;
    }

    .property-info-header {
        display: none;
    }

    .property-info-content {
        flex-direction: column;
    }

    .property-info-item {
        width: 100%;
        padding: 10px;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .property-info-item:before {
        content: attr(data-label);
        font-weight: 600;
        min-width: 120px;
        margin-right: 10px;
    }

    .dpe-rating-content {
        flex-direction: column;
    }

    .dpe-rating-item {
        width: 100%;
        padding: 10px;
    }

    .dpe-rating-item + .dpe-rating-item {
        margin-top: 15px;
    }
}
