/* ============================================
   PRESTIGE PROPERTIES - REAL ESTATE DEMO
   Custom Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary-color: #1a5f7a;
    --primary-dark: #134b61;
    --primary-light: #2980b9;
    --accent-color: #e67e22;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a252f;
    --border-color: #e0e0e0;
    --shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--text-white);
}

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

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

.section-padding {
    padding: 100px 0;
}

/* ---------- Typography ---------- */
.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-description {
    color: var(--text-light);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 50px;
}

.accent {
    color: var(--accent-color);
}

/* ---------- Buttons ---------- */
.btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

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

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

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

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

.btn-outline-light {
    border: 2px solid var(--text-white);
    color: var(--text-white);
}

.btn-outline-light:hover {
    background-color: var(--text-white);
    color: var(--text-dark);
}

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

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

.btn-lg {
    padding: 15px 40px;
    font-size: 16px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
}

.site-header.scrolled {
    background-color: var(--text-white);
    box-shadow: var(--shadow);
}

.site-header .navbar {
    padding: 20px 0;
}

.site-header.scrolled .navbar {
    padding: 15px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 20px;
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
}

.site-header.scrolled .brand-text {
    color: var(--text-dark);
}

.navbar-nav .nav-link {
    color: var(--text-white);
    font-weight: 500;
    padding: 10px 20px;
    position: relative;
}

.site-header.scrolled .navbar-nav .nav-link {
    color: var(--text-dark);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    right: 20px;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border: none;
    color: var(--text-white);
    font-size: 24px;
    padding: 5px 10px;
}

.site-header.scrolled .navbar-toggler {
    color: var(--text-dark);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 37, 47, 0.9) 0%, rgba(26, 95, 122, 0.8) 100%);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 550px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-white);
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Search Box */
.search-box-wrapper {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    z-index: 10;
}

.search-box {
    background: var(--text-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.search-box .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.search-box .form-select,
.search-box .form-control {
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

.search-box .form-select:focus,
.search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

/* ============================================
   PROPERTIES SECTION
   ============================================ */
.properties-section {
    padding-top: 150px;
}

.property-card {
    background: var(--text-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.property-badge.sale {
    background: var(--accent-color);
}

.property-badge.rent {
    background: #27ae60;
}

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--text-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.favorite-btn:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

.property-content {
    padding: 25px;
}

.property-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.property-price .period {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
}

.property-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.property-location {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.property-location i {
    color: var(--accent-color);
    margin-right: 5px;
}

.property-features {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.property-features span {
    font-size: 14px;
    color: var(--text-light);
}

.property-features i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background-color: var(--bg-light);
}

.service-card {
    background: var(--text-white);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--text-white);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-description {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
}

.service-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--accent-color);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-images {
    position: relative;
    padding: 30px;
}

.about-img-1 {
    border-radius: 15px;
    box-shadow: var(--shadow);
    width: 100%;
}

.about-img-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--text-white);
}

.experience-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--accent-color);
    color: var(--text-white);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.experience-badge .years {
    display: block;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content .section-title {
    margin-bottom: 25px;
}

.about-description {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 17px;
}

.about-features {
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 20px;
}

.feature-item span {
    font-weight: 500;
    color: var(--text-dark);
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-card {
    background: var(--text-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    transition: var(--transition);
}

.team-card:hover .team-social {
    bottom: 0;
}

.team-social a {
    width: 40px;
    height: 40px;
    background: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.team-content {
    padding: 25px;
    text-align: center;
}

.team-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.team-role {
    color: var(--primary-color);
    font-size: 14px;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.testimonials-section .section-subtitle,
.testimonials-section .section-title {
    color: var(--text-white);
}

.testimonials-slider {
    padding: 20px 0 60px;
}

.testimonial-card {
    background: var(--text-white);
    border-radius: 15px;
    padding: 40px;
    margin: 10px;
}

.testimonial-rating {
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: #f1c40f;
    font-size: 18px;
}

.testimonial-text {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0;
}

.author-info span {
    color: var(--text-light);
    font-size: 14px;
}

.testimonials-slider .swiper-pagination-bullet {
    background: var(--text-white);
    opacity: 0.5;
}

.testimonials-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--accent-color);
    padding: 80px 0;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-description {
    color: var(--text-light);
    margin-bottom: 40px;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-text h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--text-light);
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.contact-form-wrapper {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 40px;
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--text-dark);
}

.contact-form .form-control,
.contact-form .form-select {
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--text-white);
}

.contact-form textarea.form-control {
    height: auto;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-white);
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo .brand-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.footer-logo .brand-text {
    font-size: 20px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-white);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

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

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--accent-color);
}

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

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

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

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    color: var(--text-white);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 991px) {
    .section-padding {
        padding: 50px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-section {
        text-align: center;
        flex-direction: column;
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 30px;
    }

    .hero-section .min-vh-100 {
        min-height: auto !important;
    }

    /* Prevent horizontal overflow from Bootstrap row margins */
    .container, .container-fluid {
        overflow-x: hidden;
    }

    .hero-description {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        margin-bottom: 30px;
    }

    .navbar-collapse {
        background: var(--text-white);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
        box-shadow: var(--shadow);
    }

    .navbar-nav .nav-link {
        color: var(--text-dark);
    }

    /* Instant background transition on mobile (no delay) */
    .site-header {
        transition: none;
    }

    .search-box-wrapper {
        position: relative;
        bottom: auto;
        margin-top: 20px;
        padding: 0 15px;
    }

    .properties-section {
        padding-top: 100px;
    }

    .about-images {
        margin-bottom: 50px;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 25px 0;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-images {
        padding: 5px !important;
        margin-bottom: 10px !important;
    }

    .about-section .row {
        gap: 0;
    }

    .about-content {
        padding-top: 0;
    }

    /* Allow touch scrolling over cards and interactive elements */
    .property-card,
    .service-card,
    .team-card,
    .testimonial-card {
        touch-action: pan-y;
    }

    .property-card *,
    .service-card *,
    .team-card *,
    .testimonial-card * {
        touch-action: pan-y;
    }

    /* Space above buttons */
    .about-content .btn {
        margin-top: 15px;
    }

    .cta-description {
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 28px;
    }

    .search-box {
        padding: 20px;
    }

    .about-img-2 {
        display: none;
    }

    .cta-section {
        text-align: center;
    }

    .cta-title {
        font-size: 28px;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 575px) {
    .hero-buttons .btn {
        width: 100%;
    }

    .contact-form-wrapper {
        padding: 25px;
    }
}
