/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #D4AF37; /* Gold */
    --accent-color: #FFD700; /* Bright gold accent */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --mobile-nav-bg: rgba(255, 255, 255, 0.98);
    --mobile-nav-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --gold-gradient: linear-gradient(45deg, #D4AF37, #FFD700);
    --premium-gold: #B8860B;
    --light-gold: #F4E4BC;
    --black-bg: #000000;
    --white-text: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Global Navigation Styles - Gold and White Only */
.navbar {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1050;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    padding: 0;
    margin-right: 1rem;
}

.navbar-brand img {
    height: 50px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(44,62,80,0.12));
    transition: all 0.2s;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav .nav-link {
    position: relative;
    z-index: 1;
    transition: color 0.2s, background 0.2s;
    border-radius: 8px;
    padding: 0.2rem 0.5rem !important;
    font-size: 0.78rem !important;
    color: #333 !important; /* Dark text on white background */
    background: transparent;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link:focus {
    color: #000 !important;
    background: var(--gold-gradient);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(212,175,55,0.2);
}

.navbar-nav .nav-link.active {
    background: var(--gold-gradient);
    color: #000 !important;
}

.navbar .btn-primary {
    font-size: 0.85rem !important;
    padding: 0.5rem 1.1rem !important;
    border-radius: 10px;
    background: var(--gold-gradient);
    color: #000 !important;
    border: none;
}

.navbar .btn-primary:hover {
    background: linear-gradient(45deg, #B8860B, #D4AF37);
    transform: translateY(-2px);
    color: #000 !important;
}

/* Dropdown Menu - Gold and White */
.dropdown-menu {
    background: #fff !important;
    border: 1px solid #D4AF37;
    box-shadow: 0 4px 12px rgba(212,175,55,0.15);
}

.dropdown-item {
    color: #333 !important;
    background: transparent;
}

.dropdown-item:hover {
    background: var(--gold-gradient) !important;
    color: #000 !important;
}

/* Black Background with Gold Text Areas */
.black-bg-gold-text {
    background: var(--black-bg) !important;
    color: var(--secondary-color) !important;
}

.black-bg-gold-text h1,
.black-bg-gold-text h2,
.black-bg-gold-text h3,
.black-bg-gold-text h4,
.black-bg-gold-text h5,
.black-bg-gold-text h6 {
    color: var(--secondary-color) !important;
}

.black-bg-gold-text p,
.black-bg-gold-text span,
.black-bg-gold-text div,
.black-bg-gold-text li {
    color: var(--secondary-color) !important;
}

.black-bg-gold-text a {
    color: var(--accent-color) !important;
}

.black-bg-gold-text a:hover {
    color: var(--premium-gold) !important;
}

.black-bg-gold-text .btn-primary {
    background: var(--gold-gradient) !important;
    color: #000 !important;
    border: none !important;
}

.black-bg-gold-text .btn-primary:hover {
    background: linear-gradient(45deg, #B8860B, #D4AF37) !important;
    color: #000 !important;
}

/* Form elements in black background */
.black-bg-gold-text .form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--secondary-color) !important;
    color: var(--secondary-color) !important;
}

.black-bg-gold-text .form-control::placeholder {
    color: rgba(212, 175, 55, 0.7) !important;
}

.black-bg-gold-text .form-control:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25) !important;
}

/* Card styling in black background */
.black-bg-gold-text .card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--secondary-color) !important;
}

.black-bg-gold-text .card-header {
    background: rgba(212, 175, 55, 0.1) !important;
    border-bottom-color: var(--secondary-color) !important;
    color: var(--secondary-color) !important;
}

/* Table styling in black background */
.black-bg-gold-text .table {
    color: var(--secondary-color) !important;
}

.black-bg-gold-text .table th {
    border-color: var(--secondary-color) !important;
    color: var(--accent-color) !important;
}

.black-bg-gold-text .table td {
    border-color: rgba(212, 175, 55, 0.3) !important;
}

/* Navigation specific styling for black background */
.black-bg-gold-text .navbar {
    background: rgba(0, 0, 0, 0.9) !important;
}

.black-bg-gold-text .navbar-nav .nav-link {
    color: var(--secondary-color) !important;
}

.black-bg-gold-text .navbar-nav .nav-link:hover {
    background: var(--gold-gradient) !important;
    color: #000 !important;
}

.black-bg-gold-text .navbar-nav .nav-link.active {
    background: var(--gold-gradient) !important;
    color: #000 !important;
}

