/* Estilos específicos para páginas PHP */

/* Page Header */
.page-header {
    position: relative;
    background-image: url('../images/banner.png?v=9') !important;
    background-size: cover !important;
    background-position: center !important;
    color: white;
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* Page Header específico para propriedades */
.page-header.properties-banner {
    background-image: url('../images/bannerProp.png?v=10') !important;
}

/* Page Header específico para veículos */
.page-header.vehicles-banner {
    background-image: url('../images/bannerVeiculo.png?v=11') !important;
}

/* Page Header específico para sobre */
.page-header.about-banner {
    background-image: url('../images/bannerSobre.png?v=12') !important;
    min-height: 400px;
    padding: 0;
}

/* Page Header específico para contacto */
.page-header.contact-banner {
    background-image: url('../images/contactos.png?v=13') !important;
    min-height: 400px;
    padding: 0;
}

.page-header::after {
    display: none;
}

.page-header .container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Search Filters */
.search-filters {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid #e9ecef;
}

.filter-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #CE1126;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: end;
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 20px;
}

.results-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options label {
    font-weight: 600;
    color: #666;
}

.sort-options select {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-results i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding: 0 20px;
}

.page-btn {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-btn:hover {
    border-color: #CE1126;
    color: #CE1126;
}

.page-btn.active {
    background: #CE1126;
    border-color: #CE1126;
    color: white;
}

/* Property/Vehicle Details */
.property-details,
.vehicle-details {
    padding: 80px 0;
}

.details-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.details-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.property-gallery,
.vehicle-gallery {
    width: 100%;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-info,
.vehicle-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.property-header,
.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.property-header h1,
.vehicle-header h1 {
    font-size: 2rem;
    color: #333;
    margin: 0;
    flex: 1;
}

.property-badge,
.vehicle-badge {
    background: #FFCD00;
    color: #000000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 1rem;
}

.property-location,
.vehicle-location {
    color: #666;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-location i,
.vehicle-location i {
    color: #FFCD00;
}

.property-price,
.vehicle-price {
    font-size: 2rem;
    font-weight: 700;
    color: #CE1126;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2.5rem;
}

.period {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.property-features,
.vehicle-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature,
.spec {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-weight: 500;
}

.feature i,
.spec i {
    color: #CE1126;
    width: 20px;
}

.property-description,
.vehicle-description {
    margin-bottom: 2rem;
}

.property-description h3,
.vehicle-description h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
}

.property-description p,
.vehicle-description p {
    color: #666;
    line-height: 1.8;
}

.property-amenities,
.vehicle-features {
    margin-bottom: 2rem;
}

.property-amenities h3,
.vehicle-features h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
}

.amenities-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.amenity,
.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.amenity i,
.feature i {
    color: #28a745;
    font-size: 0.9rem;
}

/* Details Sidebar */
.details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.contact-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
}

.contact-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-item i {
    color: #CE1126;
    width: 20px;
}

.btn-block {
    width: 100%;
    margin-bottom: 0.5rem;
}

.property-summary,
.vehicle-summary {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.property-summary h4,
.vehicle-summary h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span:first-child {
    font-weight: 600;
    color: #666;
}

.summary-item span:last-child {
    color: #333;
    font-weight: 500;
}

/* Similar Properties/Vehicles */
.similar-properties,
.similar-vehicles {
    background: #f8f9fa;
    padding: 80px 0;
}

.similar-properties h2,
.similar-vehicles h2 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 3rem;
}

/* Contact Page Styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form-header {
    margin-bottom: 2rem;
}

.contact-form-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-form-header p {
    color: #666;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #CE1126;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* FAQ Section */
.faq-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.faq-item h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* About Page Styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-text h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 2rem 0 1rem 0;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-text ul {
    color: #666;
    line-height: 1.8;
    padding-left: 1.5rem;
}

.about-text li {
    margin-bottom: 0.5rem;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Stats Section */
.stats-section {
    background: #CE1126;
    color: white;
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.stat-icon i {
    font-size: 2rem;
    color: white;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    text-align: center;
}

.team-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.team-section p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #666;
    margin-bottom: 1rem;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.member-social a {
    width: 40px;
    height: 40px;
    background: #CE1126;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s ease;
}

.member-social a:hover {
    background: #FFCD00;
}

/* Why Choose Us Section */
.why-choose-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.why-choose-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: white;
}

.testimonials-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.testimonial-content p {
    color: #666;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
        min-height: 80vh;
    }
    
    .page-header .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header .hero-buttons {
        justify-content: center;
    }
    
    .page-header .hero-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .page-header .hero-stat {
        padding: 0.75rem 1rem;
        flex: 1;
        min-width: 120px;
    }
    
    .page-header .hero-stat i {
        font-size: 1.5rem;
    }
    
    .page-header .hero-stat strong {
        font-size: 1.2rem;
    }
    
    .page-header .hero-stat span {
        font-size: 0.75rem;
    }
    
    .page-header .hero-circle {
        display: none;
    }
    
    .page-header .hero-image-badge {
        top: 10px;
        right: 10px;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .details-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-btn {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}