@import 'trustyou-iconic.css';

/* --------------- Header --------------- */

.summary-header {
    position: relative;
    padding: 20px;
    height: 60px;
    border-bottom: 1px solid #e5e5e5;
}

.summary-header h1 {
    padding-right: 100px;
}

.summary-header h1 .overall-rank {
    font-weight: 500;
    font-size: 1.2em;
}

.summary-header h1 .review-count {
    margin-left: 15px;
    padding-bottom: 5px;
    color: #bbb;
    vertical-align: middle;
    font-size: .85em;
}

/* -------------- Ranking --------------- */

.summary-header .ranking {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    padding: 10px 15px;
    background: #119a11;
    color: #fff;
}

.summary-header .ranking span {
    display: block;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 2px 1px rgba(0, 0, 0, .6);
    font-size: 1.05em;
    line-height: 1.2em;
}

.summary-header .ranking span:first-child {
    margin: 0;
}

.summary-header .ranking span:last-child {
    margin: 0;
}

/* -------------- Content --------------- */

.summary-content {
    overflow: auto;
    padding: 20px;
}

.summary-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.summary-section .toggle-details {
    display: block;
    float: right;
    color: #999;
    font-size: .9em;
    cursor: pointer;
}

.summary-section .toggle-details:hover,
.summary-section .toggle-details:active {
    color: #444;
}

.summary-section .toggle-details .ty-icon {
    display: inline-block;
    float: left;
    margin: 2px 5px 0 0;
    font-size: 1.2em;
}

.summary-section h2 {
    margin-bottom: 20px;
}

/* ------------ Type of hotel ----------- */

.summary-section.type-of-hotel p {
    padding-left: 40px;
    line-height: normal;
}

.summary-section.type-of-hotel p:last-child {
    margin-bottom: 0;
}

.summary-section.type-of-hotel .ty-icon {
    float: left;
    margin-top: -5px;
    margin-left: -40px;
    color: #666;
    font-size: 1.8em;
}

/* ------------ Tops & flops ------------ */

.summary-section.tops-flops .category {
    overflow: auto;
    margin-bottom: 10px;
}

.summary-section.tops-flops .category:last-child {
    margin-bottom: 0;
}

.summary-section.tops-flops .category .category-results .result-scale p:after,
.summary-section.tops-flops .category .category-results .result-scale:after,
.summary-section.tops-flops .category:after {
    display: table;
    clear: both;
    content: '';
}

.summary-section.tops-flops .category .category-label {
    float: left;
    min-width: 180px;
    line-height: 1.0em;
}

.summary-section.tops-flops .category .category-results {
    float: left;
    width: calc(100% - 180px);
}

.summary-section.tops-flops .category .category-results .category-snippets,
.summary-section.tops-flops .category .category-results .category-subcategory {
    position: relative;
    clear: both;
    overflow: auto;
    margin-bottom: 2px;
}

.summary-section.tops-flops .category .category-results .result-scale {
    float: left;
    width: calc(100% - 150px);
}

.summary-section.tops-flops .category .category-results .result-scale .toggle-content {
    position: absolute;
    top: 1px;
    right: 0;
    padding: 2px;
    width: 16px;
    height: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    background: #fafafa;
    color: #bbb;
    font-size: .7em;
    line-height: 1.2em;
    cursor: pointer;
    display: none;
}

.summary-section.tops-flops .category .category-results .result-scale.text-truncate-on .toggle-content,
.summary-section.tops-flops .category .category-results .result-scale.text-truncate-off .toggle-content {
    display: block;
}

.summary-section.tops-flops .category .category-results .result-scale:hover .toggle-content,
.summary-section.tops-flops .category .category-results .result-scale .toggle-content:hover {
    border-color: #bbb;
    color: #999;
}

.summary-section.tops-flops .category .category-results .result-scale:active .toggle-content,
.summary-section.tops-flops .category .category-results .result-scale .toggle-content:active {
    border-color: #999;
    background: #f5f5f5;
    color: #777;
}

.summary-section.tops-flops .category .category-results .result-scale p {
    overflow: hidden;
    margin: 0;
    color: #999;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: normal;
}