/* Footer styling for black background */
.black-bg-gold-text footer {
    background: rgba(0, 0, 0, 0.8) !important;
    color: var(--secondary-color) !important;
}

.black-bg-gold-text footer a {
    color: var(--accent-color) !important;
}

.black-bg-gold-text footer a:hover {
    color: var(--premium-gold) !important;
}

/* Change all blue elements to gold */
.btn-primary {
    background: var(--gold-gradient) !important;
    border-color: #D4AF37 !important;
    color: #000 !important;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #B8860B, #D4AF37) !important;
    border-color: #B8860B !important;
    color: #000 !important;
}

.btn-outline-primary {
    border-color: #D4AF37 !important;
    color: #D4AF37 !important;
}

.btn-outline-primary:hover {
    background: var(--gold-gradient) !important;
    border-color: #D4AF37 !important;
    color: #000 !important;
}

.text-primary {
    color: #D4AF37 !important;
}

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

/* Links */
a {
    color: #D4AF37;
}

a:hover {
    color: #B8860B;
}

/* Mobile Responsive Styles */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 1rem;
        background: var(--mobile-nav-bg) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .navbar-brand img {
        height: 40px !important;
        transition: transform 0.3s ease;
    }

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

    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--mobile-nav-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 2000;
        padding: 80px 1.5rem 2rem;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(-100%);
        overflow-y: auto;
        box-shadow: var(--mobile-nav-shadow);
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    .navbar-nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
    }

    .navbar-nav .nav-link {
        font-size: 1.1rem;
        padding: 0.8rem 1.2rem;
        width: 100%;
        text-align: center;
        border-radius: 12px;
        margin: 0.2rem 0;
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        transition: all 0.3s ease;
        color: #333 !important;
    }

    .navbar-nav .nav-link:hover {
        transform: translateY(-2px);
        background: var(--gold-gradient);
        color: #000 !important;
    }

    .navbar-nav .nav-link.btn-primary {
        width: auto;
        margin: 1rem auto;
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
        background: var(--gold-gradient);
        color: #000 !important;
    }

    .navbar-toggler {
        border: none;
        background: transparent;
        padding: 0.5rem;
        z-index: 2001;
    }

    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }

    .navbar-toggler-icon {
        width: 1.5em;
        height: 1.5em;
        transition: transform 0.3s ease;
    }

    .navbar-toggler.active .navbar-toggler-icon {
        transform: rotate(90deg);
    }

    /* NOTE: Removed conflicting rule that forced the mobile menu always-open.
       The mobile menu should be controlled by Bootstrap's collapse behavior. */

    /* Adjust hero section margin */
    .hero-section {
        margin-top: 66px;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .navbar {
        padding: 0.5rem;
    }

    .navbar-brand img {
        height: 35px !important;
    }

    .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 0.7rem 1rem;
    }

    .navbar-nav .nav-link.btn-primary {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}

/* Hero Section */
.hero-section {
    margin-top: 76px;
}

.carousel-item {
    height: 600px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.7);
}

