/*
Theme Name: Rental House Theme (Vietnamese Market)
Description: A modern WordPress theme for displaying rental house listings - Designed for Vietnamese market
Version: 2.0
Author: Your Name
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    text-decoration: none;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: #e74c3c;
}

/* Rental House Single Page Styles */
.rental-house-single {
    background: #fff;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.rental-house-header {
    position: relative;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    padding: 3rem 2rem;
    text-align: center;
}

.rental-house-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.rental-house-location {
    font-size: 1.2rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.rental-house-content {
    padding: 2rem;
}

.rental-house-gallery {
    margin-bottom: 2rem;
}

.gallery-main {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.gallery-thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
    border: 2px solid transparent;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    border-color: #e74c3c;
    opacity: 0.9;
}

.rental-house-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.rental-house-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rental-house-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    color: #e74c3c;
    font-size: 1.2rem;
}

.rental-house-description {
    line-height: 1.8;
    color: #555;
}

.rental-house-description h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.rental-house-sidebar {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.rental-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.price-period {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
}

.rental-features {
    list-style: none;
    margin: 1.5rem 0;
}

.rental-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
}

.rental-features li:last-child {
    border-bottom: none;
}

.contact-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #e74c3c;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
}

.contact-button:hover {
    background: #c0392b;
}

.contact-button.phone-button {
    background: #27ae60;
    margin-top: 0;
}

.contact-button.phone-button:hover {
    background: #229954;
}

.contact-button.zalo-button {
    background: #0068ff;
    margin-top: 0.5rem;
}

.contact-button.zalo-button:hover {
    background: #0052cc;
}

.contact-button.email-button {
    background: #f39c12;
    margin-top: 0.5rem;
}

.contact-button.email-button:hover {
    background: #e67e22;
}

.contact-info {
    margin: 1rem 0;
    padding: 1rem;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.contact-name {
    margin: 0;
    font-weight: 600;
    color: #2c3e50;
}

.contact-name i {
    color: #e74c3c;
    margin-right: 0.5rem;
}

.amenities-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.amenity-item i {
    color: #27ae60;
}

/* Map Section */
.map-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.map-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.map-container {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.map-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.map-link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.map-link-button:hover {
    background: #c0392b;
}

.map-link-button i {
    font-size: 0.9rem;
}

/* Social Sharing */
.social-sharing {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.social-sharing h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: transform 0.2s, opacity 0.2s;
}

.share-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.share-button.facebook {
    background: #1877f2;
}

.share-button.zalo {
    background: #0068ff;
}

.share-button.twitter {
    background: #1da1f2;
}

/* Footer Styles */
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.rental-house-description h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Submit Rental House Form Styles */
.submit-rental-house-page {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 2rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-title {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    color: #e74c3c;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e74c3c;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.required {
    color: #e74c3c;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-control[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #ddd;
    background: #f8f9fa;
}

.form-control[type="file"]:hover {
    border-color: #e74c3c;
    background: #fff;
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.image-preview,
.gallery-preview {
    margin-top: 1rem;
}

.image-preview img,
.gallery-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.amenities-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.amenity-checkbox {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.amenity-checkbox:hover {
    background: #e9ecef;
}

.amenity-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.submit-button {
    background: #e74c3c;
    color: #fff;
    padding: 1rem 3rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button:hover {
    background: #c0392b;
}

.form-note {
    margin-top: 1rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    border: 1px solid #f5c6cb;
}

.view-listing-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #27ae60;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.view-listing-button:hover {
    background: #229954;
}

/* WordPress Editor Styles */
.wp-editor-container {
    border: 1px solid #ddd;
    border-radius: 6px;
}

.wp-editor-container:focus-within {
    border-color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rental-house-details {
        grid-template-columns: 1fr;
    }
    
    .rental-house-sidebar {
        position: static;
    }
    
    .rental-house-title {
        font-size: 1.8rem;
    }
    
    .gallery-main {
        height: 300px;
    }
    
    .rental-house-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .submit-rental-house-page {
        padding: 1rem;
        margin: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .amenities-checkboxes {
        grid-template-columns: 1fr;
    }
}

