@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #2D68FF;
    --primary-light: #E9F0FF;
    --text-main: #1A1D1E;
    --text-muted: #6A6D7C;
    --white: #FFFFFF;
    --bg-light: #F7F9FC;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Red Hat Display', sans-serif;
}

body {
    background-color: var(--bg-light);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.app-container {
    width: 100%;
    max-width: 430px;
    background: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
}

.content-wrapper {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
}

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

/* Gallery */
.image-gallery {
    position: relative;
    height: 350px;
    width: 100%;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    width: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

.carousel-container::-webkit-scrollbar { display: none; }

.carousel-container img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: center;
}

.floating-back, .floating-share {
    position: absolute;
    top: 20px;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 10;
}
.floating-back { left: 20px; }
.floating-share { right: 20px; }

.gallery-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(5px);
}

/* Info Section */
.info-section {
    padding: 24px 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.price {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
}

.type-tag {
    padding: 6px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.location {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
}

.location i { color: var(--primary); width: 14px; }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-light);
    padding: 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-card i { color: var(--primary); width: 20px; }
.stat-card span { font-size: 14px; font-weight: 700; color: var(--text-main); }

.divider {
    height: 1px;
    background: rgba(0,0,0,0.05);
    margin: 24px 0;
}

/* Description & Amenities */
.description h3, .amenities h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

.description p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.amenity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 12px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.amenity-item i { color: #10B981; width: 18px; }

/* Seller Card */
.seller-card {
    margin-top: 32px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.seller-img {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    object-fit: cover;
}

.seller-info { flex: 1; }
.seller-info h4 { font-size: 16px; font-weight: 800; color: var(--text-main); }
.seller-info p { font-size: 13px; color: var(--text-muted); }

.verify-badge {
    background: #DCFCE7;
    color: #16A34A;
    border: none;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Action Bar */
.action-bar {
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    background: var(--white);
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
}

.wishlist-btn {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border: 1.5px solid #E2E8F0;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.2s;
}

.wishlist-btn:active {
    transform: scale(0.9);
}

.wishlist-btn.active {
    border-color: #2D68FF;
}

.wishlist-btn.active svg {
    fill: url(#blueBlackGradient) #2D68FF;
    stroke: none;
    animation: heartBurst 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes heartBurst {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.chat-btn, .call-btn {
    flex: 1;
    height: 56px;
    border-radius: 18px;
    border: none;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.chat-btn { background: var(--text-main); color: var(--white); }
.call-btn { background: var(--primary); color: var(--white); }