.carousel-caption {
    bottom: 30%;
    text-align: left;
    left: 10%;
    right: 10%;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Investment Benefits Section */
.benefit-item {
    font-size: 1.1rem;
    padding: 0.5rem 0;
}

.benefit-item i {
    font-size: 1.5rem;
}

/* Testimonials Section */
.testimonials .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.testimonials .card:hover {
    transform: translateY(-5px);
}

.testimonials img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* Property Cards */
.property-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-card img {
    height: 250px;
    object-fit: cover;
}

.property-details {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.property-details span {
    color: #666;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

/* Footer */
footer {
    background-color: var(--primary-color);
}

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

.social-links a {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Buttons */
.btn-primary {
    background: var(--gold-gradient);
    border-color: var(--secondary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #000;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #B8860B, #D4AF37);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption {
        bottom: 20%;
    }

    .navbar-brand img {
        height: 44px !important;
        max-width: 60px !important;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 300px;
    }

    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .property-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.property-highlights {
    margin: 20px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-2px);
    background-color: #e9ecef;
}

.highlight-item i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.highlight-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .highlight-item {
        padding: 8px;
    }
    
    .highlight-item i {
        font-size: 1rem;
    }
    
    .highlight-item span {
        font-size: 0.8rem;
    }
}

/* Property Tools Section */
.property-tools .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.property-tools .card:hover {
    transform: translateY(-5px);
}

.property-tools .form-control,
.property-tools .form-select {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e0e0e0;
}

.property-tools .form-control:focus,
.property-tools .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.property-tools .result-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.property-tools .comparison-table {
    overflow-x: auto;
}

.property-tools .table {
    margin-bottom: 0;
}

.property-tools .table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.property-tools .table td,
.property-tools .table th {
    padding: 12px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .property-tools .card {
        margin-bottom: 20px;
    }
    
    .property-tools .form-control,
    .property-tools .form-select {
        padding: 10px;
    }
    
    .property-tools .table td,
    .property-tools .table th {
        padding: 8px;
    }
}

/* Floor Plans Section */
.floor-plans .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.floor-plans .card:hover {
    transform: translateY(-5px);
}

.floor-plans img {
    border-radius: 8px;
    margin-bottom: 20px;
}

.floor-plans .list-unstyled li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.floor-plans .list-unstyled i {
    margin-right: 10px;
    color: #D4AF37;
}

/* Property Alerts Section */
.property-alerts .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.property-alerts .form-control,
.property-alerts .form-select {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e0e0e0;
}

.property-alerts .form-control:focus,
.property-alerts .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.property-alerts .btn-primary {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
}

/* Gallery Enhancements */
.gallery-img {
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .floor-plans .card {
        margin-bottom: 20px;
    }
    
    .property-alerts .form-control,
    .property-alerts .form-select {
        margin-bottom: 15px;
    }
    
    .property-alerts .btn-primary {
        width: 100%;
    }
    
    .gallery-img {
        margin-bottom: 15px;
    }
}

/* Property Comparison Tool Styles */
#propertyComparison .form-label {
    font-weight: 600;
}

#propertyComparison .form-select, #propertyComparison .btn {
    font-size: 1rem;
    border-radius: 8px;
}

#comparisonResult table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

#comparisonResult th, #comparisonResult td {
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

#comparisonResult th {
    background: #f8f9fa;
    font-weight: 700;
}

#comparisonResult tr:nth-child(even) {
    background: #f4f8fc;
}

