/* ================= MAP ================= */

.map-container {
    height: 260px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #ddd;
}

@media (min-width:768px){
.map-container{
    height:350px;
}
}

/* ================= HERO ================= */

.detail-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

/* MOBILE FIRST */

.hero-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display:block;
}

/* OVERLAY */

.hero-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    color: white;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 10%,
        rgba(0,0,0,0.4) 40%,
        transparent 100%
    );
}

/* TITLE */

.hero-title {
    font-size: 22px;
    font-weight: 700;
    margin-top: 8px;
}

/* RATING */

.hero-rating {
    font-size: 14px;
    opacity: 0.9;
}

/* ================= HERO RESPONSIVE ================= */

@media (min-width:768px){

.hero-img{
    height:320px;
}

.hero-title{
    font-size:26px;
}

}

@media (min-width:1200px){

.hero-img{
    height:420px;
}

.hero-title{
    font-size:30px;
}

}

/* ================= INFO CARD ================= */

.detail-info {
    margin-top:20px;
}

/* BOX ALAMAT + DESKRIPSI */

.info-box{
    background:#ffffff;
    padding:18px;
    border-radius:16px;
    box-shadow:0 6px 20px rgba(0,0,0,0.08);
    margin-top:15px;
    transition:0.3s ease;
}

.info-box:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(0,0,0,0.12);
}

/* ALAMAT */

.detail-address{
    font-size:14px;
    color:#555;
    line-height:1.6;
    margin-bottom:12px;
}

/* DESKRIPSI */

.detail-description{
    font-size:15px;
    color:#444;
    line-height:1.7;
}

/* ================= READ MORE MOBILE ================= */

.read-more-btn{
display:none;
}

@media (max-width:768px){

.detail-description{
display:-webkit-box;
-webkit-line-clamp:3;
-webkit-box-orient:vertical;
overflow:hidden;
}

.detail-description.expanded{
-webkit-line-clamp:unset;
}

.read-more-btn{
display:inline-block;
margin-top:6px;
color:#0d6efd;
font-size:14px;
font-weight:500;
cursor:pointer;
}

}

/* ================= SECTION TITLE ================= */

.section-title {
    font-weight: 600;
    margin-bottom: 20px;
}

/* ================= GALLERY ================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px,1fr));
    gap: 12px;
}

.gallery-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    transition: 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* ================= BUTTON ROUTE ================= */

.btn-route {
    background: linear-gradient(135deg, #4285F4, #a83434);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s ease;
}

/* ================= GOOGLE BUTTON ================= */

.btn-google {
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-google:hover {
    background: linear-gradient(135deg, #3367D6, #2E8B57);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ================= ULASAN CARD ================= */

.ulasan-card {
    padding: 18px;
    border-radius: 14px;
    background: #ffffff;
    margin-bottom: 18px;
    transition: 0.3s ease;
    border: 1px solid #f0f0f0;
}

.ulasan-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

/* ================= ULASAN SAYA ================= */

.ulasan-saya {
    border: 1px solid #d1e7dd;
    background: #f8fff9;
}

/* ================= AVATAR ================= */


.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #4dabf7);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 18px;
    flex-shrink:0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius:50%;
    display:block;
}

/* ================= RATING ================= */

.rating-stars {
    color: #ffc107;
    font-size: 14px;
}

/* ================= FOTO ULASAN ================= */

.ulasan-img {
    transition: 0.3s ease;
    cursor: pointer;
}

.ulasan-img:hover {
    transform: scale(1.05);
}

/* ================= STAR RATING ================= */

.star-rating {
    direction: rtl;
    display: inline-flex;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 26px;
    color: #ddd;
    cursor: pointer;
    transition: 0.2s;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffc107;
}

/* ================= MODERN TEXTAREA ================= */

.modern-textarea {
    border-radius: 12px;
    border: 1px solid #ddd;
    transition: 0.3s;
}

.modern-textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
}

/* ================= MODERN INPUT ================= */

.modern-input {
    border-radius: 10px;
}

/* ================= MODERN BUTTON ================= */

.btn-modern {
    background: linear-gradient(135deg, #0d6efd, #521987);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 12px;
    font-weight: 500;
    transition: 0.3s ease;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    color: white;
}

/* ================= FOTO WRAPPER ================= */

.foto-wrapper {
    position: relative;
}

.foto-delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(220,53,69,0.9);
    border: none;
    color: white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
}

/* ================= PREVIEW FOTO ================= */

.preview-wrapper {
    overflow: hidden;
    border-radius: 12px;
}

.preview-img {
    height: 120px;
    object-fit: cover;
    transition: 0.3s ease;
}

.preview-img:hover {
    transform: scale(1.05);
}