/* Tema Royal - Contrate Imóveis */
:root {
    --primary-color: #1B3C53;
    --secondary-color: #456882;
    --accent-color: #456882;
    --text-dark: #1B3C53;
    --text-light: #6c6c6c;
    --border-light: #F9F3EF;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Header Styles */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #16213e 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 1.2rem 0;
}

.navbar-brand img {
    max-height: 55px;
    width: auto;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 600;
    margin: 0 0.8rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 4rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--secondary-color);
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-address {
    font-size: 1.3rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-style: italic;
}

/* Property Details */
.property-details {
    padding: 2rem 0;
}

.property-image {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 2rem;
    border: 2px solid var(--secondary-color);
    position: relative;
}

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

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

.property-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.property-price {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.property-address {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-style: italic;
}

/* Features Floating Box */
.features-floating-box {
    background: white;
    padding: 1.8rem;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 2rem;
    border: 2px solid var(--secondary-color);
}

.features-floating-box h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
    font-family: Georgia, serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 0.8rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
}



.feature-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    padding: 0.8rem;
    border-radius: 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    text-align: left;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 0.8rem;
    min-width: 24px;
    text-align: center;
}

.feature-text {
    flex: 1;
}

.feature-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.feature-value {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--text-dark);
    line-height: 1.2;
}

/* Details Table */
.details-table {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    margin-top: 2rem;
    overflow: hidden;
    border: 1px solid var(--secondary-color);
}

.details-table h3 {
    background: linear-gradient(135deg, var(--primary-color) 0%, #16213e 100%);
    color: white;
    padding: 1.5rem 2rem;
    margin: 0;
    font-size: 1.4rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.map-link {
    color: white;
    font-size: 1rem;
    background: rgba(212, 175, 55, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: normal;
    border: 1px solid rgba(212, 175, 55, 0.5);
}

.map-link:hover {
    background: rgba(212, 175, 55, 0.5);
    color: white;
    text-decoration: none;
    transform: scale(1.05);
}

.details-table table {
    width: 100%;
    margin: 0;
    table-layout: fixed;
}

.details-table td {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.details-table tr:last-child td {
    border-bottom: none;
}

.details-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.details-table .detail-label {
    font-weight: 600;
    color: var(--text-dark);
    width: 22%;
}

.details-table .detail-value {
    color: var(--text-light);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
}

.details-table .detail-value.highlight {
    color: var(--accent-color);
    font-weight: bold;
    white-space: nowrap;
}

/* Valores monetários não quebram linha */
.details-table .detail-value.highlight,
.details-table .detail-value:has(:not(.address-value)) {
    white-space: nowrap;
}

/* Permite quebra de linha para endereços longos */
.address-value {
    white-space: normal;
    word-break: break-word;
}

/* Contact Form */
.contact-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    padding: 2.5rem;
    border-radius: 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    position: sticky;
    top: 2rem;
    border: 1px solid var(--secondary-color);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.3rem;
}

.form-control {
    border: 1px solid var(--border-light);
    border-radius: 0;
    padding: 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.btn-contact {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: var(--secondary-color);
    border-radius: 0;
}

.description-section,
.gallery-section,
.map-section {
    padding: 4rem 0;
    background: #f8f8f8;
}

.description-section:nth-child(even),
.gallery-section:nth-child(even) {
    background: white;
}

.description-content {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    font-style: italic;
}

/* Gallery Button and Modal */
.btn-gallery {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(26, 26, 46, 0.85);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 0;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    font-family: Georgia, serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gallery:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 15px;
    background-color: #f8f8f8;
    border: 1px solid var(--secondary-color);
}

.gallery-item {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--secondary-color);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.gallery-item:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* Map */
.map-container {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--secondary-color);
}

.map-container iframe {
    border-radius: 0;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 0;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    font-size: 1.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .property-title {
        font-size: 1.7rem;
    }
    
    .property-price {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float span {
        display: none;
    }
}
