:root {
    --primary-blue: #2c4b91;
    --primary-orange: #ff6b35;
    --light-blue: #e8f2ff;
    --light-orange: #fff4f0;
    --dark-gray: #2d3748;
    --light-gray: #f7fafc;
    --success-green: #28a745;
    --warning-yellow: #ffc107;
    --danger-red: #dc3545;
    --info-cyan: #17a2b8;
    --border-color: #e2e8f0;
    --text-muted: #6c757d;
}
/* Navigation */
.navbar {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--primary-blue) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand .brand-orange {
    color: var(--primary-orange) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    margin: 0 0.25rem;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-orange) !important;
    background: var(--light-orange);
    transform: translateY(-1px);
}

.dropdown-menu {
    border-radius: 12px;
    border: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--dark-gray);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--light-orange);
    color: var(--primary-orange);
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    color: var(--primary-blue);
}


/* Hero Section */
.detail-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a365d 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.detail-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 1000 100" fill="white" opacity="0.05"><polygon points="0,0 1000,100 1000,0"/></svg>');
    background-size: cover;
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255,255,255,0.7);
    font-weight: bold;
    margin: 0 0.5rem;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: white;
    font-weight: 600;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero-badges .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    border-radius: 25px;
}

/* Image Gallery */
.image-gallery {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.main-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 1rem;
    background: var(--light-gray);
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.image-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
}

.image-overlay .badge {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.9);
    color: var(--dark-gray);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.thumbnail-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-item:hover {
    border-color: var(--primary-orange);
    transform: translateY(-2px);
}

.thumbnail-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

/* Info Cards */
.info-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.info-card-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.info-card-body {
    padding: 1.5rem;
}

/* Price Display */
.price-section {
    background: linear-gradient(135deg, var(--success-green), #20a037);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.price-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.price-main {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 2;
}

.price-unit {
    font-size: 0.9rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Meta Information */
.meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-item:hover {
    background: var(--light-gray);
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-radius: 10px;
}

.meta-label {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-weight: 500;
}

.meta-label i {
    width: 20px;
    margin-right: 0.75rem;
    color: var(--primary-blue);
}

.meta-value {
    font-weight: 600;
    color: var(--dark-gray);
}

/* Contact Form */
.contact-section {
    background: var(--light-orange);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
}

.contact-form .form-control {
    border-radius: 12px;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

.contact-form .form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
    transform: translateY(-2px);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-btn {
    background: linear-gradient(135deg, var(--primary-orange), #e55a2b);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

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

/* Owner/Agent Card */
.owner-card {
    text-align: center;
    position: relative;
}

.owner-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.owner-avatar img,
.owner-avatar .avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--light-orange);
    transition: all 0.3s ease;
}

.owner-avatar:hover img,
.owner-avatar:hover .avatar-placeholder {
    border-color: var(--primary-orange);
    transform: scale(1.05);
}

.avatar-placeholder {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.owner-name {
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.owner-role {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.owner-company {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Description Section */
.description-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: 2rem;
}

.description-content {
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1rem;
}

.description-content p {
    margin-bottom: 1rem;
}

/* Specifications */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.spec-item {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-orange);
}

.spec-label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.spec-value {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Related Items Grid */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.related-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: var(--primary-orange);
}

.related-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: var(--light-gray);
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 1.5rem;
}

.related-title {
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.related-price {
    color: var(--success-green);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.related-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.related-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-author {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Video Section */
.video-section {
    margin-top: 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-section iframe {
    border-radius: 20px;
}

/* Section Headers */
.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .price-main {
        font-size: 2rem;
    }
    
    .main-image img {
        height: 250px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .thumbnail-item img {
        height: 60px;
    }
    
    .meta-item:hover {
        margin: 0;
        padding: 1rem 0;
    }
}

/* Loading States */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Print Styles */
@media print {
    .contact-section,
    .related-grid,
    .video-section {
        display: none;
    }
    
    .info-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}