/* =========================================
   1. DETAIL DESTINASI (BAGIAN ATAS)
   ========================================= */
.destination-detail {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.detail-img {
    width: 45%;
    height: 400px; /* Tinggi proporsional */
    object-fit: cover;
    border-radius: 12px;
}

.detail-content {
    flex: 1;
}

.detail-category {
    color: #888;
    margin-bottom: 10px;
    font-size: 14px;
}

.detail-description {
    margin: 20px 0;
    line-height: 1.8;
    color: #555;
    font-size: 15px;
}

/* --- HARGA & RATING --- */
.price-box {
    margin: 15px 0;
}

.price {
    color: #333;
    font-size: 28px;
    margin: 0;
}

.old-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 14px;
    margin-right: 5px;
}

.discount {
    background: #ffebee;
    color: #e53935;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* Bintang Rating (Display) */
.rating .stars {
    color: #ffc107;
    font-size: 18px;
    margin-bottom: 5px;
}

/* Tombol Beli */
.btn-beli {
    display: inline-block;
    background: #17976e;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-beli:hover{
    background: #7fad9e;
    color:#ffffff;

    transform: translateY(-2px);
}



/* =========================================
   2. KOMENTAR & ULASAN (BAGIAN BAWAH)
   ========================================= */
.comments-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #333;
    border-left: 5px solid #007bff;
    padding-left: 15px;
}

/* --- FORM INPUT KOMENTAR --- */
.comment-form-box {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* --- GAYA AVATAR & INISIAL (UNIFIED) --- */
/* Class ini dipakai untuk Foto DAN Inisial agar bulat sempurna */
.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
    
    /* Untuk Inisial (Teks di tengah) */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Khusus avatar di form input (sedikit lebih kecil) */
.form-header .avatar-circle {
    width: 40px;
    height: 40px;
    font-size: 16px;
    border-color: #007bff;
}

.current-user-name {
    font-weight: 500;
    color: #555;
}

/* --- RATING INPUT (BINTANG) --- */
.rating-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse; /* Trik agar hover berjalan dari kanan ke kiri */
    justify-content: flex-end;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0 2px;
}

/* Efek Hover & Checked */
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #ffc107;
}

/* --- TEXTAREA & TOMBOL --- */
.comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    background: white;
}

.comment-textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.btn-submit-comment {
    background-color: #007bff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
    transition: 0.3s;
}

.btn-submit-comment:hover {
    background-color: #0056b3;
}

/* --- LIST KOMENTAR USER LAIN --- */
.divider-comment {
    border: 0;
    border-top: 1px dashed #ddd;
    margin: 30px 0;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.comment-item {
    display: flex;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f1f1;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.comment-user-name {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

.comment-date {
    font-size: 12px;
    color: #999;
}

.comment-stars {
    color: #ffc107;
    font-size: 14px;
    margin-bottom: 10px;
}

.comment-text {
    color: #444;
    line-height: 1.6;
    font-size: 15px;
}

/* --- UTILITIES --- */
.login-alert {
    background: #fff3cd;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ffeeba;
}

.login-alert a {
    color: #856404;
    font-weight: bold;
    text-decoration: underline;
}

.empty-comment {
    text-align: center;
    padding: 40px;
    color: #999;
    background: #f9f9f9;
    border-radius: 10px;
    font-style: italic;
}