/* Base Reset */
:root {
    --primary-color: #f39c12; /* Laranja/Amarelo */
    --primary-hover: #e67e22;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --blue-price: #0056b3;
    --danger: #dc3545;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

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

/* --- Header --- */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: #f1c40f; /* Tom amarelo */
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.logo-link i {
    font-size: 32px;
}

.search-bar {
    display: flex;
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

.search-btn {
    background-color: var(--white);
    border: none;
    padding: 0 15px;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-light);
    transition: color 0.2s;
}

.search-btn:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-outline, .btn-primary {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-outline:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

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

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

/* Header Nav */
.header-bottom {
    background-color: #2c3e50; /* Fundo escuro */
}

.main-nav ul {
    display: flex;
    gap: 25px;
    padding: 0 20px;
}

.main-nav a {
    display: block;
    padding: 15px 0;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
}

.main-nav a.highlight {
    color: #f1c40f;
    font-weight: 700;
}

.main-nav a:hover {
    color: #f1c40f;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 0 0 4px 4px;
    z-index: 10;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: var(--text-dark);
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* --- Main Layout --- */
.main-content {
    padding-top: 20px;
    padding-bottom: 50px;
}

.breadcrumbs {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.ad-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

@media (max-width: 992px) {
    .ad-layout {
        grid-template-columns: 1fr;
    }
}

/* --- Ad Main Section --- */
.ad-header {
    margin-bottom: 20px;
}

.ad-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.ad-subtitle {
    font-weight: 400;
    color: var(--text-light);
    font-size: 20px;
}

.ad-location {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Gallery */
.gallery-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    height: 400px;
}

.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100px;
    overflow-y: auto;
}

.thumb-item {
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    height: 80px;
    flex-shrink: 0;
}

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

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

.gallery-main {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
}

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

.price-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--blue-price);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Action Bar */
.action-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.action-btn i {
    font-size: 18px;
}

.action-btn:hover {
    color: var(--primary-color);
}

.action-btn.danger:hover {
    color: var(--danger);
}

/* Vehicle Info Card */
.vehicle-info-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vehicle-info-card h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dark);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
}

.info-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    margin-top: 4px;
}

/* --- Sidebar --- */
.contact-box, .seller-box {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Contact Box */
.contact-header {
    text-align: center;
    margin-bottom: 20px;
}

.contact-header h2 {
    font-size: 16px;
    color: var(--text-dark);
}

.contact-header p {
    font-size: 14px;
    color: var(--text-light);
}

.contact-tabs {
    display: flex;
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: var(--white);
    color: var(--text-light);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.checkbox-group label {
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--primary-hover);
}

/* Seller Box */
.seller-box h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.seller-avatar {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-light);
}

.seller-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
}

.seller-since {
    font-size: 12px;
    color: var(--text-light);
}

.seller-contact {
    margin-bottom: 15px;
}

.phone-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.badge-ver {
    background: var(--primary-color);
    color: var(--white);
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.view-store {
    display: block;
    text-align: center;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

.view-store:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    
    .gallery-container {
        flex-direction: column-reverse;
        height: auto;
    }
    
    .gallery-thumbnails {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
    }
    
    .thumb-item {
        width: 80px;
    }
    
    .gallery-main {
        height: 300px;
    }
}

/* --- Modal de Geolocalizacao --- */
.geo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.geo-modal-box {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.geo-modal-title {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.geo-modal-text {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-geo {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

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

.btn-geo:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
