/* Utoraz Market Frontend Styles */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --light-color: #f1f5f9;
    --dark-color: #0f172a;
    --border-color: #e2e8f0;
    --text-color: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    color: var(--dark-color);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 600;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.broker-link {
    color: var(--text-color);
    background: transparent;
}

.broker-link:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.broker-emojis {
    display: inline-block;
    animation: bounce 1s ease-in-out infinite;
}

.broker-emojis:first-child {
    animation-delay: 0s;
}

.broker-emojis:last-child {
    animation-delay: 0.5s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.market-link {
    background: var(--success-color);
    color: var(--white);
}

.market-link:hover {
    background: #059669;
    color: var(--white);
}

/* Broker Links Section */
.broker-links-section {
    background: var(--white);
    padding: 40px 0;
}

.broker-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.broker-link-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color), #6366f1);
    color: var(--white);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.broker-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.broker-link-icon {
    font-size: 48px;
}

.broker-link-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.broker-link-content p {
    font-size: 14px;
    opacity: 0.9;
}

/* Trending Grid */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Category Browse Grid */
.category-browse-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category-browse-item {
    text-align: center;
    padding: 25px;
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-browse-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-browse-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
}

.category-browse-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-browse-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.category-browse-count {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.category-browse-link {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.3s;
}

.category-browse-link:hover {
    background: var(--primary-dark);
}

@media (max-width: 991px) {
    .trending-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-browse-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .broker-links-grid {
        grid-template-columns: 1fr;
    }
    
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-browse-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .trending-grid {
        grid-template-columns: 1fr;
    }
    
    .category-browse-grid {
        grid-template-columns: 1fr;
    }
}
.search-bar {
    flex: 1;
    max-width: 350px;
    margin: 0 10px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-btn {
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Banner */
.hero {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-compact {
    padding: 40px 0;
}

.hero-compact h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero-compact p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-compact .hero-btn {
    padding: 10px 28px;
    font-size: 14px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: var(--radius-lg);
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Section */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-icon {
    margin-bottom: 12px;
}

.category-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
}

/* === GRID CONTAINER === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns desktop */
    gap: 25px;
    margin: 20px 0;
}

/* === CARD WRAPPER === */
.product-card-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* === CARD LINK === */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* === IMAGE (Fixed 4:3 Aspect Ratio) === */
.product-image {
    position: relative;
    overflow: hidden;
    padding-bottom: 75%; /* 4:3 ratio */
    height: 0;
    background: #f7f7f7;
}
.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Uniform cropping */
}

/* === BADGE === */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: #ff6b35;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* === CONTENT AREA === */
.product-content {
    flex: 1; /* Pushes contact buttons down */
    display: flex;
    flex-direction: column;
    padding: 15px 15px 0 15px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
    /* Truncate to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px;
}
.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 6px;
}
.product-location {
    font-size: 13px;
    color: #718096;
    margin-bottom: 8px;
}

.product-category {
    font-size: 12px;
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-description {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.4;
    /* Truncate to 2 lines for compact display */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-bottom: 8px;
    min-height: 36px;
}



/* === CONTACT BUTTONS - FIXED ICONS === */
.product-contact {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 14px 15px 16px 15px;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.contact-btn:hover::before {
    width: 100%;
    height: 100%;
}

.contact-btn:hover { 
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.contact-btn:active {
    transform: translateY(-1px) scale(1.05);
}

/* FIX: Make SVGs visible properly */
.contact-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    position: relative;
    z-index: 1;
}

.contact-btn svg path {
    fill: #ffffff !important;
}

.contact-phone {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.contact-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #00aaee 100%);
}

.contact-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

/* === ANIMATED BACKGROUND === */
.section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(99, 102, 241, 0.02) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, -2%) rotate(1deg); }
    50% { transform: translate(-1%, 2%) rotate(-1deg); }
    75% { transform: translate(-2%, -1%) rotate(0.5deg); }
}

/* Ensure content stays above animation */
.section .container {
    position: relative;
    z-index: 1;
}

/* === IMPROVED CARD STYLES === */
.product-card-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
}

.product-card-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, rgba(99, 102, 241, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.product-card-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
}

.product-card-wrapper:hover::after {
    opacity: 1;
}

