@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;600&display=swap');

:root {
    --ink: #0f172a;
    --muted: #4b5563;
    --bg: #f5f4ef;
    --card: #ffffff;
    --accent: #f97316;
    --accent-2: #0ea5e9;
    --line: #e5e7eb;
    --shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Space Grotesk', 'Manrope', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(14,165,233,0.08), transparent 25%),
                radial-gradient(circle at 80% 10%, rgba(249,115,22,0.10), transparent 30%),
                var(--bg);
    color: var(--ink);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

header {
    padding: 18px 32px;
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background: rgba(245, 244, 239, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    z-index: 10;
}

.topbar {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.brand .dot {
    width: 12px;
    height: 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: var(--shadow);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--ink);
}

.btn:hover {
    transform: translateY(-1px);
}

.hero {
    max-width: 1180px;
    margin: 24px auto 12px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(14,165,233,0.08), rgba(249,115,22,0.08));
    border-radius: calc(var(--radius) + 4px);
    display: grid;
    grid-template-columns: 2fr 1.1fr;
    gap: 24px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.hero h1 {
    margin: 0 0 12px;
    font-size: 32px;
    letter-spacing: -0.03em;
}

.hero p {
    margin: 0;
    color: var(--muted);
    max-width: 620px;
}

.hero .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
}

.chip {
    padding: 8px 12px;
    background: #fff;
    color: var(--ink);
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    font-weight: 600;
}

.hero-card {
    background: #0f172a;
    color: #f8fafc;
    border-radius: var(--radius);
    padding: 18px;
    display: grid;
    gap: 8px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 20%, rgba(14,165,233,0.3), transparent 35%),
                radial-gradient(circle at 20% 60%, rgba(249,115,22,0.25), transparent 40%);
    opacity: 0.8;
}

.hero-card > * {
    position: relative;
    z-index: 1;
}

.hero-card .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(248, 250, 252, 0.7);
}

.hero-card .price {
    font-size: 26px;
    font-weight: 700;
}

.stats {
    margin-top: 6px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    color: rgba(248, 250, 252, 0.86);
}

.filters {
    max-width: 1180px;
    margin: 6px auto 20px;
    padding: 12px 20px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.field {
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: var(--muted);
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.catalog {
    max-width: 1180px;
    margin: 0 auto 60px;
    padding: 0 12px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0;
}

.section-head h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    display: grid;
    gap: 10px;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.card .cover {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 180px;
    background: linear-gradient(135deg, rgba(14,165,233,0.18), rgba(249,115,22,0.25));
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.9);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.04);
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
}

.card h3 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.price {
    font-size: 18px;
    font-weight: 700;
}

.status {
    text-transform: capitalize;
    font-weight: 700;
    font-size: 12px;
}

.status.disponivel { color: #15803d; }
.status.reservado { color: #ca8a04; }
.status.vendido { color: #b91c1c; }

.empty {
    padding: 28px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px dashed rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--muted);
}

.detail {
    max-width: 1080px;
    margin: 20px auto 60px;
    background: #fff;
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.detail .cover {
    border-radius: var(--radius);
    overflow: hidden;
    height: 360px;
    background: linear-gradient(135deg, rgba(14,165,233,0.18), rgba(249,115,22,0.25));
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

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

.gallery-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.gallery-thumbs img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
}

.gallery-thumbs img:hover {
    border-color: var(--accent-2);
}

.card-slider,
.cover-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-slider .slide,
.cover-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(14,165,233,0.18), rgba(249,115,22,0.25));
}

.card-slider .slide.active,
.cover-slider .slide.active {
    opacity: 1;
}

.card-slider img,
.cover-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.35);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.slider-nav.prev { left: 10px; }
.slider-nav.next { right: 10px; }

#map {
    width: 100%;
    height: 340px;
    border-radius: var(--radius);
    margin: 22px 0;
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
}

.detail h1 {
    margin: 14px 0 6px;
    letter-spacing: -0.02em;
}

.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px;
}

.feature-list li {
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 12px;
    font-weight: 600;
    color: var(--muted);
}

.admin-wrap {
    max-width: 1080px;
    margin: 30px auto 60px;
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.table th,
.table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 14px;
}

.table th {
    color: var(--muted);
}

.actions {
    display: flex;
    gap: 8px;
}

.flash {
    padding: 12px;
    border-radius: 12px;
    margin: 10px 0;
    font-weight: 600;
}

.flash.success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.flash.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

footer {
    text-align: center;
    padding: 20px;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .filters {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 640px) {
    header {
        padding: 14px;
    }

    .hero {
        padding: 20px;
    }

    .card .cover {
        height: 160px;
    }
}