.summary-section.tops-flops .category .category-results .result-scale.text-truncate-off p {
    overflow: visible;
    white-space: normal;
}

.summary-section.tops-flops .category .category-results .result-scale p span {
    margin-right: 5px;
}

.summary-section.tops-flops .category .result-scale.text-truncate-on p,
.summary-section.tops-flops .category .result-scale.text-truncate-off p {
    cursor: pointer;
}

/* Result chart */

.summary-section.tops-flops .category .result-chart {
    float: left;
    margin-right: 15px;
    width: 100px;
    height: 15px;
    background: #fff;
}

.summary-section.tops-flops .category .result-chart .result-value {
    height: 100%;
    background: #689cd4;
}

.summary-section.tops-flops .category .result-chart.neg .result-value {
    background: #ee8e8e;
}

.summary-section.tops-flops .category .result-chart.neu .result-value {
    background: #f8d867;
}

.summary-section.tops-flops .category .result-chart.pos .result-value {
    background: #9acf89;
}

/* Snippets */

.summary-section.tops-flops .category .category-results .category-snippets .result-scale {
    font-style: italic;
}

/* Subcategories */

.summary-section.tops-flops .category .category-subcategory {
    opacity: 1;
}

.summary-section.tops-flops .category .category-subcategory:last-child {
    margin-bottom: 10px;
}

.summary-section.tops-flops .category .category-subcategory.hidden {
    opacity: 0;
}

.summary-section.tops-flops .category .category-subcategory .result-chart {
    margin-top: 4px;
    margin-right: 18px;
    height: 10px;
    background: #fff;
}

.summary-section.tops-flops .category .category-subcategory .result-chart.neg .result-value {
    background: #f9cccc;
}

.summary-section.tops-flops .category .category-subcategory .result-chart.neu .result-value {
    background: #fdeeb8;
}

.summary-section.tops-flops .category .category-subcategory .result-chart.pos .result-value {
    background: #c8ebbd;
}

.summary-section.tops-flops .category .category-results .category-subcategory p {
    font-weight: 300;
}

.summary-section.tops-flops .category .category-results .category-subcategory p strong {
    color: #333;
    font-weight: 500;
}

/* ------------ Good to know ------------ */

.summary-section.good-to-know {
    padding-bottom: 0;
    border-bottom: none;
}

.summary-section.good-to-know ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.summary-section.good-to-know ul li {
    display: block;
    float: left;
    margin-bottom: 7px;
    width: 50%;
}

.summary-section.good-to-know ul .ty-icon {
    float: left;
    margin: 2px 10px 0 0;
}

.summary-section.good-to-know ul .ty-icon-ok {
    color: #9acf89;
}

.summary-section.good-to-know ul .ty-icon-remove {
    color: #ee8e8e;
}

/* ------------- Powered by ------------- */

.powered-by {
    float: right;
    clear: both;
}

/* -------------- Desktop --------------- */

@media screen and (min-device-width: 1025px) {



}

/* ---------- Desktop (iframe)  --------- */

@media screen and (max-width: 640px) {

    .summary-section.tops-flops .category .result-chart {
        width: 80px;
    }

    .summary-section.tops-flops .category .category-label {
        display: block;
        float: none;
        clear: both;
        margin-bottom: 15px;
        font-size: 1.2em;
        font-weight: 300;
    }

    .summary-section.tops-flops .category .category-results {
        width: 100%;
    }

    .summary-section.tops-flops .category .category-results .result-scale {

    }

    .summary-section.tops-flops .category .category-results .result-scale .toggle-content {
        font-size: 0.8em;
    }

}

