/* WpResidence HTML Template Styles */

/* Color Scheme based on Phoenix WpResidence theme */
:root {
    --primary-color: #11302d;
    --secondary-color: #0c4651;
    --accent-color: #2c5aa0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --white: #ffffff;
}

/* Global Styles */
body {
    font-family: 'DM Sans', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}

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

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

.text-primary {
    color: var(--primary-color) !important;
}

/* Header Styles */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand .logo {
    max-height: 40px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--dark-gray);
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.property-search-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Property Cards */
.property-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

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

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

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

.property-status {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.property-status.sale {
    background: var(--success-color);
    color: var(--white);
}

.property-status.rent {
    background: var(--accent-color);
    color: var(--white);
}

.property-price {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.8);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
}

.property-content {
    padding: 1.5rem;
}

.property-title a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
}

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

.property-location {
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

.property-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Property Filters */
.property-filters {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
}

.results-count {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Single Property Styles */
.property-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.property-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.property-address {
    font-size: 1.1rem;
    color: var(--medium-gray);
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.feature-item {
    text-align: center;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.feature-item h5 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.feature-item p {
    margin: 0;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Agent Cards */
.agent-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.agent-image {
    position: relative;
    text-align: center;
    background: var(--light-gray);
    padding: 2rem 1rem 1rem;
}

.agent-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.agent-social {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.agent-content {
    padding: 1.5rem;
}

.agent-name a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.3rem;
}

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

.agent-title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.agent-stats {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.agent-contact {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.agent-contact i {
    width: 15px;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Sidebar Styles */
.sidebar .widget {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.recent-posts,
.categories,
.footer-links {
    list-style: none;
    padding: 0;
}

.recent-posts li,
.categories li,
.footer-links li {
    margin-bottom: 0.5rem;
}

.recent-posts a,
.categories a,
.footer-links a {
    color: var(--medium-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-posts a:hover,
.categories a:hover,
.footer-links a:hover {
    color: var(--primary-color);
}

/* Blog Styles */
.blog-post-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.blog-post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-post-card .card-body {
    padding: 1.5rem;
}

/* Footer Styles */
.main-footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.main-footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.main-footer p,
.main-footer li {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

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

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

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

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

.social-links .social-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links .social-link:hover {
    color: var(--white);
}

/* Property Single Page Specific */
.property-gallery .carousel-item img {
    height: 500px;
    object-fit: cover;
}

.gallery-thumbnails .thumbnail {
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.gallery-thumbnails .thumbnail:hover {
    opacity: 1;
}

.agent-contact-card .agent-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.mortgage-calculator .result {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

.similar-property {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.similar-property img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.similar-content h6 a {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 0.9rem;
}

.similar-content h6 a:hover {
    color: var(--primary-color);
}

.similar-content .price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.similar-content .details {
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin: 0;
}

/* Top Agents Widget */
.top-agent {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.agent-thumb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.agent-info h6 a {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 0.9rem;
}

.agent-info h6 a:hover {
    color: var(--primary-color);
}

/* Contact Widget */
.contact-widget {
    text-align: center;
}

.contact-info {
    margin: 1rem 0;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .property-title {
        font-size: 1.8rem;
    }
    
    .property-features {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .property-search-form {
        padding: 1rem;
    }
    
    .similar-property {
        flex-direction: column;
        text-align: center;
    }
    
    .similar-property img {
        width: 100%;
        height: 150px;
    }
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Custom Bootstrap overrides */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(17, 48, 45, 0.25);
}

.breadcrumb {
    background: transparent;
    padding: 1rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--medium-gray);
}

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

.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    color: var(--secondary-color);
    background-color: var(--light-gray);
}