/**
 * Eduardo Rodriguez Inmobiliaria - Modern Property Styles
 * Bootstrap 5 Based Design System
 */

/* ================= BOOTSTRAP 5 UPGRADE ================= */
:root {
    --primary: #FBAC18;
    --primary-dark: #FA7E0A;
    --primary-light: #FFD966;
    --secondary: #2C3E50;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
    --white: #ffffff;
    
    --gradient-primary: linear-gradient(135deg, #FBAC18 0%, #FA7E0A 100%);
    --gradient-dark: linear-gradient(135deg, #2C3E50 0%, #1a252f 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    
    --shadow-sm: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    --shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    --shadow-lg: 0 1rem 3rem rgba(0,0,0,0.175);
    --shadow-xl: 0 2rem 4rem rgba(0,0,0,0.2);
    
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #434343;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary);
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

/* ================= PROPERTY DETAIL PAGE ================= */

.property-detail-header {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.property-detail-header h1,
.property-detail-header .property-location {
    color: var(--white);
}

.property-breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.property-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.property-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary);
}

.property-breadcrumb .breadcrumb-item.active {
    color: var(--primary);
}

.property-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.property-location {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.property-location i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.property-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.property-badges .badge {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.property-badges .badge-sale {
    background: var(--primary);
    color: var(--dark);
}

.property-badges .badge-rent {
    background: var(--info);
    color: var(--white);
}

.property-badges .badge-type {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

/* ================= PROPERTY GALLERY CAROUSEL ================= */

.property-gallery {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #f8f9fa;
}

.property-gallery-single {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.property-gallery-single img {
    width: 100%;
    height: auto;
    display: block;
}

.property-main-swiper {
    width: 100%;
    aspect-ratio: 16/10;
    position: relative;
}

.property-main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2C3E50;
}

.property-main-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    width: 50px !important;
    height: 50px !important;
    background: rgba(255,255,255,0.95) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    transition: all 0.3s ease !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.25rem !important;
    font-weight: 700;
    color: #2C3E50 !important;
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
    color: #212529 !important;
}

.swiper-button-prev {
    left: 15px !important;
}

.swiper-button-next {
    right: 15px !important;
}

.swiper-pagination {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 8px !important;
    z-index: 10 !important;
}

.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255,255,255,0.7) !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
}

.swiper-pagination-bullet:hover {
    background: rgba(255,255,255,0.9) !important;
    transform: scale(1.2) !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
    width: 35px !important;
    border-radius: 6px !important;
}

.gallery-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(44, 62, 80, 0.9);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.gallery-counter i {
    color: var(--primary);
}

.property-thumbs-swiper {
    width: 100%;
    height: auto;
    box-sizing: border-box;
    padding: 10px 0;
    background: #f8f9fa;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.property-thumbs-swiper .swiper-slide {
    width: 25% !important;
    height: 80px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 3px solid transparent;
    flex-shrink: 0;
}

.property-thumbs-swiper .swiper-slide:hover {
    opacity: 0.85;
}

.property-thumbs-swiper .swiper-slide.swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--primary);
}

.property-thumbs-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-thumbs-swiper .swiper-wrapper {
    display: flex;
    gap: 10px;
    padding: 0 10px;
}

/* ================= SECTION STYLES ================= */

.section-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light);
    margin-bottom: 1.5rem;
}

.section-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ================= FEATURE CARDS ================= */

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

.feature-card {
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(251,172,24,0.1) 0%, rgba(250,126,10,0.1) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-content {
    display: flex;
    flex-direction: column;
}

.feature-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.feature-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
}

/* ================= CONTACT CARD ================= */

.property-sidebar {
    position: sticky;
    top: 2rem;
}

.contact-card {
    border: none;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
}

.contact-card .card-header {
    background: var(--gradient-dark);
    padding: 1.5rem;
}

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

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

.contact-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item.whatsapp .contact-icon {
    background: #25d366;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
}

.contact-value {
    font-weight: 600;
    color: var(--secondary);
}

.btn-success {
    background: #25d366;
    border-color: #25d366;
}

.btn-success:hover {
    background: #20bd5a;
    border-color: #20bd5a;
}

/* ================= PRICE CARD ================= */

.price-card {
    border: none;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
}

.price-card .card-body {
    padding: 2rem;
    background: var(--light);
}

.price-label {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 2rem;
    font-weight: 800;
    display: block;
}

.price-value.sale {
    color: var(--primary-dark);
}

.price-value.rent {
    color: var(--info);
}

/* ================= MORTGAGE CALCULATOR ================= */

.mortgage-calculator {
    border: none;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
}

.mortgage-calculator .card-header {
    background: var(--gradient-primary);
    padding: 1rem 1.5rem;
}

.form-control {
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(251,172,24,0.25);
}

.form-label {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.875rem;
}

#calc-result {
    background: var(--light);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.calc-results p {
    margin-bottom: 0.5rem;
}

.calc-results strong {
    color: var(--primary-dark);
}

.calc-note {
    font-size: 0.75rem;
    color: #6c757d;
    font-style: italic;
}

/* ================= SHARE BUTTONS ================= */

.share-buttons .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50rem;
    font-weight: 600;
    transition: var(--transition);
}

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

/* ================= BUTTONS ================= */

.btn {
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

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

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.btn-default1 {
    background: var(--primary);
    color: var(--dark);
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.btn-default1:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-default2 {
    background: var(--secondary);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.btn-default2:hover {
    background: var(--dark);
    color: var(--primary);
}

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

@media (max-width: 991.98px) {
    .property-title {
        font-size: 2rem;
    }
    
    .property-sidebar {
        position: static;
    }
    
    .contact-card,
    .price-card,
    .mortgage-calculator {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .property-detail-header {
        padding: 2rem 0;
    }
    
    .property-title {
        font-size: 1.75rem;
    }
    
    .property-main-swiper {
        aspect-ratio: 4/3;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
}

/* ================= ANIMATIONS ================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251,172,24,0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(251,172,24,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(251,172,24,0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ================= UTILITIES ================= */

.bg-gradient {
    background: var(--gradient-primary) !important;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.rounded {
    border-radius: var(--border-radius) !important;
}

.rounded-lg {
    border-radius: var(--border-radius-lg) !important;
}

.rounded-xl {
    border-radius: var(--border-radius-xl) !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.d-flex {
    display: flex !important;
}