@media (max-width: 991px) {
    .navbar-nav .nav-link {
        margin-right: 0.5rem;
        font-size: 1rem;
    }
    .navbar .btn-primary {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Adjust hero section margin for fixed navbar */
.hero-section {
    margin-top: 76px;
}

@media (max-width: 991.98px) {
    .hero-section {
        margin-top: 66px;
    }
}

/* Mobile Hero Section Improvements */
@media (max-width: 768px) {
    .hero-section {
        margin-top: 66px;
    }

    .carousel-item {
        height: 400px;
    }

    .carousel-caption {
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        padding: 1.5rem;
        border-radius: 1rem;
        max-width: 90%;
        margin: 0 auto;
        bottom: 2rem;
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .carousel-caption .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* Mobile Content Improvements */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .card {
        margin-bottom: 1rem;
        border-radius: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
        border-radius: 0.75rem;
    }

    .property-stats {
        padding: 1rem;
        margin: 1rem 0;
    }

    .stat-item {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }
}

/* Mobile Touch Improvements */
@media (max-width: 768px) {
    .btn, 
    .nav-link,
    .card,
    .property-card {
        -webkit-tap-highlight-color: transparent;
    }

    .btn:active,
    .nav-link:active {
        transform: scale(0.98);
    }

    input, 
    select, 
    textarea {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
    }
}

/* Mobile Loading States */
@media (max-width: 768px) {
    .loading-skeleton {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
        border-radius: 0.5rem;
    }

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

/* Pull to Refresh Indicator */
.pull-to-refresh-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.pull-to-refresh-indicator.active {
    transform: translateY(0);
}

/* Mobile Image Loading States */
.gallery-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: #f0f0f0;
}

.gallery-img-wrap.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.gallery-img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-img.loaded {
    opacity: 1;
}

/* Mobile Form Enhancements */
@media (max-width: 768px) {
    .form-control,
    .form-select {
        padding: 0.75rem 1rem;
        font-size: 16px;
        border-radius: 0.75rem;
        border: 1.5px solid #e0e0e0;
        background-color: #fff;
    }

    .form-control:focus,
    .form-select:focus {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    }

    .form-label {
        font-weight: 500;
        margin-bottom: 0.5rem;
        color: #4a5568;
    }

    .form-text {
        font-size: 0.875rem;
        color: #718096;
    }

    /* Mobile Form Validation States */
    .form-control.is-invalid {
        border-color: #e53e3e;
        background-image: none;
    }

    .form-control.is-valid {
        border-color: #38a169;
        background-image: none;
    }

    .invalid-feedback {
        font-size: 0.875rem;
        color: #e53e3e;
        margin-top: 0.25rem;
    }

    .valid-feedback {
        font-size: 0.875rem;
        color: #38a169;
        margin-top: 0.25rem;
    }
}

/* Mobile Card Enhancements */
@media (max-width: 768px) {
    .card {
        border: none;
        border-radius: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }

    .card-img-top {
        border-top-left-radius: 1rem;
        border-top-right-radius: 1rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .card-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .card-text {
        font-size: 0.95rem;
        color: #4a5568;
    }
}

/* Mobile Button Enhancements */
@media (max-width: 768px) {
    .btn {
        position: relative;
        overflow: hidden;
    }

    .btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 5px;
        height: 5px;
        background: rgba(255, 255, 255, 0.5);
        opacity: 0;
        border-radius: 100%;
        transform: scale(1, 1) translate(-50%);
        transform-origin: 50% 50%;
    }

    .btn:active::after {
        animation: ripple 0.6s ease-out;
    }

    @keyframes ripple {
        0% {
            transform: scale(0, 0);
            opacity: 0.5;
        }
        100% {
            transform: scale(20, 20);
            opacity: 0;
        }
    }
}

/* Mobile Loading Spinner */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2em;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Mobile Scrollbar */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    ::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    ::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

/* Mobile Quick Actions */
.mobile-quick-actions {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.quick-action-btn i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.quick-action-btn span {
    font-size: 0.7rem;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    background: var(--secondary-color);
    color: white;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 0.8rem;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.mobile-nav-item.active {
    color: var(--primary-color);
}

.mobile-nav-item:hover {
    color: var(--secondary-color);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    body {
        padding-bottom: 0; /* Avoid extra empty space (bottom nav is not used sitewide) */
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .carousel-caption {
        padding: 1rem;
        background: rgba(0,0,0,0.7);
        border-radius: 10px;
        max-width: 90%;
        margin: 0 auto;
        bottom: 2rem;
    }

    .carousel-caption h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .benefit-item {
        font-size: 0.9rem;
    }

    .benefit-item i {
        font-size: 1.2rem;
    }

    /* Improve touch targets */
    .nav-link,
    .btn,
    .card,
    .property-card {
        min-height: 44px;
        min-width: 44px;
    }

    /* Better form elements */
    input,
    select,
    textarea {
        font-size: 16px !important;
        padding: 12px !important;
    }

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

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

/* Mobile Pull to Refresh */
.pull-to-refresh-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.pull-to-refresh-indicator.active {
    transform: translateY(0);
}

/* Mobile Image Loading */
.gallery-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: #f0f0f0;
}

.gallery-img-wrap.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.gallery-img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-img.loaded {
    opacity: 1;
}

/* Mobile Scrollbar */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    ::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    ::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

/* Social Media Styles */
.social-share-buttons {
    display: flex;
    gap: 0.5rem;
}

.social-share-buttons .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.social-share-buttons .btn i {
    font-size: 1.2rem;
}

/* Social Media Platform Colors */
.social-share-buttons .btn.facebook:hover,
.social-follow-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-share-buttons .btn.linkedin:hover,
.social-follow-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.social-share-buttons .btn.instagram:hover,
.social-follow-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #dc2743;
}

.social-share-buttons .btn.whatsapp:hover,
.social-follow-btn.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.social-share-buttons .btn.email:hover,
.social-follow-btn.email:hover {
    background: #ea4335;
    border-color: #ea4335;
}

/* Social Media Footer */
.social-media-footer {
    border-top: 1px solid rgba(0,0,0,0.1);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-follow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-follow-btn:hover {
    transform: translateY(-2px);
    color: white;
}

.social-follow-btn i {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

/* Social Media Hover Effects */
.social-follow-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.social-follow-btn:active::after {
    animation: ripple 0.6s ease-out;
}

/* Mobile Social Media Styles */
@media (max-width: 768px) {
    .social-share-buttons {
        margin-top: 1rem;
        justify-content: center;
    }

    .social-share-buttons .btn {
        width: 36px;
        height: 36px;
    }

    .social-share-buttons .btn i {
        font-size: 1rem;
    }

    .social-icons {
        justify-content: center;
        margin-top: 1rem;
    }

    .social-follow-btn {
        width: 36px;
        height: 36px;
    }

    .social-follow-btn i {
        font-size: 1rem;
    }

    .social-media-footer {
        text-align: center;
    }

    .social-media-footer h5 {
        margin-bottom: 1rem;
    }
}

/* Social Media Share Animation */
@keyframes social-share {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.social-share-buttons .btn:active {
    animation: social-share 0.3s ease;
}

/* Social Media Loading State */
.social-follow-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.social-follow-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 