:root {
    --primary: #004aad; /* Logo Blue */
    --accent: #ed1c24;  /* Logo Red */
    --secondary: #1e40af; /* Deeper blue for contrast */
    --primary-dark: #003a8c;
    --primary-light: #336ebd;
    --bg-dark: #0f172a;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 10 100 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 40 150 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --container: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #f8fafc;
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    height: 120px;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

header.scrolled {
    height: 90px;
    box-shadow: var(--shadow-md);
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

#main-logo {
    height: 100px; /* More balanced size */
    width: auto;
    display: block;
    transition: all 0.4s ease;
}

header.scrolled #main-logo {
    height: 60px; /* Proportionally smaller */
}


/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    font-size: 15px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(0, 74, 173, 0.39);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 74, 173, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: #f1f5f9;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    color: var(--text-main);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-main);
}

.btn-secondary:hover {
    background: #e2e8f0;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: radial-gradient(circle at 50% -20%, #eff6ff 0%, #f1f5f9 60%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.05;
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    max-width: 800px;
    margin: 0 auto 24px;
    line-height: 1.1;
}

.hero p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 8px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.input-group {
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.input-group i {
    color: var(--text-muted);
}

.input-group input {
    border: none;
    outline: none;
    padding: 12px 16px;
    flex: 1;
    font-size: 16px;
}

/* Categories */
.categories {
    margin-bottom: 60px;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.cat-card {
    background: var(--white);
    border-radius: 20px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.cat-card.active {
    background: #f0f7ff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);
}

.cat-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--primary);
    transition: all 0.3s ease;
}

.cat-card:hover .cat-icon-box {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.cat-card.active .cat-icon-box {
    background: var(--primary);
    color: white;
}

.cat-icon-box i {
    width: 28px;
    height: 28px;
}

.cat-card span {
    color: var(--text-main);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}

.cat-card.active span {
    color: var(--primary);
}

/* Ads Grid */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 28px;
}

.badge {
    padding: 4px 12px;
    background: #e0e7ff;
    color: var(--primary);
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    min-height: 400px;
}

.ad-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ad-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.ad-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    background: #f1f5f9;
}

.ad-info {
    padding: 20px;
    flex: 1;
}

.ad-cat {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.ad-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.ad-desc {
    font-size: 14px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

.ad-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.ad-cta {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #eff6ff;
    padding: 6px 12px;
    border-radius: 50px;
}

/* View System */
.view {
    display: none;
    min-height: calc(100vh - 160px);
    padding: 40px 0;
    animation: fadeIn 0.4s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.view-header-wrapper {
    margin-bottom: 12px;
    padding-top: 10px;
}

.btn-back {
    margin-bottom: 20px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-muted);
}

.btn-back:hover {
    background: #f8fafc;
    color: var(--primary);
    border-color: var(--primary);
}

.form-container-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    max-width: 650px;
    margin: 0 auto;
}

/* Notifications */
#notification-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification {
    background: var(--bg-dark);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    min-width: 300px;
}

.notification.success {
    border-left: 4px solid #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}


/* Form Steps */
.steps-indicator {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.step {
    flex: 1;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
}

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

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-actions {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Upload Style */
.photo-upload-section {
    margin-bottom: 24px;
}

.main-photo-upload {
    height: 200px;
    background: #f8fafc;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}

.main-photo-upload:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.upload-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.upload-placeholder i {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

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

.gallery-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.slot {
    aspect-ratio: 1;
    background: #f8fafc;
    border: 1px dashed var(--border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

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

.btn-remove-photo {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 10px;
}

/* Detail View Layout */
#detail-view {
    padding: 20px 0 60px;
}

#detail-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.biz-detail {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.biz-visuals {
    padding: 0;
    background: transparent;
}

.main-biz-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
    border: 4px solid var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery-img {
    height: 110px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-img:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.biz-info-panel {
    padding: 40px;
    border-left: none;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: sticky;
    top: 130px;
}

.biz-info-panel .ad-cat {
    margin-bottom: 12px;
    background: #eff6ff;
    padding: 4px 12px;
    border-radius: 50px;
    width: fit-content;
}

.biz-info-panel h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--primary);
    line-height: 1.2;
}

.biz-info-panel .biz-desc-text {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
    white-space: pre-line;
}

.social-profiles {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.social-btn {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.2s;
    text-decoration: none;
}

.social-btn:hover {
    background: #eff6ff;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.social-btn.instagram i { color: #e1306c; }
.social-btn.facebook i { color: #1877f2; }

.btn-share {
    background: #f1f5f9;
    color: var(--text-main);
    width: 100%;
    margin-top: 12px;
    font-size: 13px;
    border: 1px dashed var(--border);
}

.btn-share:hover {
    background: #e2e8f0;
    border-style: solid;
}

/* New Sections in Detail */
.detail-section-title {
    font-size: 24px;
    color: var(--text-main);
    margin: 32px 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlights-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    background: #f0fdf4;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #dcfce7;
}

.highlight-item i {
    width: 16px;
    height: 16px;
    color: #166534;
}

.location-box {
    margin-top: 24px;
}

.address-text {
    font-size: 14px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-weight: 500;
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background: #f1f5f9;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.map-placeholder::after {
    content: "Mapa de localização";
    font-size: 13px;
    font-weight: 600;
}

/* Custom button for related ads */
.btn-view-more {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.contact-card {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    padding: 24px;
    border-radius: var(--radius-lg);
}

.contact-card h4 {
    color: #166534;
    margin-bottom: 8px;
}

.contact-card .btn-whatsapp {
    width: 100%;
    margin-top: 16px;
    background: #10b981;
    color: white;
}

.contact-card .btn-whatsapp:hover {
    background: #059669;
}

.whatsapp-icon {
    display: inline-block;
    vertical-align: middle;
}

/* Animations */
.animate-up {
    animation: slideUp 0.8s cubic-bezier(0.2, 0, 0, 1) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    color: var(--text-muted);
}

.empty-state i {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.slot-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s;
}

.slot-empty:hover {
    color: var(--primary);
    background: #f1f5f9;
}
@media (max-width: 900px) {
    .biz-detail {
        grid-template-columns: 1fr;
    }
    .biz-info-panel {
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 600px) {
    .nav-actions span { display: none; }
    .hero h1 { font-size: 32px; }
    .form-container-card { padding: 24px; border-radius: 0; border: none; box-shadow: none; }
    .gallery-slots { grid-template-columns: repeat(3, 1fr); }
}

footer {
    padding: 40px 0;
    text-align: center;
    margin-top: 80px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}
