/* --- SLIDER STYLES --- */
.view-container { 
    max-width: 1200px; 
    margin: 0rem auto; 
    width: 100%; 
    padding: 0 0rem; 
    display: grid; 
    grid-template-columns: 1fr 300px; 
    gap: 1rem; 
}

/* --- UPDATED RESPONSIVE LOGIC --- */
/* Target tablets and phones (Medium & Small) */
@media (max-width: 1024px) { 
    .view-container { 
        grid-template-columns: 1fr; /* Force the grid to 1 column */
    } 
    
    .sidebar-ad { 
        display: none !important; /* Forcefully remove the sidebar ad */
        visibility: hidden;
        height: 0;
        margin: 0;
        padding: 0;
    } 
}

.hero-section { 
    background: var(--surface); 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: var(--shadow-1); 
    margin-bottom: 1.5rem; 
    position: relative; 
}

.slider-wrapper { 
    display: flex; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth; 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
    height: 500px; 
}

.slider-wrapper::-webkit-scrollbar { display: none; }

.slide-img { 
    min-width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    scroll-snap-align: start; 
}

.slider-nav { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 40px; 
    height: 40px; 
    background: rgba(0,0,0,0.5); 
    color: white; 
    border: none; 
    border-radius: 50%; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 5; 
}

.nav-prev { left: 20px; }
.nav-next { right: 20px; }

/* --- CONTENT STYLES --- */
.details-section { 
    padding: 2rem; 
    background: var(--surface); 
    border-radius: 8px; 
    box-shadow: var(--shadow-1); 
}

.view-price {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    font-weight: 800;
    color: #d32f2f;
    line-height: 1;
}
.view-title {
    font-size: clamp(1.4rem, 4vw, 1.8rem); 
    line-height: 1.2;
    margin: 0;
    color: #333;
    word-wrap: break-word; /* Prevents long titles from breaking layout */
}
.view-loc {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    color: #666;
    display: flex;
    align-items: center;
    margin-top: 8px;
    gap: 4px;
}

.view-loc .material-icons {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    vertical-align: middle;
}

.stat-box { text-align: center; flex: 1; }
.stat-value { font-weight: 700; font-size: 1.1rem; }
.stat-label { font-size: 0.8rem; color: #666; }

.spec-item { display: flex; align-items: center; margin-bottom: 1rem; }
.spec-item .material-icons { margin-right: 12px; color: #3f51b5; font-size: 1.4rem; }

.amenity-badge { 
    background: #f8f8f8; 
    padding: 8px 16px; 
    border-radius: 4px; 
    border: 1px solid #eee; 
    font-weight: 500; 
    display: flex; 
    align-items: center; 
    font-size: 0.9rem; 
}

.amenity-badge .material-icons { 
    font-size: 1.1rem; 
    margin-right: 8px; 
    color: #d32f2f; 
}

/* Advertisement Placeholders */
.ad-placeholder { 
    background: #eeeeee; 
    border: 1px dashed #bdbdbd; 
    border-radius: 8px; 
    color: #9e9e9e; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding: 1rem; 
}

/* Base Sidebar Style (Desktop) */
.sidebar-ad { 
    display: flex;
    height: 600px; 
    position: sticky; 
    top: 6rem; 
}

.inline-ad { 
    width: 100%; 
    height: 120px; 
    margin: 2rem 0; 
}

.contact-card { 
    background: #fafafa; 
    border: 1px solid #eee; 
    border-radius: 8px; 
    padding: 1.5rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 2.5rem; 
    flex-wrap: wrap; 
}

.btn-contact { 
    background: #4caf50; 
    color: white; 
    height: 3.25rem; 
    padding: 0 1.5rem; 
    display: flex; 
    align-items: center; 
    box-shadow: var(--shadow-4); 
    border: none; 
    border-radius: 4px; 
    font-weight: 500; 
    cursor: pointer; 
}

/* Additional mobile-specific tweaks */
@media (max-width: 600px) {
    .btn-contact { width: 100%; margin-top: 1rem; justify-content: center; }
    .slider-wrapper { height: 300px; }
}