@media screen and (max-width: 480px) {

    body {
        font-size: 13px;
    }

    .summary-header {
        overflow: auto;
        height: auto;
    }

    .summary-header h1 .overall-rank {
        display: block;
        float: none;
        margin-bottom: 5px;
    }

    .summary-header h1 .review-count {
        display: block;
        float: none;
        margin: 0;
        font-size: .8em;
    }

    .summary-header .ranking {
        position: absolute;
        top: 20px;
        right: 20px;
        bottom: auto;
    }

    .summary-section.tops-flops .category {
        overflow: auto;
        margin-bottom: 15px;
    }

    .summary-section.tops-flops .category .category-label {
        float: none;
        margin-bottom: 10px;
        font-weight: 300;
        font-size: 1.3em;
    }

    .summary-section.tops-flops .category .category-results {
        float: none;
        width: 100%;
    }

    .summary-section.tops-flops .category .category-results .result-chart {
        width: 100%;
        height: 7px;
    }

    .summary-section.tops-flops .category .category-results .category-subcategory .result-chart {
        float: left;
        margin-right: 0;
        width: 20%;
        height: 7px;
        background: #fff;
    }

    .summary-section.tops-flops .category .category-results .result-scale {
        position: relative;
        margin: 5px 0;
        width: 100%;
    }

    .summary-section.tops-flops .category .category-results .result-scale .toggle-content {
        top: 3px;
        padding: 3px 2px 2px;
        width: 16px;
        height: 16px;
        font-size: .8em;
    }

    .summary-section.tops-flops .category .category-results .category-snippets .result-scale p {
        width: 100%;
        display: block;
    }

    .summary-section.tops-flops .category .category-results .category-subcategory {
        border-top: 1px dashed #ddd;
        margin-bottom: 0;
        padding: 5px 0;
    }

    .summary-section.tops-flops .category .category-results .category-subcategory .result-scale {
        float: left;
        margin-top: -1px;
        margin-bottom: 0;
        padding-left: 10px;
        width: calc(100% - 90px) !important;
        text-align: left;
    }
    .summary-section.tops-flops .category .category-results .category-subcategory .result-scale p:last-child {
        margin-bottom: 0;
    }

    .summary-section.good-to-know ul li {
        display: block;
        float: none;
        margin-bottom: 5px;
        padding-right: 0;
        width: 100%;
    }

}

/* ------------- Smartphone ------------- */

@media screen and (max-device-width: 640px) {


    body {
        font-size: 16px;
    }

    .summary-header {
        overflow: auto;
        height: auto;
    }

    .summary-header h1 .overall-rank {
        display: block;
        float: none;
        margin-bottom: 5px;
    }

    .summary-header h1 .review-count {
        display: block;
        float: none;
        margin: 0;
        font-size: .8em;
    }

    .summary-header .ranking {
        position: absolute;
        top: 20px;
        right: 20px;
        bottom: auto;
    }

    .summary-section.tops-flops .category {
        overflow: auto;
        margin-bottom: 20px;
    }

    .summary-section.tops-flops .category .category-label {
        float: none;
        margin-bottom: 20px;
        text-align: center;
        font-weight: 300;
        font-size: 1.3em;
    }

    .summary-section.tops-flops .category .category-results {
        float: none;
        width: 100%;
    }

    .summary-section.tops-flops .category .category-results .result-chart {
        margin-bottom: 5px;
        width: 100%;
        height: 7px;
    }

    .summary-section.tops-flops .category .category-results .category-subcategory .result-chart {
        float: left;
        margin-right: 0;
        width: 20%;
        height: 7px;
        background: #eee;
    }

    .summary-section.tops-flops .category .category-results .result-scale {
        position: relative;
        margin: 10px 0;
        padding-right: 25px;
        width: 100%;
    }

    .summary-section.tops-flops .category .category-results .result-scale .toggle-content {
        top: 3px;
        padding: 3px 2px 2px;
        width: 17px;
        height: 17px;
        font-size: .7em;
    }

    .summary-section.tops-flops .category .category-results .category-snippets .result-scale p {
        width: 100%;
        vertical-align: text-bottom;
        line-height: normal;
        display: block;
    }

    .summary-section.tops-flops .category .category-results .category-subcategory {
        border-top: 1px dashed #ddd;
        margin-bottom: 0;
        padding: 10px 0;
    }

    .summary-section.tops-flops .category .category-results .category-subcategory .result-scale {
        float: left;
        margin-top: -5px;
        margin-bottom: 0;
        padding-left: 10px;
        width: 80%;
        text-align: left;
    }

    .summary-section.tops-flops .category .category-results .category-subcategory .result-scale p:last-child {
        margin-bottom: 0;
    }

    .summary-section.good-to-know ul li {
        display: block;
        float: none;
        margin-bottom: 10px;
        padding-right: 0;
        width: 100%;
    }

}