/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Roboto, sans-serif;
    color: #333;
    font-size: 18px;
    line-height: 1.4;
    background-color: transparent;
}

/* Layout */
.site {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    background: #fff;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

/* Links */
a {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1976D2;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Grid Layout */
.property-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 30px 0;
}

/* Property Card */
.property-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-image {
    position: relative;
    padding-top: 75%;
}

.property-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.property-status.available {
    background: #4CAF50;
}

.property-status.sold {
    background: #f44336;
}

.property-status.pending {
    background: #FFC107;
}

.property-info {
    padding: 20px;
}

.property-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.property-info h3 a {
    color: #333;
    text-decoration: none;
}

.property-price {
    font-size: 20px;
    font-weight: bold;
    color: #2196F3;
    margin-bottom: 10px;
}

.property-details {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.property-location {
    font-size: 14px;
    color: #666;
}

/* Search Form */
.real-estate-search-form {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.search-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    margin-bottom: 5px;
    font-weight: bold;
}

.search-field input,
.search-field select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-submit {
    text-align: center;
}

.search-submit .button {
    background: #2196F3;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.search-submit .button:hover {
    background: #1976D2;
}

/* Contact Form */
.real-estate-contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-submit {
    text-align: center;
}

.form-submit .button {
    background: #4CAF50;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.form-submit .button:hover {
    background: #388E3C;
}

.form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.form-message.success {
    background: #E8F5E9;
    color: #2E7D32;
}

.form-message.error {
    background: #FFEBEE;
    color: #C62828;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination .page-number {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination .page-number:hover,
.pagination .page-number.active {
    background: #2196F3;
    color: #fff;
    border-color: #2196F3;
}

/* Responsive */
@media (max-width: 1200px) {
    .property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .property-grid {
        grid-template-columns: 1fr;
    }

    .search-row {
        grid-template-columns: 1fr;
    }
}

/* Slider Styles */
.property-slider {
    position: relative;
    margin: 0;
    padding: 0;
}

.property-slider .owl-item {
    padding: 10px;
}

.property-slider .property-card {
    margin: 0;
    height: 100%;
    transition: transform 0.3s ease;
}

.property-slider .property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* OWL Navigation */
.property-slider .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1;
    transition: all 0.3s ease;
}

.property-slider .owl-nav button:hover {
    background: #2196F3 !important;
}

.property-slider .owl-nav button.owl-prev {
    left: 0;
}

.property-slider .owl-nav button.owl-next {
    right: 0;
}

.property-slider .owl-nav button i {
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.property-slider .owl-nav button:hover i {
    color: #fff;
}

/* OWL Dots */
.property-slider .owl-dots {
    margin-top: 0;
    text-align: center;
}

.property-slider .owl-dot {
    display: inline-block;
    margin: 0 4px;
}

.property-slider .owl-dot span {
    display: block;
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.property-slider .owl-dot.active span {
    background: #2196F3;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .property-slider {
        padding: 0 30px;
    }
    
    .property-slider .owl-nav button {
        width: 35px;
        height: 35px;
    }
    
    .property-slider .owl-nav button i {
        font-size: 14px;
    }
}

/* Property Detail Page */
.property-detail-wrapper {
    padding: 20px 0;
    background: #f2f2f2;
}

.property-breadcrumb {
    background: #fff;
    padding: 12px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.property-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.property-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.property-breadcrumb a:hover {
    color: #2196F3;
}

.property-detail-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Gallery Styles */
.property-gallery {
    margin-bottom: 15px;
    background: #fff;
}

.gallery-main {
    position: relative;
    background: #f8f9fa;
}

.gallery-main .item {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.gallery-main .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-main .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    margin: 0;
}

.gallery-main .owl-nav button {
    position: absolute;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.5) !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 20px !important;
    line-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gallery-main .owl-nav button.owl-prev {
    left: 15px;
}

.gallery-main .owl-nav button.owl-next {
    right: 15px;
}

.gallery-thumbs {
    padding: 10px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

.gallery-thumbs .thumb-item {
    padding: 3px;
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-thumbs .thumb-item img {
    width: 100%;
    height: 70px;
    object-fit: cover;
}

.gallery-thumbs .thumb-item.active {
    border-color: #2196F3;
}

/* Property Header */
.property-header {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.property-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.property-title h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
    flex: 1;
    font-weight: 600;
}

.property-status {
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

.property-status.available {
    background: #4CAF50;
}

.property-status.sold {
    background: #f44336;
}

.property-status.pending {
    background: #FFC107;
}

.property-price {
    font-size: 22px;
    font-weight: 600;
    color: #e53935;
}

/* Property Description */
.property-description {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.property-description h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.description-content {
    line-height: 1.6;
    color: #666;
    font-size: 14px;
}

/* Property Info Grid */
.property-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item i {
    font-size: 20px;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-content .label {
    font-size: 13px;
    color: #666;
}

.info-content .value {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

/* Property Features */
.property-features {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.property-features h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    font-size: 14px;
    color: #666;
}

.feature-item i {
    color: #4CAF50;
    font-size: 14px;
}

/* Registration Form */
.property-registration {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
}

.property-registration h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.form-submit .button {
    background: #e53935;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.form-submit .button:hover {
    background: #c62828;
}

/* Sidebar */
.property-sidebar {
    position: sticky;
    top: 20px;
}

.contact-info {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
}

.contact-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.contact-info .info-item {
    margin-bottom: 12px;
    padding: 8px;
    font-size: 14px;
    color: #666;
}

.related-properties {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
}

.related-properties h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.related-properties .owl-carousel {
    margin: 0 -10px;
}

.related-property {
    padding: 0 10px;
}

.property-thumbnail {
    width: 100%;
    height: 200px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.property-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-property .property-info h4 {
    margin: 0 0 5px;
    font-size: 14px;
}

.related-property .property-info h4 a {
    color: #333;
    text-decoration: none;
}

.related-property .property-price {
    font-size: 18px;
    color: #e53935;
    font-weight: 500;
    text-align: center;
}

/* Contact Button */
.contact-button {
    text-align: center;
    margin: 20px 0;
}

.contact-button .button {
    background: #e53935;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.contact-button .button:hover {
    background: #c62828;
}

/* Contact Form Popup */
.contact-form-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.contact-form-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    border-radius: 3px;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .property-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-main .item {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .property-info-grid {
        grid-template-columns: 1fr;
    }

    .gallery-main .item {
        height: 200px;
    }

    .property-title h1 {
        font-size: 20px;
    }
} 