/* ================================================================
   Hoteler Recenzije — stilovi
   ================================================================ */

.hrev-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 36px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hrev-hotel-avg {
    font-size: 17px;
    font-weight: 400;
    color: #555;
    margin-left: auto;
}

.hrev-hotel-avg strong {
    display: inline-block;
    background: #1b5e20;
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    border-radius: 6px;
    padding: 2px 12px;
    margin-left: 4px;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* ----------------------------------------------------------------
   Lista recenzija
   ---------------------------------------------------------------- */

.hrev-reviews-wrap {
    margin-top: 8px;
}

.hrev-review {
    background: #fafafa;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 14px;
}

.hrev-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.hrev-reviewer-name {
    font-weight: 700;
    font-size: 15px;
    color: #222;
}

.hrev-review-date {
    font-size: 13px;
    color: #999;
    margin-left: auto;
}

.hrev-avg-badge {
    background: #1b5e20;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 6px;
    padding: 3px 11px;
    min-width: 40px;
    text-align: center;
    letter-spacing: 0.5px;
}

.hrev-ratings-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #f0f2f5;
    border-radius: 6px;
}

@media (max-width: 600px) {
    .hrev-ratings-row {
        flex-direction: column;
        gap: 6px 0;
    }
}

.hrev-rating-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.hrev-rating-label {
    color: #666;
}

.hrev-rating-score {
    font-weight: 700;
    font-size: 15px;
    color: #1565c0;
}

.hrev-review-text {
    font-size: 14px;
    color: #333;
    line-height: 1.7;
}

.hrev-review-text p:last-child {
    margin-bottom: 0;
}

/* ----------------------------------------------------------------
   Forma za recenziju
   ---------------------------------------------------------------- */

.hrev-form-wrap {
    margin-top: 8px;
    background: #f5f7fa;
    border: 1px solid #dde3ec;
    border-radius: 10px;
    padding: 24px 28px;
}

.hrev-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hrev-hp {
    display: none !important;
}

/* Polje za ime i tekst */
.hrev-form-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

.hrev-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hrev-field-note {
    font-size: 12px;
    color: #999;
    margin-top: -2px;
}

.hrev-form-field label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.hrev-required {
    color: #c0392b;
}

.hrev-form-field input[type="text"],
.hrev-form-field input[type="email"],
.hrev-form-field textarea {
    border: 1px solid #bfc8d6;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.hrev-form-field input[type="text"]:focus,
.hrev-form-field input[type="email"]:focus,
.hrev-form-field textarea:focus {
    border-color: #1565c0;
    outline: none;
}

/* Grid za ocene */
.hrev-ratings-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
}

.hrev-rating-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hrev-rating-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Dugmad za ocenu */
.hrev-rating-buttons {
    display: flex;
    gap: 5px;
}

.hrev-btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border: 2px solid #bfc8d6;
    border-radius: 5px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
    flex-shrink: 0;
    box-sizing: border-box;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
    padding: 0;
    margin: 0;
    vertical-align: top;
    line-height: normal;
    font-family: inherit;
}

.hrev-btn:focus {
    outline: none;
    box-shadow: none;
}

.hrev-btn:active {
    background: #fff;
    border-color: #bfc8d6;
    color: #666;
    transform: none;
}

.hrev-btn:hover {
    border-color: #1565c0;
    color: #1565c0;
    background: #e8f0fe;
}

.hrev-btn.selected {
    background: #1565c0;
    border-color: #1565c0;
    color: #fff;
}

.hrev-btn.selected:active,
.hrev-btn.selected:hover {
    background: #1565c0;
    border-color: #1565c0;
    color: #fff;
}

/* Grеške */
.hrev-error {
    font-size: 12px;
    color: #c0392b;
    min-height: 16px;
    line-height: 1.3;
}

/* Submit dugme */
.hrev-submit-btn {
    align-self: flex-start;
    background: #1565c0;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.hrev-submit-btn:hover {
    background: #0d47a1;
}

.hrev-submit-btn:disabled {
    background: #90a4ae;
    cursor: not-allowed;
}

/* Zastavica originalnog jezika recenzije */
.hrev-lang-flag {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

/* Dugme za toggle original/prevod */
.hrev-toggle-original {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    font-size: 13px;
    color: #1565c0;
    background: transparent;
    border: 1px solid #b0c4de;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
    line-height: 1.5;
}

.hrev-toggle-original:hover {
    background: #e8f0fe;
}

/* Poruka o uspjehu */
.hrev-success-msg {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #1b5e20;
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.5;
}

/* ----------------------------------------------------------------
   Mobilni
   ---------------------------------------------------------------- */
@media ( max-width: 640px ) {
    .hrev-ratings-fields {
        grid-template-columns: 1fr;
    }

    .hrev-form-fields-row {
        grid-template-columns: 1fr;
    }

    .hrev-form-wrap {
        padding: 16px;
    }

    .hrev-review-date {
        margin-left: 0;
        width: 100%;
    }

    .hrev-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        font-size: 13px;
    }
}