/* === IMPROVED IMAGE HOVER === */
.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* === IMPROVED SECTION TITLE === */
.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 12px auto 0;
}

/* === IMPROVED CATEGORY BUTTONS === */
.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-color);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--light-color);
    border-color: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* === PAGINATION IMPROVEMENTS === */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination .btn {
    min-width: 44px;
    height: 44px;
    border-radius: 10px;
    padding: 0 16px;
}

/* === MOBILE FIXES === */
@media (max-width: 575px) {
    .contact-btn {
        width: 38px;
        height: 38px;
    }
    
    .contact-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .product-contact {
        gap: 10px;
        padding: 12px 12px 14px 12px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section::before {
        display: none;
    }
}






/* === REDUCED TOP SPACING === */
.section {
    padding: 30px 0 60px 0;
    position: relative;
    overflow: hidden;
}

/* === CONTACT BUTTONS - ICONS FIXED === */
.product-contact {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 10px 15px 14px 15px;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
    flex-wrap: nowrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.contact-btn:hover::before {
    width: 120%;
    height: 120%;
}

.contact-btn:hover { 
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}

.contact-btn:active {
    transform: translateY(-1px) scale(1.05);
}

/* FIX: Icons visible and properly sized */
.contact-btn svg {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    fill: none;
}

.contact-btn svg path {
    fill: #ffffff;
}

.contact-phone {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.contact-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #00aaee 100%);
}

.contact-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

/* === MOBILE FIXES === */
@media (max-width: 575px) {
    .section {
        padding: 20px 0 40px 0;
    }
    
    .contact-btn {
        width: 40px;
        height: 40px;
    }
    
    .contact-btn svg {
        width: 30px;
        height: 30px;
    }
    
    .product-contact {
        gap: 10px;
        padding: 8px 12px 12px 12px;
    }
}

/* Optional: Make buttons slightly smaller on mobile but still visible */
@media (max-width: 575px) {
    .contact-btn {
        width: 36px; /* Slightly smaller on mobile */
        height: 36px;
    }
    
    /* .contact-btn svg {
        width: 20px;
        height: 20px;
    } */
    
    /* .product-contact {
        gap: 8px;
        padding: 10px 12px 12px 12px;
    } */
}

/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 1199px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
@media (max-width: 991px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 767px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}
@media (max-width: 575px) {
    .products-grid { grid-template-columns: 1fr; gap: 15px; }
    .product-title { font-size: 15px; min-height: 40px; }
    .product-price { font-size: 16px; }
}

/* Detail Page */
.detail-header {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-content {
    padding: 40px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.detail-gallery {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 15px;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    transition: opacity 0.3s;
}

.thumbnail:hover {
    opacity: 0.8;
}

.thumbnail.active {
    border: 2px solid var(--primary-color);
}

.detail-info {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.detail-title {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.detail-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.detail-description {
    margin-bottom: 25px;
}

.detail-description h3 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.detail-description p {
    color: var(--text-color);
    line-height: 1.8;
}

.contact-buttons .contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius);
    min-width: 140px;
    width: auto;
}

.contact-buttons .contact-btn.call {
    background: var(--success-color);
    color: var(--white);
}

.contact-buttons .contact-btn.telegram {
    background: #0088cc;
    color: var(--white);
}

.contact-buttons .contact-btn.whatsapp {
    background: #25d366;
    color: var(--white);
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s;
    min-width: 160px;
    width: auto;
}

.detail-contact-btn.call {
    background: var(--success-color);
    color: var(--white);
}

.detail-contact-btn.telegram {
    background: #0088cc;
    color: var(--white);
}

.detail-contact-btn.whatsapp {
    background: #25d366;
    color: var(--white);
}

.detail-contact-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.share-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.share-title {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    color: var(--text-light);
    transition: all 0.3s;
}

.share-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Related Listings */
.related-section {
    padding: 40px 0;
    background: var(--white);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.social-link {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-link:hover {
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* === LISTINGS GRID === */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Responsive */
@media (max-width: 1199px) {
    .listings-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        margin: 10px 0 0;
        max-width: none;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .main-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-title {
        font-size: 22px;
    }
    
    .detail-price {
        font-size: 24px;
    }
}
