/* CSS stilovi za Prikaz cijene i rate plugin */

/* Osnovni stilovi za shortcode */
.property-rata-shortcode {
    display: inline-block;
    margin: 5px 0;
}

/* Default stil - cijena + rata */
.rata-price-container {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.property-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.rata-badge {
    background: white;
    color: #e56d2e;
    border: 2px solid #e56d2e;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: normal;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.rata-info-icon {
    background: #e56d2e;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-left: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.rata-info-icon:hover {
    background: #d15a1a;
    transform: scale(1.1);
}

/* Stari default wrapper za kompatibilnost */
.rata-default-wrapper {
    position: relative;
    display: inline-block;
}

.rata-default {
    background: white;
    color: #e56d2e;
    border: 2px solid #e56d2e;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    text-transform: normal;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: help;
}

.rata-default:hover {
    background: #e56d2e;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 109, 46, 0.3);
}

/* Tooltip */
.rata-tooltip {
    visibility: hidden;
    width: 300px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 15px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    right: 0;
    margin-bottom: 8px;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    font-size: 12px;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.5;
}

.rata-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 15px;
    margin-left: -5px;
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.rata-info-icon:hover + .rata-tooltip,
.rata-price-container:hover .rata-tooltip {
    visibility: visible;
    opacity: 1;
}

.has-tooltip:hover .rata-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Box stil */
.rata-box-container {
    background: linear-gradient(135deg, #e56d2e 0%, #d15a1a 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(229, 109, 46, 0.3);
    max-width: 300px;
    margin: 0 auto;
}

.rata-box-header {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.9;
}

.rata-box-amount {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.rata-box-details {
    font-size: 11px;
    opacity: 0.8;
}

/* Inline stil */
.rata-inline {
    font-size: 14px;
    color: #e56d2e;
}

.rata-inline strong {
    font-weight: 600;
}

/* Minimal stil */
.rata-minimal {
    background: #f8f9fa;
    color: #e56d2e;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #e9ecef;
}

/* Veličine */
.size-small .rata-default {
    font-size: 10px;
    padding: 3px 8px;
}

.size-large .rata-default {
    font-size: 14px;
    padding: 8px 16px;
}

.size-small .rata-box-amount {
    font-size: 20px;
}

.size-large .rata-box-amount {
    font-size: 28px;
}

/* Veličine za novi default layout */
.size-small .property-price {
    font-size: 16px;
}

.size-small .rata-badge {
    font-size: 10px;
    padding: 3px 8px;
}

.size-small .rata-info-icon {
    width: 16px;
    height: 16px;
    font-size: 10px;
}

.size-large .property-price {
    font-size: 22px;
}

.size-large .rata-badge {
    font-size: 14px;
    padding: 6px 12px;
}

.size-large .rata-info-icon {
    width: 24px;
    height: 24px;
    font-size: 14px;
}

/* Details footer */
.rata-details-footer {
    margin-top: 8px;
    text-align: center;
}

.rata-details-footer small {
    color: #6c757d;
    font-size: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .rata-tooltip {
        width: 280px;
        right: -50px;
    }
    
    .rata-box-container {
        padding: 15px;
    }
    
    .rata-box-amount {
        font-size: 20px;
    }

    .rata-price-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .property-price {
        font-size: 16px;
    }

    .rata-badge {
        font-size: 11px;
        padding: 4px 8px;
    }

    .rata-info-icon {
        width: 18px;
        height: 18px;
        font-size: 11px;
        margin-left: 3px;
    }
}

@media (max-width: 480px) {
    .rata-tooltip {
        width: 250px;
        right: -80px;
    }

    .property-price {
        font-size: 14px;
    }

    .rata-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
}
