:root {
  --brand-blue: #0055a2;
  --brand-blue-dark: #0b378c;
  --brand-yellow: #fad140;
  --accent: #ff5e00;
  --ink: #3e3e3e;
  --muted: #747474;
  --line: #e8e8e8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

.site-header { background: var(--brand-blue); color: #fff; padding: 20px 0; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: center; position: relative; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.brand img {object-fit: contain;} 
.brand span { font-size: 12px; opacity: .95; }
.header-actions { position: absolute; right: 0; display: flex; align-items: center; gap: 24px; }
.btn-anunciar { background: var(--brand-yellow); color: #242424; padding: 8px 22px; border-radius: 5px; font-weight: 700; font-size: 14px; }
.btn-entrar { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.btn-entrar img { width: 20px; height: 17px; object-fit: contain; }

.hero { text-align: center; padding: 80px 0 45px; }
    .hero img {
        width: 60px;
        height: 78px;
        margin-bottom: 22px;
        margin-right: 15px;
    }
.hero h1 { margin: 0; color: #2466b3; font-size: clamp(75px, 5vw, 48px); letter-spacing: 1px; }
.hero-divider { width: 86px; height: 3px; background: #2466b3; margin: 20px auto 24px; }
.hero p { margin: 0; font-size: 17px; color: #505050; }
.categories { display: flex; justify-content: center; gap: clamp(42px, 9vw, 120px); flex-wrap: wrap; padding: 35px 0 92px; }
.category-item { width: 210px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; font-size: 20px; font-weight: 500; line-height: 1.35; transition: transform .2s ease; }
.category-item:hover { transform: translateY(-4px); }
.category-item img { height: 70px; width: auto; }

.tabs-band { padding: 34px 0 15px; }
.top-tabs { display: flex; gap: 15px; flex-wrap: wrap; }
.tab-pill { padding: 10px 24px; border-radius: 5px; border: 1px solid #ededed; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; box-shadow: 0 4px 15px rgba(0,0,0,.15); }
.tab-pill.active { background: var(--category-color, var(--accent)); color: #fff; border-color: var(--category-color, var(--accent)); }
.search-section { padding: 20px 0 50px; }
.search-tabs { width: min(620px, 100%); display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 2px solid #e9e9e9; margin-bottom: 25px; }
.search-tab { text-align: center; padding-bottom: 12px; font-size: 16px; font-weight: 700; }
.search-tab.active { color: var(--category-color, var(--accent)); border-bottom: 2px solid var(--category-color, var(--accent)); margin-bottom: -2px; }
.search-bar { display: flex; max-width: 1080px; min-height: 48px; border: 1px solid #cacaca; border-radius: 5px; overflow: hidden; background: #fff; }
.search-select { width: 210px; border: 0; border-right: 1px solid #cacaca; padding: 0 15px; color: var(--ink); background: #fff; }
.search-input-group { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 15px; }
.search-input-group span { font-size: 14px; }
.search-input-group input { border: 0; outline: 0; flex: 1; min-width: 120px; }
.btn-pesquisar { width: 140px; border: 0; color: #fff; background: var(--category-color, var(--accent)); font-size: 16px; font-weight: 700; cursor: pointer; }
.active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; font-size: 13px; }
.active-filters span { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border-radius: 999px; background: #f2f4f7; color: #333; font-weight: 700; }
.active-filters a { color: var(--category-color, var(--accent)); font-weight: 700; }
.results-section { padding: 0 0 80px; }
.results-title { font-size: 16px; font-weight: 400; margin: 0 0 25px; color: #000; }
.empty-results { max-width: 720px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); line-height: 1.5; background: #fff; box-shadow: -4px 5px 23px rgba(0,0,0,.06); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
.ad-card { min-height: 141px; display: flex; background: #fff; border: 1px solid var(--line); border-radius: 5px; box-shadow: -4px 5px 23px rgba(0,0,0,.1); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.ad-card:hover { transform: translateY(-2px); box-shadow: -4px 8px 25px rgba(0,0,0,.15); }
.ad-card-photo {width: 189px;object-fit: cover;flex-shrink: 0;background: #f6f6f6;width: 189px;object-fit: cover;flex-shrink: 0;background: #f6f6f6;max-height: 140px;}
.ad-card--no-photo { min-height: 118px; }
.ad-card-body { padding: 15px 20px; display: flex; flex: 1; flex-direction: column; gap: 10px; }
.ad-card h2 { margin: 0; color: var(--category-color, var(--accent)); font-size: 16px; line-height: 1.3; }
.ad-address { display: flex; justify-content: space-between; gap: 12px; color: #000; font-size: 12px; }
.ad-price { margin-top: auto; color: var(--ink); font-size: 18px; font-weight: 700; }

.gallery-container { padding: 40px 0; }
.gallery-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: 176px 176px; gap: 15px; }
.gallery-item:first-child { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-layout {display: flex;gap: 40px;padding-bottom: 60px;margin-top: 25px;}
.detail-main { flex: 1; }
.detail-main h1 { margin: 15px 0 15px; font-size: 24px; color: var(--ink); }
.detail-address { display: flex; gap: 8px; color: var(--category-color, var(--accent)); font-size: 14px; margin-bottom: 25px; }
.detail-price { font-size: 32px; font-weight: 700; margin-bottom: 30px; }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 28px 48px; margin: 0 0 40px; padding: 0; }
.feature-item { min-width: 0; }
.feature-item dt { color: #adadad; font-size: 13px; font-weight: 700; margin: 0 0 4px; }
.feature-item dd { color: #111; font-size: 18px; font-weight: 700; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.description { font-size: 14px; line-height: 1.65; margin: 20px 0 40px; }
.back-link { display: inline-flex; background: #f0f0f0; color: #888; border-radius: 5px; padding: 10px 20px; margin-bottom: 40px; }
.contact-card { width: 345px; flex-shrink: 0; border: 1px solid #dbdbdb; border-radius: 5px; box-shadow: -1px 6px 33px rgba(0,0,0,.1); padding: 30px; align-self: flex-start; position: sticky; top: 20px; }
.contact-card h2 { margin: 0 0 15px; font-size: 18px; }
.contact-line { width: 63px; height: 4px; background: var(--category-color, var(--accent)); margin-bottom: 25px; }
.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #d6d6d6; border-radius: 5px; padding: 12px 15px; }
.contact-form textarea { min-height: 117px; resize: vertical; }
.contact-form button { background: var(--category-color, var(--accent)); color: #fff; border: 0; border-radius: 5px; padding: 15px; font-weight: 700; cursor: pointer; }

.pricing { padding: 55px 0 80px; }
.pricing h1 { margin: 0 0 10px; color: #2466b3; font-size: 36px; }
.pricing p { margin: 0 0 30px; color: #505050; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.price-card { border: 1px solid var(--line); border-radius: 5px; padding: 26px; box-shadow: -4px 5px 23px rgba(0,0,0,.08); }
.price-card h2 { margin: 0 0 16px; color: var(--brand-blue); }
.price-value { font-size: 30px; font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.price-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }

.social-icons {display: grid;grid-template-columns: repeat(4, auto);justify-content: start;gap: 16px 24px;}
.social-icons a {display: flex;align-items: center;justify-content: center;transition: transform 0.2s;}
.social-icons a:hover {transform: scale(1.1);}
.social-icons img {width: 24px;height: 24px;object-fit: contain;}

.footer-bottom {background-color: #0b378c;color: #ffffff;padding: 24px 0;font-size: 12px;}.footer-bottom p {margin: 0;opacity: 0.8;}

/* CSS for section section:Footer */
.footer-top {padding: 0 0 40px 0;}

.footer-top-nav {display: flex;align-items: center;gap: 16px;font-size: 14px;color: #000000;border-top: 1px solid #e0e0e0;padding-top: 24px;}

.footer-top-nav a:hover {text-decoration: underline;}

.separator {width: 1px;height: 12px;background-color: #2466b3;}

.footer-main {background-color: #0055a2;color: #ffffff;padding: 60px 0;}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 24px 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .footer-links a {
        font-size: 14px;
        opacity: 0.9;
        transition: opacity 0.2s;
    }

        .footer-links a:hover {
            opacity: 1;
            text-decoration: underline;
        }

.footer-text {
    font-size: 14px;
    margin: 0 0 12px 0;
    opacity: 0.9;
}
._top{display: flex; flex-direction: row;justify-content:center;}

@media (max-width: 992px) {
    .card-grid, .price-grid { grid-template-columns: 1fr; }
  .detail-layout { flex-direction: column; }
  .contact-card { width: 100%; position: static; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item:first-child { grid-column: span 2; height: 300px; }
  .gallery-item:not(:first-child) { height: 200px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 18px; }
  .header-actions { position: static; justify-content: center; }
  .hero { padding-top: 58px; }
  .categories { flex-direction: column; align-items: center; padding-bottom: 60px; }
  .search-bar { flex-direction: column; border: 0; gap: 10px; }
  .search-select, .search-input-group, .btn-pesquisar { width: 100%; min-height: 48px; border: 1px solid #cacaca; border-radius: 5px; }
  .btn-pesquisar { border: 0; }
  .ad-card { flex-direction: column; }
  .ad-card-photo { width: 100%; height: 210px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .container { width: min(100% - 28px, 1200px); }
  .header-actions { width: 100%; gap: 12px; }
  .btn-anunciar { flex: 1; text-align: center; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: auto; }
  .brand img {
        max-width: 350px;
        object-fit: contain;
    }
    .hero img {
        width: 30px;
        height: 30px;
        margin-bottom: 15px;
        margin-right: 5px;
    }
    .hero h1 {
        margin: 0;
        color: #2466b3;
        font-size: clamp(30px, 5vw, 48px);
        letter-spacing: 1px;
    }
    .hero p {
        margin: 0px;
        font-size: 12px;
        color: rgb(80, 80, 80);
    }
    .footer-top-nav {
        display: flex;
        align-items: le;
        gap: 16px;
        font-size: 14px;
        color: rgb(0, 0, 0);
        border-top: 1px solid rgb(224, 224, 224);
        padding-top: 24px;
        flex-direction: column;
    }
    .social-icons {
        display: flex;
        justify-content: start;
        gap: 15px 18px;
    }
}

body.gallery-open {
  overflow: hidden;
}

.gallery-item {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-item img {
  transition: transform .22s ease, filter .22s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.025);
  filter: brightness(.92);
}

.gallery-trigger:focus-visible,
.photo-viewer button:focus-visible {
  outline: 3px solid #fad140;
  outline-offset: 3px;
}

.photo-viewer[hidden] {
  display: none;
}

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #2f2f2f;
  color: #fff;
}

.photo-viewer__bar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px clamp(14px, 3vw, 32px);
  background: #061726;
  position: relative;
}

.photo-viewer__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.photo-viewer__brand img {
  max-width: min(280px, 44vw);
  max-height: 42px;
  object-fit: contain;
}

.photo-viewer__actions {
  position: absolute;
  right: clamp(10px, 2vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.photo-viewer__control,
.photo-viewer__close,
.photo-viewer__nav {
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, .58);
  cursor: pointer;
}

.photo-viewer__control {
  min-width: 38px;
  height: 34px;
  border-radius: 4px;
  font-weight: 700;
}

.photo-viewer__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.photo-viewer__stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.photo-viewer__image-scroll {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}

.photo-viewer__image {
  max-width: min(100%, 1360px);
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform .18s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.photo-viewer__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 2px;
  font-size: 34px;
  line-height: 1;
}

.photo-viewer__nav--prev {
  left: clamp(8px, 2vw, 24px);
}

.photo-viewer__nav--next {
  right: clamp(8px, 2vw, 24px);
}

.photo-viewer__counter {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  min-width: 50px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .72);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.photo-viewer__thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px clamp(14px, 3vw, 32px);
  background: #202020;
  scrollbar-width: thin;
}

.photo-viewer__thumb {
  width: 88px;
  height: 58px;
  flex: 0 0 auto;
  border: 2px solid transparent;
  border-radius: 3px;
  padding: 0;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  opacity: .7;
}

.photo-viewer__thumb.is-active {
  border-color: #fad140;
  opacity: 1;
}

.photo-viewer__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .photo-viewer__bar {
    justify-content: flex-start;
    min-height: 56px;
  }

  .photo-viewer__brand img {
    max-width: 180px;
  }

  .photo-viewer__actions {
    gap: 6px;
  }

  .photo-viewer__control {
    min-width: 34px;
    height: 32px;
    font-size: 13px;
  }

  .photo-viewer__close {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }

  .photo-viewer__nav {
    width: 38px;
    height: 48px;
    font-size: 30px;
  }

  .photo-viewer__counter {
    bottom: 12px;
  }

  .photo-viewer__thumb {
    width: 74px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .photo-viewer {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .photo-viewer__bar {
    padding-right: 8px;
  }

  .photo-viewer__brand img {
    max-width: 130px;
  }

  .photo-viewer__control[data-gallery-zoom-reset] {
    display: none;
  }

  .photo-viewer__nav {
    top: auto;
    bottom: 76px;
    transform: none;
  }
}

