/*
Theme Name: PrmeHaven
Theme URI: https://ryanroyaranas.com/primehaven
Description: Premium & responsive theme designed for Real Estate companies and independent agents.
Version: 1.0
Author: Ryan Roy
Author URI: https://ryanroyaranas.com
*/


:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --dark: #1a1a1a;
}

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    margin: 0;
}

/* Header Styles */
.top-header {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--white);
    font-size: 14px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.top-header .social-media a {
    color: var(--white);
    margin-right: 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.top-header .social-media a:hover {
    color: var(--secondary-color);
}

.main-header {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    top: 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand h1 {
    color: var(--white);
    font-weight: 700;
    font-size: 28px;
}

.main-header.scrolled .navbar-brand h1 {
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.main-header.scrolled .navbar-nav .nav-link {
    color: var(--primary-color);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color);
}

.header-right .phone-number {
    color: var(--white);
    font-weight: 500;
}

.main-header.scrolled .header-right .phone-number {
    color: var(--primary-color);
}

.user-account {
    color: var(--white);
    font-size: 18px;
}

.main-header.scrolled .user-account {
    color: var(--primary-color);
}

.add-listing-btn {
    background-color: var(--secondary-color);
    border: none;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.add-listing-btn:hover {
    background-color: #c0392b;
}

.outline-listing {
    background-color: transparent;
    color: var(--secondary-color);
    border: solid 1px var(--secondary-color);
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.outline-listing:hover {
    background-color: #c0392b;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    background: url('hero.jpg') no-repeat center center;
    background-size: cover;
    color: var(--white);
    top: 0;
    margin-top: 0;
    padding-top: 50px;
}

.hero-section .container {
    padding-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--secondary-color);
}

.hero-content .lead {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-content .btn {
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 600;
}

.search-box {
    position: relative;
    z-index: 1;
}

.tab-content {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.nav-tabs {
    border-bottom: 0;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
}

.nav-tabs .nav-link {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 10px 20px;
    margin: 0 5px;
}

.nav-tabs .nav-link.active {
    color: var(--white);
    background-color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control, .form-select {
    height: 50px;
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 10px 15px;
}

.search-form .btn {
    height: 50px;
    font-weight: 600;
    margin-top: 10px;
}

/* Properties by Area Section */
.properties-by-area {
    background-color: var(--light-bg);
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header .lead {
    color: #666;
    font-size: 18px;
}

.city-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.city-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.city-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.city-card:hover .city-image img {
    transform: scale(1.05);
}

.city-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.city-info {
    padding: 15px;
    background: var(--white);
}

.city-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.city-info p {
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0;
}

/* Featured Properties */
.featured-properties {
    background-color: var(--light-bg);
}

.section-title h2 {
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-title p {
    color: #777;
}

/* Latest Properties Section */
.latest-properties {
    background-color: var(--white);
}

.property-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    background: var(--white);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.property-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.property-features {
    display: flex;
    justify-content: space-between;
    color: var(--white);
    font-size: 14px;
}

.property-features i {
    margin-right: 5px;
}

.property-info {
    padding: 20px;
}

.property-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.property-info h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.property-info h3 a:hover {
    color: var(--secondary-color);
}

.property-address {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.property-address i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.property-price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 18px;
}

.property-type {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.property-actions {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
}

.property-actions .btn {
    flex: 1;
    margin: 0 5px;
}

/* Properties by Category Section */
.properties-by-category {
    background-color: var(--light-bg);
}

.category-card {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background-color: var(--secondary-color);
    color: var(--white);
}

.category-icon i {
    font-size: 32px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon i {
    color: var(--white);
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.count {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
}

.category-card a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-card a:hover {
    color: var(--secondary-color);
}

.category-card a i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.category-card a:hover i {
    transform: translateX(3px);
}

/* Properties for Rent Section */
.properties-for-rent {
    background-color: var(--white);
}

#rentalCarousel {
    padding: 0 40px;
    position: relative;
}

#rentalCarousel .carousel-control-prev,
#rentalCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

#rentalCarousel .carousel-control-prev {
    left: -20px;
}

#rentalCarousel .carousel-control-next {
    right: -20px;
}

#rentalCarousel .carousel-control-prev-icon,
#rentalCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.property-badge.for-rent {
    background-color: #3498db;
}

#rentalCarousel .property-card {
    margin-bottom: 20px;
}

/* Featured Properties Section */
.featured-properties {
    background-color: var(--light-bg);
}

.featured-property-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.featured-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.featured-property-card .property-image {
    position: relative;
    height: 100%;
    min-height: 300px;
}

.featured-property-card .property-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-property-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.featured-property-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-property-card h3 a:hover {
    color: var(--secondary-color);
}

.property-description {
    color: #666;
    margin: 15px 0;
    flex-grow: 1;
}

.property-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.property-features-list span {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.property-features-list i {
    margin-right: 5px;
}

.property-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.property-actions .btn {
    flex: 1;
}

/* Our Agents Section */
.our-agents {
    background-color: var(--white);
}

.agent-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.agent-image {
    width: 180px;
    height: 180px;
    overflow: hidden;
    border: 5px solid rgba(231, 76, 60, 0.2);
    border-radius: 50%;
}

.agent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-card h3 {
    font-size: 22px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.position {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.agent-contact p {
    color: #666;
    margin-bottom: 8px;
}

.agent-contact i {
    color: var(--secondary-color);
    width: 20px;
}

.agent-social {
    margin: 15px 0;
}

.agent-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.agent-social a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-bg);
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.testimonial-rating {
    color: #FFD700;
    font-size: 18px;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 60px;
    color: rgba(231, 76, 60, 0.1);
    position: absolute;
    left: -15px;
    top: -25px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* Carousel Styling */
#testimonialCarousel {
    padding: 0 60px;
    position: relative;
}

#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

#testimonialCarousel .carousel-control-prev {
    left: 0;
}

#testimonialCarousel .carousel-control-next {
    right: 0;
}

#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Contact Form Section */
.contact-form-section {
    position: relative;
    padding: 100px 0;
    color: #fff;
    overflow: hidden;
}

.parallax-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform: translateZ(0);
    will-change: transform;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form-container .section-header h2 {
    color: var(--primary-color);
    font-size: 36px;
}

.contact-form-container .section-header .lead {
    color: #666;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-control {
    height: 50px;
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    background-color: #fff;
}

.contact-form textarea.form-control {
    height: auto;
    min-height: 150px;
}

.contact-form .btn-primary {
    height: 50px;
    font-weight: 600;
    border: none;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.contact-info, .category-list {
    padding: 0;
}

.contact-info li {
    margin-bottom: 15px;
    list-style: none;
}

.contact-info i {
    width: 20px;
}

.social-media a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.social-media a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.category-list li {
    margin-bottom: 10px;
    list-style: none;
}

.category-list a {
    color: #bbb;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-list a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.latest-property .property-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.latest-property h5 a {
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.latest-property h5 a:hover {
    color: var(--secondary-color);
}

.latest-property p {
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 5px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .main-header {
        top: 0;
        background-color: var(--white);
    }
    
    .navbar-brand h1 {
        color: var(--primary-color);
    }
    
    .navbar-nav .nav-link {
        color: var(--primary-color);
        padding: 8px 0;
    }
    
    .header-right {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }
    
    .header-right .phone-number {
        color: var(--primary-color);
    }
    
    .user-account {
        color: var(--primary-color);
    }
}

@media (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 48px;
    }
    
    .hero-content .lead {
        font-size: 18px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 150px;
        padding-bottom: 50px;
        height: auto;
        min-height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .search-box {
        margin-top: 40px;
    }
}

@media (max-width: 575.98px) {
    .nav-tabs .nav-link {
        flex: 1;
        text-align: center;
        padding: 10px;
    }
}

@media (max-width: 767.98px) {
    .section-header h2 {
        font-size: 28px;
    }
    
    .city-image {
        height: 150px;
    }
}

@media (max-width: 767.98px) {
    .property-image {
        height: 200px;
    }
    
    .property-info {
        padding: 15px;
    }
}

@media (max-width: 575.98px) {
    .property-actions {
        flex-direction: column;
    }
    
    .property-actions .btn {
        width: 100%;
        margin: 5px 0;
    }
}

@media (max-width: 767.98px) {
    .category-card {
        padding: 20px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-icon i {
        font-size: 24px;
    }
}

@media (max-width: 767.98px) {
    #rentalCarousel {
        padding: 0;
    }
    
    #rentalCarousel .carousel-control-prev,
    #rentalCarousel .carousel-control-next {
        display: none;
    }
    
    #rentalCarousel .property-card {
        margin: 0 10px;
    }
}

@media (max-width: 991.98px) {
    .featured-property-card .row {
        flex-direction: column;
    }
    
    .featured-property-card .property-image {
        min-height: 250px;
        height: 250px;
    }
    
    .featured-property-card .property-info {
        padding: 20px;
    }
}

@media (max-width: 575.98px) {
    .property-actions {
        flex-direction: column;
    }
    
    .property-actions .btn {
        width: 100%;
    }
    
    .property-features-list {
        gap: 5px;
    }
    
    .property-features-list span {
        font-size: 12px;
        padding: 3px 8px;
    }
}

@media (max-width: 767.98px) {
    .agent-image {
        width: 150px;
        height: 150px;
    }
    
    .agent-card {
        padding: 25px;
    }
}

@media (max-width: 575.98px) {
    .agent-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 991.98px) {
    #testimonialCarousel {
        padding: 0;
    }
    
    #testimonialCarousel .carousel-control-prev,
    #testimonialCarousel .carousel-control-next {
        display: none;
    }
    
    .testimonial-card {
        padding: 25px;
    }
}

@media (max-width: 767.98px) {
    .testimonial-text {
        font-size: 15px;
    }
    
    .testimonial-author img {
        width: 50px;
        height: 50px;
    }
}

@media (min-width: 992px) {
    .parallax-background {
        background-attachment: fixed;
    }
}

@media (max-width: 991.98px) {
    .contact-form-section {
        padding: 60px 0;
    }
    
    .contact-form-container,
    .contact-info {
        padding: 30px;
    }
    
    .contact-info {
        margin-top: 30px;
    }
}

@media (max-width: 575.98px) {
    .contact-form-container,
    .contact-info {
        padding: 25px;
    }
    
    .contact-form-container .section-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 767.98px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}