/*
Theme Name: 3A Estadias
Author: 3AMKT
Description: Vitrine de hospedagens e reserva direta para o plugin 3A Reservas.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: 3a-estadias
*/
:root {
  color-scheme: light;
  --ink: #142039;
  --text: #475570;
  --blue: #306cfc;
  --link: #1749be;
  --button: #205be5;
  --soft: #eef3ff;
  --paper: #f7f9fc;
  --line: #dce3ef;
  --white: #fff;
  --shell: 1240px;
  --radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--link); text-underline-offset: .18em; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #6b95ff; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.04em; }
h1 { font-size: clamp(2.6rem, 5.5vw, 5.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 3rem); }
h3 { font-size: 1.45rem; }
.shell { width: min(var(--shell), 100% - 92px); margin-inline: auto; }
.screen-reader-text { position: absolute; overflow: hidden; clip-path: inset(50%); width: 1px; height: 1px; white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 10; inset: 12px auto auto 12px; width: auto; height: auto; clip-path: none; padding: 12px 16px; border-radius: 8px; background: var(--white); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.nav-layout { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; font-size: 1.2rem; font-weight: 820; line-height: 1.1; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; color: white; border-radius: 10px; background: var(--blue); font-size: 1.3rem; font-weight: 870; letter-spacing: -.1em; padding-right: 2px; }
.site-brand small { display: block; color: #536789; font-size: .66rem; font-weight: 760; letter-spacing: .03em; margin-top: 4px; }
.custom-logo-link { display: inline-flex; }
.custom-logo-link img { width: auto; height: auto; max-height: 49px; max-width: 180px; }
.nav-layout nav, .nav-layout nav ul { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 26px; }
.nav-layout nav ul { margin: 0; padding: 0; list-style: none; }
.nav-layout nav a { color: var(--ink); font-weight: 670; font-size: .9rem; text-decoration: none; }
.nav-layout nav a:hover { color: var(--link); }
.ta3-button { display: inline-flex; justify-content: center; align-items: center; gap: .75rem; min-height: 48px; padding: 9px 18px; background: var(--button); color: var(--white); border: 1px solid transparent; border-radius: 11px; font-weight: 740; font-size: .9rem; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background .16s, color .16s, border-color .16s; }
.ta3-button:hover { color: var(--white); background: #174ac4; }
.ta3-button span { font-size: 1.08rem; }
.ta3-secondary { background: var(--white); color: var(--link); border-color: #a9bffa; }
.ta3-secondary:hover { color: var(--link); background: var(--soft); }

.hero { padding-top: 32px; }
.hero-layout { position: relative; display: grid; grid-template-columns: .96fr 1.04fr; background: #eaf0ff; border: 1px solid #e1e9ff; border-radius: 25px; overflow: hidden; min-height: 440px; }
.hero-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 21px; padding: 45px clamp(35px, 5vw, 76px) 70px; }
.eyebrow { color: var(--link); font-size: .75rem; font-weight: 790; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 530px; font-size: clamp(3.1rem, 5.5vw, 5.65rem); line-height: .99; letter-spacing: -.072em; }
.hero h1 em { color: #2458d2; font-style: normal; }
.hero-text p:not(.eyebrow) { font-size: 1.05rem; max-width: 360px; color: var(--text); }
.hero-image { position: relative; min-height: 100%; background: linear-gradient(142deg, #c4d7ff, #799df4 55%, #4d7ce3); }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-note { position: absolute; bottom: 53px; right: 14px; color: #fff; background: #131d2cbb; border-radius: 5px; padding: 2px 6px; font-size: .66rem; }
.stay-search { display: grid; grid-template-columns: 1fr 1fr 1.18fr auto; gap: 14px; align-items: end; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 28px #243f7610; }
.hero .stay-search { width: calc(100% - 80px); max-width: 980px; margin: -36px auto 0; isolation: isolate; }
.stay-search label, .ta3-booking-form label { display: grid; gap: 6px; color: #263653; font-size: .8rem; font-weight: 730; }
.stay-search input, .stay-search select, .ta3-booking-form input:not([type=hidden]), .ta3-booking-form textarea { width: 100%; max-width: 100%; min-width: 0; min-height: 47px; border: 1px solid #cdd7e8; border-radius: 9px; background: var(--white); color: var(--ink); padding: 8px 11px; font-size: .93rem; font-weight: 500; }
.stay-search .ta3-button { min-height: 47px; padding-inline: 20px; }
.catalog { padding: 62px 0 76px; scroll-margin-top: 24px; }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 24px; }
.catalog-heading h2, .archive-layout h1 { margin-top: 7px; }
.stay-more { color: var(--link); font-weight: 760; font-size: .88rem; text-decoration: none; }
.stay-more:hover { text-decoration: underline; }
.stay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.stay-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 20px #22385808; }
.stay-image { display: block; background: var(--soft); overflow: hidden; aspect-ratio: 1.55; }
.stay-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.stay-image:hover img { transform: scale(1.035); }
.stay-placeholder { display: grid; place-items: center; height: 100%; background: linear-gradient(125deg, #eff4ff, #dde8ff); color: #3153ac; font-weight: 850; font-size: 3rem; letter-spacing: -.1em; }
.stay-card-body { padding: 18px 20px; }
.stay-card h3 { margin: 6px 0 3px; }
.stay-card h3 a { color: var(--ink); text-decoration: none; }
.stay-location { margin: 6px 0 0; }
.stay-location, .stay-facts, .result-count { color: var(--text); font-size: .9rem; }
.stay-facts { margin-top: 8px; }
.stay-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 9px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; font-size: .9rem; }
.stay-card-foot small { color: var(--text); }
.empty-state { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--text); }
.archive-layout, .content-page { padding-block: 48px 74px; min-height: 55vh; }
.archive-layout h1, .content-page h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); margin-bottom: 22px; }
.result-count { margin: 22px 0 16px; }
.archive-layout .empty-state { margin-top: 22px; }
.content-page article > :is(p, ul, ol, h2, h3) { margin-bottom: 16px; }
.content-page .woocommerce h2 { font-size: 1.7rem; margin-bottom: 14px; }

.unit-layout { padding-block: 34px 76px; }
.back-link { display: inline-block; margin-bottom: 19px; font-weight: 700; font-size: .88rem; text-decoration: none; }
.unit-layout h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); margin: 7px 0; }
.unit-location { color: var(--text); }
.unit-gallery { position: relative; display: grid; grid-template-columns: 2.1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); height: clamp(270px, 35vw, 470px); gap: 8px; border-radius: var(--radius); overflow: hidden; background: var(--soft); margin: 21px 0 0; }
.unit-gallery.solo { grid-template-columns: 1fr; }
.gallery-photo:first-child { grid-row: span 2; }
.gallery-photo:nth-child(2):last-of-type { grid-row: span 2; }
.unit-gallery:has(.gallery-photo:nth-child(2)):not(:has(.gallery-photo:nth-child(3))) .gallery-photo:nth-child(2) { grid-row: span 2; }
.gallery-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gallery-all { position: absolute; bottom: 12px; right: 12px; padding: 8px 13px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px; font-size: .84rem; font-weight: 720; text-decoration: none; }
.photo-dialog { position: fixed; inset: 0; width: min(94vw, 960px); height: auto; max-height: 94vh; padding: 44px 52px 15px; border: 0; border-radius: 16px; color: white; background: #101a2d; text-align: center; }
.photo-dialog::backdrop { background: #0a1221d9; }
.photo-dialog button { position: absolute; border: 0; border-radius: 8px; min-width: 36px; min-height: 36px; color: white; background: #2b3a59; font-size: 1.4rem; cursor: pointer; }
.photo-dialog form button { top: 5px; right: 8px; }
.photo-dialog [data-gallery-prev] { left: 7px; top: 50%; }
.photo-dialog [data-gallery-next] { right: 7px; top: 50%; }
.dialog-photo img { display: block; max-height: 73vh; margin: 0 auto 7px; object-fit: contain; }
.unit-columns { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(350px, 1fr); gap: clamp(24px, 5vw, 60px); margin-top: 28px; align-items: start; }
.unit-info h2, .ta3-booking h2 { margin-bottom: 11px; font-size: 1.5rem; }
.unit-info section { border-bottom: 1px solid var(--line); padding-block: 22px; }
.unit-info section p, .unit-info section li { color: var(--text); }
.unit-info section p + p { margin-top: 12px; }
.unit-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.unit-tags span { border: 1px solid #d6e1ff; background: var(--soft); color: #1d438e; border-radius: 8px; padding: 5px 9px; font-weight: 670; font-size: .84rem; }
.amenity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding-left: 19px; }
.unit-info > .ta3-button { margin-top: 20px; }
.unit-booking { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 8px 28px #2238580d; }
.unit-rate { margin-bottom: 15px; color: var(--text); font-size: .86rem; }
.unit-rate strong { font-size: 1.55rem; color: var(--ink); }
.ta3-booking { scroll-margin-top: 12px; }
.ta3-booking > p { font-size: .85rem; color: var(--text); margin-bottom: 11px; }
.ta3-status { border-radius: 8px; padding: 9px 12px; }
.ta3-booking .ta3-status.ok { color: #11593b; background: #eaf8f0; }
.ta3-booking .ta3-status.error { color: #882327; background: #fff0f0; }
.ta3-cal { margin-bottom: 15px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); }
.ta3-cal-head { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; text-align: center; font-size: .9rem; }
.ta3-cal-head a { text-decoration: none; font-weight: 800; font-size: 1.3rem; }
.ta3-cal-grid { border-collapse: separate; border-spacing: 2px; width: 100%; table-layout: fixed; text-align: center; font-size: .77rem; }
.ta3-cal-grid th { color: var(--text); font-weight: 700; }
.ta3-cal-grid span { display: block; padding: 3px 0; border-radius: 5px; }
.ta3-cal-grid .past { color: #62718c; }
.ta3-cal-grid .busy { background: #faeceb; color: #923c38; text-decoration: line-through; }
.ta3-cal-grid .free { background: #edf3ff; color: #183d96; font-weight: 700; }
.ta3-cal-legend { display: flex; gap: 12px; margin-top: 3px; justify-content: center; font-size: .71rem; color: #495974; }
.ta3-booking-form, .ta3-dates { display: grid; gap: 9px; }
.ta3-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ta3-estimate { display: block; background: var(--soft); border-radius: 8px; color: var(--link); padding: 9px; text-align: center; font-weight: 750; }
.ta3-estimate[hidden], [hidden] { display: none; }
.ta3-policy { font-size: .77rem; }
.site-footer { background: #122039; color: #eff4ff; }
.footer-layout { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; align-items: start; padding-block: 33px; }
.footer-brand { display: grid; gap: 10px; }
.footer-brand > a:not(.site-brand):not(.custom-logo-link), .footer-contact { color: #e4edff; font-size: .86rem; }
.footer-brand .site-brand small { color: #c0cee8; }
.footer-channels h2 { font-size: .86rem; font-weight: 700; letter-spacing: 0; margin-bottom: 8px; }
.channel-list { display: flex; gap: 10px; }
.channel { display: grid; place-items: center; aspect-ratio: 1; width: 92px; padding: 8px; border-radius: 10px; border: 1px solid #dce4ef; color: #143779; background: white; font-size: .8rem; text-decoration: none; }
.channel-airbnb { color: #b21842; }
.channel img { display: block; max-height: 38px; width: 100%; object-fit: contain; }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid #35435a; padding-block: 15px; color: #c0cee8; font-size: .8rem; }

@media (max-width: 960px) {
  .shell { width: calc(100% - 42px); }
  .hero-text { padding-inline: 29px; }
  .hero .stay-search { width: calc(100% - 32px); }
  .stay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .nav-layout { min-height: 68px; gap: 12px; }
  .nav-layout nav { display: none; }
  .nav-cta { min-height: 40px; padding-inline: 9px; font-size: .78rem; gap: 4px; }
  .site-brand { font-size: 1rem; gap: 8px; }
  .brand-mark { width: 35px; height: 35px; flex-basis: 35px; }
  .hero { padding-top: 16px; }
  .hero-layout { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { gap: 13px; padding: 26px 21px; }
  .hero h1 { font-size: clamp(2.55rem, 11.5vw, 4rem); }
  .hero-text p:not(.eyebrow) { font-size: .92rem; }
  .hero-image { min-height: 205px; }
  .image-note { bottom: 8px; right: 8px; }
  .hero .stay-search { width: 100%; margin: 11px 0 0; }
  .stay-search { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 9px; }
  .stay-search .ta3-button { padding-inline: 8px; font-size: .82rem; }
  .catalog { padding-block: 35px 48px; }
  .catalog-heading { align-items: start; flex-direction: column; margin-bottom: 14px; }
  .stay-grid { gap: 13px; }
  .unit-layout, .archive-layout, .content-page { padding-block: 24px 45px; }
  .unit-columns { grid-template-columns: minmax(0, 1fr); }
  .unit-gallery { height: 237px; }
  .unit-booking { padding: 16px; }
  .footer-layout { flex-direction: column; }
}
@media (max-width: 460px) {
  .stay-grid { grid-template-columns: minmax(0, 1fr); }
  .unit-gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .gallery-photo:first-child { grid-row: 1; }
  .gallery-photo:not(:first-child) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0s !important; }
}
