/* The pilot replaces only the visible footer on the home page. */
body:has(.tz-home-footer) .line:has(+ .altfooter),
body:has(.tz-home-footer) .altfooter,
body:has(.tz-home-footer) .altfooter + .imza { display: none; }

.tz-home-footer {
    --hf-ink: #4c2b14;
    --hf-green: #3f541e;
    --hf-line: #d2bda4;
    --hf-field: #fffcf5;
    width: 100%;
    box-sizing: border-box;
    margin-top: 30px;
    padding: 0 16px;
    background: rgba(250, 241, 223, .55);
    color: var(--hf-ink);
    font: 400 14px/1.45 Arial, sans-serif;
}
.tz-home-footer *, .tz-home-footer *::before { box-sizing: border-box; }
.tz-hf-inner { width: 100%; max-width: 1000px; margin-inline: auto; }
.tz-home-footer a { color: inherit; text-decoration: none; }
.tz-home-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tz-home-footer :focus-visible { outline: 2px solid #52682b; outline-offset: 2px; }
.tz-home-footer .fa { min-width: 1em; text-align: center; }
.tz-hf-tools {
    display: grid;
    grid-template-columns: minmax(150px, .95fr) minmax(185px, 1.55fr) auto;
    gap: 16px;
    align-items: stretch;
    padding: 20px 0;
    border-bottom: 1px solid var(--hf-line);
}
.tz-hf-discover, .tz-hf-quick a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    min-height: 42px;
    border: 1px solid var(--hf-line);
    border-radius: 7px;
    text-align: center;
    font-weight: 700;
}
.tz-hf-discover { background: #ece8cc; border-color: #d9d2b5; }
.tz-hf-quick { display: flex; gap: 7px; }
.tz-hf-quick a { background: var(--hf-field); white-space: nowrap; font-size: 13px; }
.tz-hf-search {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 42px;
    margin: 0;
    border: 1px solid #aaaf92;
    border-radius: 7px;
    background: white;
}
.tz-hf-search > .fa {
    position: absolute;
    left: 12px;
    top: 50%;
    color: var(--hf-green);
    transform: translateY(-50%);
    pointer-events: none;
}
.tz-home-footer .tz-hf-search input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: auto;
    padding: 8px 8px 8px 33px;
    border: 0;
    border-radius: 7px 0 0 7px;
    background: transparent;
    box-shadow: none;
    color: var(--hf-ink);
    font: inherit;
    line-height: 1.4;
}
.tz-home-footer .tz-hf-search button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 0 6px 6px 0;
    padding: 6px 15px;
    min-width: 54px;
    background: var(--hf-green);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.tz-hf-main {
    display: grid;
    grid-template-columns: minmax(125px, 1.10fr) minmax(94px, .72fr) minmax(136px, 1fr) minmax(142px, 1.1fr) minmax(128px, .92fr);
    gap: 20px;
    align-items: start;
    padding: 32px 0 28px;
}
.tz-hf-brand img { display: block; width: min(100%, 198px); height: auto; }
.tz-home-footer .tz-hf-brand p {
    width: fit-content;
    margin: 12px 0 0;
    padding: 8px 10px;
    border-left: 3px solid var(--hf-green);
    border-radius: 4px;
    background: #ece8cc;
    color: #39471d;
    font-weight: 700;
}
.tz-home-footer .tz-hf-section h2 {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--hf-ink);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
}
.tz-hf-section a { display: block; margin: 7px 0 0; overflow-wrap: anywhere; }
.tz-hf-address a .fa { margin-right: 2px; }
.tz-hf-contact { display: grid; gap: 8px; }
.tz-home-footer .tz-hf-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px;
    border: 1px solid #997956;
    border-radius: 7px;
    font-weight: 700;
    text-align: center;
}
.tz-home-footer .tz-hf-contact .tz-hf-whatsapp {
    background: var(--hf-green);
    color: #fff;
    border-color: var(--hf-green);
}
.tz-hf-phone { background: var(--hf-field); }
.tz-hf-services, .tz-hf-end {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 19px;
    padding: 13px 0;
    border-top: 1px solid var(--hf-line);
    font-size: 13px;
}
.tz-hf-services a .fa { margin-right: 4px; }
.tz-hf-end { justify-content: space-between; }
.tz-home-footer .tz-hf-end a { text-decoration: underline; }
.tz-hf-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
@media (max-width: 850px) {
    .tz-hf-tools { grid-template-columns: minmax(145px, .75fr) minmax(0, 1.25fr); gap: 9px; }
    .tz-hf-quick { grid-column: 1 / -1; }
    .tz-hf-quick a { flex: 1 1 0; }
    .tz-hf-main { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; padding-block: 23px; }
    .tz-hf-contact { align-self: end; }
}
@media (max-width: 520px) {
    .tz-home-footer { margin-top: 20px; padding-inline: 12px; }
    .tz-hf-tools { grid-template-columns: minmax(0, 1fr); padding-block: 14px; }
    .tz-hf-discover { min-height: 36px; }
    .tz-hf-quick a { padding-inline: 4px; gap: 4px; min-height: 40px; font-size: 12px; }
    .tz-home-footer .tz-hf-search input { font-size: 16px; }
    .tz-hf-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; padding-block: 18px; }
    .tz-hf-brand { grid-column: 1 / -1; }
    .tz-hf-brand img { width: min(150px, 100%); }
    .tz-home-footer .tz-hf-brand p { margin-top: 6px; padding: 5px 8px; }
    .tz-hf-address { grid-column: 1 / -1; }
    .tz-hf-contact { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
