:root{
  --brown-950:#1d1410;
  --brown-900:#2a1d17;
  --brown-850:#34241c;
  --brown-800:#3f2c22;
  --brown-700:#5b3d2d;
  --brown-600:#76513b;
  --leather:#9a6847;
  --ochre:#c28b57;
  --sand:#dfc6a6;
  --cream:#f4eadc;
  --paper:#fffaf3;
  --white:#ffffff;
  --red:#b94b43;
  --blue:#557b91;
  --green:#59734d;
  --text:#2c211b;
  --muted:#76675d;
  --border:#d8c4ad;
  --shadow:0 16px 40px rgba(35,22,15,.16);
  --shadow-soft:0 8px 24px rgba(35,22,15,.10);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  color:var(--text);
  line-height:1.6;
  background:var(--paper);
}
a{color:var(--leather);text-decoration:none;transition:.2s ease}
a:hover{color:var(--brown-700)}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit}
.container{width:min(1180px,calc(100% - 32px));margin:auto}

.site-header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(42,29,23,.97);
  border-bottom:1px solid rgba(223,198,166,.18);
  box-shadow:0 6px 24px rgba(20,12,8,.18);
  backdrop-filter:blur(10px);
}
.nav{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.brand{font-size:1.28rem;font-weight:900;color:var(--cream);letter-spacing:.01em}
.brand:hover{color:var(--sand)}
nav{display:flex;align-items:center;gap:20px}
nav a{font-weight:750;color:#f1e3d2}
nav a:hover{color:var(--ochre)}
.nav-button{background:var(--ochre);color:var(--brown-950)!important;padding:10px 17px;border-radius:999px;box-shadow:0 7px 18px rgba(0,0,0,.18)}
.nav-button:hover{background:var(--sand);transform:translateY(-1px)}
.menu-button{display:none;border:0;background:none;color:var(--cream);font-size:1.7rem;cursor:pointer}
.text-button{border:0;background:none;color:var(--ochre);font-weight:800;cursor:pointer}
.inline-form{display:inline}

.flash{position:fixed;top:88px;right:20px;z-index:40;padding:14px 18px;border-radius:12px;box-shadow:var(--shadow);background:var(--paper);border:1px solid var(--border)}
.flash.success{border-left:5px solid var(--green)}
.flash.error{border-left:5px solid var(--red)}

.hero{
  position:relative;
  overflow:hidden;
  padding:88px 0;
  color:var(--cream);
  background:
    radial-gradient(circle at 85% 15%,rgba(194,139,87,.24),transparent 30%),
    linear-gradient(135deg,var(--brown-950),var(--brown-800) 65%,var(--brown-700));
}
.hero::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,transparent 0 60%,rgba(255,255,255,.035) 60% 61%,transparent 61%)}
.hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:1.35fr .65fr;gap:52px;align-items:center}
.eyebrow{display:inline-block;font-size:.76rem;letter-spacing:.15em;text-transform:uppercase;color:var(--ochre);font-weight:900;margin-bottom:10px}
h1,h2,h3{line-height:1.15;color:var(--brown-900);margin-top:0}
.hero h1,.hero h2,.hero h3{color:var(--cream)}
h1{font-size:clamp(2.5rem,5vw,4.7rem);margin-bottom:20px}
h2{font-size:clamp(1.75rem,3vw,2.6rem)}
.lead{font-size:1.15rem;color:var(--muted);max-width:750px}
.hero .lead{color:#dfcdbb}
.hero-search{display:grid;grid-template-columns:1.5fr 1.1fr 1fr auto;gap:10px;margin:28px 0}
input,select,textarea{width:100%;padding:14px 15px;border:1px solid var(--border);border-radius:11px;background:#fffdf9;color:var(--text);outline:none;transition:.2s ease}
input:focus,select:focus,textarea:focus{border-color:var(--leather);box-shadow:0 0 0 3px rgba(154,104,71,.15)}
textarea{resize:vertical}
.button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:11px;padding:13px 20px;font-weight:850;cursor:pointer;transition:.2s ease}
.button:hover{transform:translateY(-2px)}
.button.primary{background:linear-gradient(135deg,var(--leather),var(--brown-600));color:#fff;box-shadow:0 9px 20px rgba(65,42,30,.22)}
.button.primary:hover{background:linear-gradient(135deg,var(--ochre),var(--leather))}
.button.secondary{background:transparent;color:var(--brown-700);border:1px solid var(--brown-600)}
.hero .button.secondary{color:var(--cream);border-color:rgba(244,234,220,.45)}
.button.whatsapp{background:#347b4c;color:#fff}
.button.full{width:100%}
.hero-actions,.detail-actions{display:flex;gap:12px;flex-wrap:wrap}
.hero-card{background:linear-gradient(145deg,#f5eadc,#d9bea0);border:1px solid rgba(255,255,255,.35);border-radius:28px;padding:36px;text-align:center;box-shadow:0 25px 55px rgba(10,6,4,.28);color:var(--brown-900)}
.hero-card h3{color:var(--brown-900)}
.hero-dog{font-size:7rem;filter:drop-shadow(0 10px 12px rgba(44,30,22,.16))}

.stats{margin-top:-28px;position:relative;z-index:3}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.stats-grid article{background:var(--paper);padding:22px;text-align:center;border-radius:16px;border:1px solid var(--border);box-shadow:var(--shadow)}
.stats-grid strong{display:block;font-size:2rem;color:var(--leather)}
.stats-grid span{color:var(--muted)}

.section{padding:78px 0}
.soft{background:linear-gradient(180deg,#eee0cd,#e4d0b7)}
.section-heading,.dashboard-heading,.results-line{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}
.filters{display:grid;grid-template-columns:1.4fr 1.2fr 1fr 1fr auto;gap:10px;margin-bottom:18px;padding:16px;background:#ead9c3;border:1px solid var(--border);border-radius:16px}
.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.dog-card,.feature-card{background:var(--paper);border:1px solid var(--border);border-radius:18px;overflow:hidden;box-shadow:var(--shadow-soft);transition:.25s ease}
.dog-card:hover,.feature-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.feature-card{padding:24px}
.dog-card img{width:100%;height:245px;object-fit:cover;background:#dfd0bd}
.dog-card-body{padding:18px}
.dog-card h3{font-size:1.4rem;margin:12px 0 6px;color:var(--brown-900)}
.dog-card p{margin:5px 0;color:var(--muted)}
.status{display:inline-block;padding:5px 10px;border-radius:999px;font-size:.78rem;text-transform:uppercase;font-weight:900;letter-spacing:.04em}
.status-perdido{background:#f4d9d4;color:#923b35}
.status-encontrado{background:#dce6ea;color:#3f6577}
.status-reunido{background:#dde8d8;color:#45623c}
.card-link{display:inline-block;margin-top:12px;font-weight:850;color:var(--leather)}

.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.feature-grid article{background:var(--paper);border:1px solid var(--border);padding:26px;border-radius:16px;box-shadow:var(--shadow-soft)}
.feature-grid article>span{font-size:2rem}
.ad-box{padding:34px;border:2px dashed var(--leather);border-radius:18px;text-align:center;background:#efe0cd;margin-top:30px}
.ad-box span,.ad-box strong{display:block}
.ad-box span{font-size:.75rem;text-transform:uppercase;letter-spacing:.13em;color:var(--leather)}
.ad-box strong{font-size:1.25rem;margin:7px 0;color:var(--brown-900)}

.site-footer{background:var(--brown-950);color:#d8c7b4;padding:52px 0;border-top:5px solid var(--brown-600)}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:38px}
.footer-grid h3{color:var(--cream)}
.footer-grid a{display:block;color:#f0e2d1;margin-bottom:8px}
.footer-grid a:hover{color:var(--ochre)}
.footer-logo{font-size:1.2rem;color:#fff}

.form-page,.coming-page{padding:62px 0;background:linear-gradient(180deg,#ead9c3,#fffaf3)}
.narrow{max-width:690px}
.form-card{background:var(--paper);border:1px solid var(--border);border-radius:20px;padding:34px;box-shadow:var(--shadow);display:grid;gap:17px}
.form-card.wide{max-width:980px;margin:auto}
.form-card label{display:grid;gap:7px;font-weight:800;color:var(--brown-800)}
.form-grid{display:grid;gap:16px}
.form-grid.two{grid-template-columns:repeat(2,1fr)}
.form-grid.three{grid-template-columns:repeat(3,1fr)}
.check{display:flex!important;align-items:center;gap:10px}
.check input{width:auto;accent-color:var(--leather)}
.owner-box{background:#ead9c3;padding:22px;border-radius:14px;border:1px solid var(--border)}
.form-message{padding:12px;border-radius:10px}
.form-message.error{background:#f6dfdc;color:#8d3030}
.form-note{font-size:.9rem;color:var(--muted);text-align:center}
.empty-box{padding:32px;border:1px dashed var(--leather);border-radius:15px;text-align:center;background:#f3e7d7}

.dashboard-grid{display:grid;grid-template-columns:230px 1fr;gap:28px}
.dashboard-menu{display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--border);padding:10px;border-radius:14px;height:max-content;box-shadow:var(--shadow-soft)}
.dashboard-menu a{padding:12px;color:var(--brown-700)}
.dashboard-menu .active{background:#e7d3ba;font-weight:900;border-radius:9px;color:var(--brown-900)}
.panel-list{display:grid;gap:14px}
.panel-item{display:grid;grid-template-columns:100px 1fr auto;gap:16px;align-items:center;background:var(--paper);border:1px solid var(--border);padding:14px;border-radius:14px;box-shadow:var(--shadow-soft)}
.panel-item img{width:100px;height:82px;object-fit:cover;border-radius:10px}
.panel-actions{display:flex;gap:8px;flex-wrap:wrap}
.panel-actions form{display:inline}
.small-button{border:1px solid var(--border);background:#fffaf3;color:var(--brown-700);padding:8px 10px;border-radius:8px;cursor:pointer}
.small-button:hover{background:#ead9c3}
.small-button.success{color:#45623c}
.small-button.danger{color:var(--red)}

.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:35px;align-items:start}
.detail-image{width:100%;max-height:650px;object-fit:cover;border-radius:20px;background:#dfd0bd;box-shadow:var(--shadow)}
.detail-card{background:var(--paper);border:1px solid var(--border);border-radius:20px;padding:34px;box-shadow:var(--shadow)}
.detail-card h1{font-size:3rem;margin:16px 0 8px;color:var(--brown-900)}
.detail-location{font-size:1.1rem;color:var(--muted)}
.details-list{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--border);border:1px solid var(--border);border-radius:12px;overflow:hidden;margin:25px 0}
.details-list div{background:#fffaf3;padding:13px}
.details-list dt{font-size:.75rem;text-transform:uppercase;color:var(--muted)}
.details-list dd{margin:2px 0 0;font-weight:800;color:var(--brown-900)}

.table-wrap{overflow:auto;border-radius:14px;border:1px solid var(--border);box-shadow:var(--shadow-soft)}
table{width:100%;border-collapse:collapse;background:var(--paper)}
th{background:var(--brown-800);color:var(--cream)}
th,td{padding:14px;border-bottom:1px solid var(--border);text-align:left}
tbody tr:hover{background:#f0e2d0}
.top-space{margin-top:45px}

@media(max-width:900px){
  .menu-button{display:block}
  nav[data-menu]{display:none;position:absolute;top:76px;left:0;right:0;background:var(--brown-900);padding:20px;flex-direction:column;border-bottom:1px solid rgba(223,198,166,.2);box-shadow:0 15px 30px rgba(0,0,0,.18)}
  nav[data-menu].open{display:flex}
  .hero-grid,.dashboard-grid,.detail-grid{grid-template-columns:1fr}
  .hero-search,.filters{grid-template-columns:1fr 1fr}
  .cards-grid{grid-template-columns:repeat(2,1fr)}
  .feature-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:620px){
  .hero{padding:55px 0}
  .hero-search,.filters,.form-grid.two,.form-grid.three,.cards-grid,.feature-grid,.stats-grid,.footer-grid{grid-template-columns:1fr}
  .section-heading,.dashboard-heading,.results-line{align-items:flex-start;flex-direction:column}
  .form-card,.detail-card{padding:22px}
  .panel-item{grid-template-columns:75px 1fr}
  .panel-item img{width:75px;height:68px}
  .panel-actions{grid-column:1/-1}
  .details-list{grid-template-columns:1fr}
  h1{font-size:2.55rem}
}


.button.admin-edit {
    margin-top: 10px;
    color: #ffffff;
    background: #5b4639;
}

.button.admin-edit:hover {
    background: #423229;
}

.home-map-section {
    width: min(1500px, calc(100% - 32px));
    margin: 50px auto;
}

.home-map-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}

.home-map-heading h2 {
    margin: 5px 0 10px;
    color: #3f2d24;
    font-size: clamp(28px, 4vw, 43px);
}

.home-map-heading p {
    max-width: 780px;
    margin: 0;
    color: #70635c;
    font-size: 17px;
    line-height: 1.6;
}

.home-map-eyebrow {
    color: #39804a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-map-publish {
    display: inline-flex;
    min-height: 48px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 9px;
    color: #fff;
    background: #37844b;
    font-weight: 800;
    text-decoration: none;
}

.home-map-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid #e1dad4;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    background: #fff;
}

.home-map-count {
    display: flex;
    min-width: 190px;
    flex-direction: column;
}

.home-map-count strong {
    color: #37844b;
    font-size: 28px;
}

.home-map-count span {
    color: #746961;
    font-size: 13px;
}

.home-map-filter {
    display: flex;
    min-width: 230px;
    flex-direction: column;
    gap: 6px;
}

.home-map-filter label {
    color: #51453e;
    font-size: 13px;
    font-weight: 800;
}

.home-map-filter select {
    min-height: 43px;
    padding: 9px 12px;
    border: 1px solid #d7d0ca;
    border-radius: 8px;
    background: #fff;
    font: inherit;
}

.home-map-reset {
    min-height: 43px;
    padding: 9px 16px;
    border: 1px solid #bfb5ae;
    border-radius: 8px;
    background: #fff;
    color: #51453e;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.home-map-container {
    position: relative;
}

#homeDogMap {
    width: 100%;
    height: 620px;
    border: 1px solid #d9d1cb;
    border-radius: 0 0 14px 14px;
    background: #e5e1dc;
}

.home-map-legend {
    position: absolute;
    z-index: 500;
    top: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgb(255 255 255 / 94%);
    color: #4e443e;
    box-shadow: 0 4px 15px rgb(0 0 0 / 15%);
    font-size: 13px;
    font-weight: 700;
}

.home-map-legend-marker {
    width: 15px;
    height: 15px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #37964c;
    box-shadow: 0 1px 5px rgb(0 0 0 / 25%);
}

.dog-photo-marker {
    width: 54px;
    height: 54px;
    overflow: hidden;
    border: 4px solid #32a34d;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgb(0 0 0 / 35%);
}

.dog-photo-marker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dog-found-marker {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #329848;
    box-shadow: 0 4px 12px rgb(0 0 0 / 32%);
    font-size: 21px;
}

.found-cluster {
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 4px solid rgb(255 255 255 / 85%);
    border-radius: 50%;
    color: #fff;
    background: #329848;
    box-shadow: 0 4px 12px rgb(0 0 0 / 28%);
    font-weight: 800;
}

.home-map-popup {
    overflow: hidden;
}

.home-map-popup-image {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.home-map-popup-placeholder {
    display: flex;
    height: 130px;
    align-items: center;
    justify-content: center;
    background: #eee9e4;
    font-size: 48px;
}

.home-map-popup-body {
    padding: 12px 3px 3px;
}

.home-map-popup-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 20px;
    color: #176b2e;
    background: #dff4e5;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.home-map-popup h3 {
    margin: 10px 0;
    color: #372920;
    font-size: 18px;
}

.home-map-popup p {
    margin: 7px 0;
    color: #635851;
    font-size: 13px;
}

.home-map-popup-link {
    display: flex;
    min-height: 40px;
    margin-top: 13px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #fff !important;
    background: #328847;
    font-weight: 800;
    text-decoration: none;
}

.home-map-empty {
    margin-top: 14px;
    padding: 18px;
    border-radius: 9px;
    color: #675b54;
    background: #f3efeb;
    text-align: center;
}

.leaflet-popup-content {
    margin: 12px;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
}

@media (max-width: 850px) {
    .home-map-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .home-map-toolbar {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .home-map-count,
    .home-map-filter {
        min-width: 0;
        flex: 1 1 200px;
    }

    #homeDogMap {
        height: 520px;
    }
}

@media (max-width: 600px) {
    .home-map-section {
        width: min(100% - 20px, 1500px);
        margin: 35px auto;
    }

    .home-map-toolbar {
        flex-direction: column;
    }

    .home-map-count,
    .home-map-filter,
    .home-map-reset {
        width: 100%;
    }

    #homeDogMap {
        height: 470px;
    }

    .home-map-legend {
        top: 10px;
        right: 10px;
    }
}

.location-selector {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #ddd4cc;
    border-radius: 12px;
    background: #faf8f5;
}

.location-selector-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.location-selector-heading h2 {
    margin: 0 0 7px;
    color: #3f2d24;
    font-size: 21px;
}

.location-selector-heading p {
    max-width: 700px;
    margin: 0;
    color: #71655d;
    line-height: 1.5;
}

#publicationMap {
    width: 100%;
    height: 430px;
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid #d4ccc5;
    border-radius: 10px;
    background: #e8e4df;
}

.location-message {
    min-height: 23px;
    color: #347546;
    font-size: 14px;
    font-weight: 700;
}

.location-help {
    margin: 12px 0 0;
    color: #766a62;
    font-size: 13px;
}

@media (max-width: 700px) {
    .location-selector-heading {
        align-items: stretch;
        flex-direction: column;
    }

    #publicationMap {
        height: 360px;
    }
}

.home-map-publish-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-map-publish.lost {
    background: #a93b32;
    color: #fff;
}

.home-map-publish.found {
    background: #397a50;
    color: #fff;
}

.home-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.home-map-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.home-map-legend-marker {
    width: 15px;
    height: 15px;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
}

.home-map-legend-marker.lost {
    background: #c74338;
}

.home-map-legend-marker.found {
    background: #3e925d;
}

.dog-photo-marker {
    width: 54px;
    height: 54px;
    padding: 3px;
    overflow: hidden;
    border: 4px solid;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

.dog-photo-marker.lost {
    border-color: #c74338;
}

.dog-photo-marker.found {
    border-color: #3e925d;
}

.dog-photo-marker img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.dog-status-marker {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

.dog-status-marker.lost {
    background: #c74338;
}

.dog-status-marker.found {
    background: #3e925d;
}

.home-map-popup-status.lost {
    background: #f9dfdc;
    color: #972e26;
}

.home-map-popup-status.found {
    background: #dcefe2;
    color: #276a42;
}

.admin-company-heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-form-section {
    padding: 24px 0;
    border-bottom: 1px solid #e1d8cf;
}

.admin-form-section:first-of-type {
    padding-top: 0;
}

.admin-form-section:last-of-type {
    border-bottom: 0;
}

.admin-form-section h2 {
    margin: 0 0 18px;
    color: #49362d;
    font-size: 1.3rem;
}

.admin-current-logo {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #ddd2c8;
    border-radius: 14px;
    background: #faf7f3;
}

.admin-current-logo img {
    width: 110px;
    height: 110px;
    display: block;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
}

.admin-company-options {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
}

.form-help,
label small {
    display: block;
    margin-top: 7px;
    color: #756a62;
    font-size: 0.88rem;
}

@media (max-width: 700px) {
    .admin-company-heading-actions,
    .admin-form-actions {
        flex-direction: column;
    }

    .admin-company-heading-actions .button,
    .admin-form-actions .button {
        width: 100%;
    }

    .admin-current-logo {
        align-items: flex-start;
        flex-direction: column;
    }
}

.character-counter {
    display: block;
    margin-top: 7px;
    color: #756a62;
    font-size: 0.86rem;
}

.character-counter.error {
    color: #a42d25;
    font-weight: 700;
}

.character-counter.valid {
    color: #327447;
}

.field-error {
    display: block;
    min-height: 20px;
    margin-top: 5px;
    color: #a42d25;
    font-size: 0.9rem;
    font-weight: 700;
}

textarea.input-error {
    border-color: #b83a31;
    background: #fff7f6;
    box-shadow: 0 0 0 3px rgba(184, 58, 49, 0.12);
}

textarea.input-valid {
    border-color: #4d8a60;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(310px, 300px)
    );
    justify-content: start;
    gap: 20px;
}

.product-card-image {
    position: relative;
    display: flex;
    width: 100%;
    height: 180px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f4f0eb;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 10px;
}

.product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px;
}

.product-card-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.3;
}

.product-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    color: #766a61;
    background: #f5f1ec;
}

.product-image-placeholder span {
    font-size: 2.4rem;
    line-height: 1;
}

.product-image-placeholder small {
    font-size: 0.82rem;
    font-weight: 700;
}

@media (max-width: 650px) {
    .shop-grid {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
        gap: 12px;
    }

    .product-card-image {
        height: 145px;
    }

    .product-card-body {
        padding: 12px;
    }

    .product-card-title {
        font-size: 0.96rem;
    }

    .product-card-description {
        display: none;
    }

    .product-card-price {
        font-size: 1.1rem;
    }

    .product-card-actions .button {
        padding: 9px 8px;
        font-size: 0.82rem;
    }
}

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

    .product-card-image {
        height: 175px;
    }
}


.admin-page {
    min-height: 100vh;
    background: #f7f4ef;
}

.admin-hero {
    padding: 42px 0;
    background: #eee5d8;
}

.admin-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.admin-hero h1 {
    margin: 6px 0 10px;
}

.admin-content {
    padding-top: 35px;
    padding-bottom: 60px;
}

.admin-form {
    max-width: 900px;
    padding: 28px;
    border: 1px solid #ded5ca;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 35px rgb(52 41 30 / 8%);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfc5ba;
    border-radius: 10px;
    background: #fff;
    font: inherit;
}

.form-field textarea {
    min-height: 150px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #695340;
    outline: 2px solid rgb(105 83 64 / 14%);
}

.price-input {
    position: relative;
}

.price-input input {
    padding-right: 44px;
}

.price-input span {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-weight: 700;
}

.checkbox-field {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    cursor: pointer;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
}

.field-help {
    color: #6e655d;
}

.description-information {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.character-counter {
    color: #74695f;
    font-size: 0.86rem;
}

.field-error {
    color: #b42318;
    font-size: 0.86rem;
    font-weight: 700;
}

.input-error {
    border-color: #b42318 !important;
}

.input-valid {
    border-color: #27844c !important;
}

.form-actions,
.alert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.alert {
    max-width: 900px;
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: 12px;
}

.alert.error {
    border: 1px solid #e9a9a4;
    color: #7a1d17;
    background: #fff1f0;
}

.alert.success {
    border: 1px solid #9fd2ae;
    color: #175c30;
    background: #effaf2;
}

.alert ul {
    margin-bottom: 0;
}

.image-preview-container {
    width: 220px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #d6cec5;
    border-radius: 12px;
    background: #f7f4ef;
}

.image-preview-container img {
    display: block;
    width: 100%;
    height: 180px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}

@media (max-width: 700px) {
    .admin-hero-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field.full-width {
        grid-column: auto;
    }

    .admin-form {
        padding: 20px 16px;
    }

    .form-actions .button {
        width: 100%;
        text-align: center;
    }
}

.product-detail-page {
    min-height: 100vh;
    background: #f7f4ef;
}

.product-detail-hero {
    padding: 22px 0;
    border-bottom: 1px solid #e2d9cf;
    background: #eee5d8;
}

.product-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #6f655d;
    font-size: 0.9rem;
}

.product-breadcrumb a {
    color: #5f4938;
    text-decoration: none;
}

.product-breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail-content {
    padding-top: 40px;
    padding-bottom: 60px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    gap: 45px;
    align-items: start;
}

.product-main-image {
    display: flex;
    width: 100%;
    min-height: 420px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #ded5ca;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgb(52 41 30 / 8%);
}

.product-main-image img {
    display: block;
    width: 100%;
    max-height: 520px;
    padding: 20px;
    object-fit: contain;
}

.product-detail-placeholder {
    display: flex;
    min-height: 420px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #766a61;
}

.product-detail-placeholder span {
    font-size: 4rem;
    line-height: 1;
}

.product-detail-placeholder p {
    margin: 0;
    font-weight: 700;
}

.product-detail-information {
    padding: 12px 0;
}

.product-detail-category {
    display: inline-flex;
    margin-bottom: 15px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #5f4938;
    background: #e9dfd2;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.product-detail-category:hover {
    background: #dfd0bf;
}

.product-detail-title {
    margin: 0 0 18px;
    color: #33271f;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
}

.product-detail-price {
    margin: 0 0 30px;
    color: #604633;
    font-size: 2rem;
    font-weight: 800;
}

.product-detail-description {
    padding-top: 24px;
    border-top: 1px solid #ddd3c8;
}

.product-detail-description h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
}

.product-detail-description p {
    margin: 0;
    color: #554b43;
    line-height: 1.75;
}

.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.product-detail-admin-info {
    margin-top: 20px;
    color: #756a61;
    font-size: 0.85rem;
}

.product-not-found {
    padding-top: 70px;
    padding-bottom: 70px;
}

.alert.warning {
    margin-bottom: 24px;
    padding: 18px 20px;
    border: 1px solid #e2c678;
    border-radius: 12px;
    color: #6a4d09;
    background: #fff8df;
}

.alert.warning p {
    margin: 6px 0 0;
}

@media (max-width: 850px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .product-main-image,
    .product-detail-placeholder {
        min-height: 330px;
    }

    .product-main-image img {
        max-height: 400px;
    }
}

@media (max-width: 550px) {
    .product-detail-content {
        padding-top: 24px;
    }

    .product-main-image,
    .product-detail-placeholder {
        min-height: 260px;
    }

    .product-main-image img {
        max-height: 320px;
        padding: 12px;
    }

    .product-detail-title {
        font-size: 1.85rem;
    }

    .product-detail-price {
        font-size: 1.6rem;
    }

    .product-detail-actions {
        flex-direction: column;
    }

    .product-detail-actions .button {
        width: 100%;
        text-align: center;
    }
}


.admin-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.current-product-image {
    width: min(100%, 340px);
    padding: 12px;
    border: 1px solid #d6cec5;
    border-radius: 14px;
    background: #f7f4ef;
}

.current-product-image img {
    display: block;
    width: 100%;
    height: 230px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
}

.current-product-image p {
    margin: 10px 0 0;
    overflow-wrap: anywhere;
    color: #70665e;
    font-size: 0.82rem;
}

.current-product-image-empty {
    display: flex;
    width: min(100%, 340px);
    min-height: 180px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    border: 1px dashed #c9bdb1;
    border-radius: 14px;
    color: #766a61;
    background: #f7f4ef;
}

.current-product-image-empty span {
    font-size: 2.7rem;
}

.current-product-image-empty p {
    margin: 0;
    font-weight: 700;
}

.delete-image-field {
    color: #9b261e;
}

.image-preview-container strong {
    display: block;
    margin-bottom: 9px;
    font-size: 0.9rem;
}

@media (max-width: 700px) {
    .admin-hero-actions {
        width: 100%;
    }

    .admin-hero-actions .button {
        width: 100%;
        text-align: center;
    }
}

.category-filters {
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        minmax(170px, 240px)
        auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 28px;
    padding: 20px;
    border: 1px solid #ded5ca;
    border-radius: 16px;
    background: #fff;
}

.category-filter-actions {
    display: flex;
    gap: 10px;
}

.categories-table-wrapper {
    overflow-x: auto;
    border: 1px solid #ded5ca;
    border-radius: 16px;
    background: #fff;
}

.categories-table {
    width: 100%;
    border-collapse: collapse;
}

.categories-table th,
.categories-table td {
    padding: 15px 17px;
    border-bottom: 1px solid #e8e0d8;
    text-align: left;
    vertical-align: middle;
}

.categories-table th {
    color: #4d4036;
    background: #f3eee8;
    font-size: 0.88rem;
}

.categories-table tr:last-child td {
    border-bottom: 0;
}

.categories-table code {
    padding: 4px 7px;
    border-radius: 6px;
    color: #55483e;
    background: #f1ece6;
}

.status-badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-badge.active {
    color: #176035;
    background: #e9f8ee;
}

.status-badge.inactive {
    color: #7b2923;
    background: #fff0ef;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.button.small {
    padding: 7px 11px;
    font-size: 0.82rem;
}

.category-detail-card {
    max-width: 800px;
    margin-bottom: 35px;
    padding: 25px;
    border: 1px solid #ded5ca;
    border-radius: 16px;
    background: #fff;
}

.category-detail-list {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 0;
}

.category-detail-list div {
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e0d8;
}

.category-detail-list dt {
    margin-bottom: 6px;
    color: #756960;
    font-size: 0.83rem;
    font-weight: 700;
}

.category-detail-list dd {
    margin: 0;
    color: #332820;
    font-weight: 700;
}

.category-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 20px;
}

.category-products-header h2 {
    margin: 0 0 5px;
}

.category-products-header p {
    margin: 0;
    color: #71665e;
}

@media (max-width: 750px) {
    .category-filters {
        grid-template-columns: 1fr;
    }

    .category-filter-actions {
        flex-direction: column;
    }

    .category-filter-actions .button {
        width: 100%;
        text-align: center;
    }

    .category-detail-list {
        grid-template-columns: 1fr;
    }

    .category-products-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-products-header .button {
        width: 100%;
        text-align: center;
    }
}

.shelters-page {
    min-height: 70vh;
    background: #f8f5f0;
}

.shelters-hero {
    padding: 54px 0;
    background:
        linear-gradient(
            135deg,
            rgba(232, 239, 225, 0.96),
            rgba(239, 229, 218, 0.96)
        );
}

.shelters-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.shelters-hero-content .lead {
    max-width: 760px;
    margin-bottom: 0;
}

.shelters-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shelters-content {
    padding-top: 42px;
    padding-bottom: 70px;
}

.shelters-filters {
    display: grid;
    grid-template-columns:
        minmax(240px, 2fr)
        minmax(180px, 1fr)
        minmax(190px, 1fr)
        auto;
    align-items: end;
    gap: 16px;
    margin-bottom: 36px;
    padding: 22px;
    border: 1px solid #ddd5cb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 25px rgb(51 40 31 / 6%);
}

.shelters-filters .filter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.shelters-filters label {
    color: #493c32;
    font-size: 0.9rem;
    font-weight: 700;
}

.shelters-filters input,
.shelters-filters select {
    width: 100%;
    min-height: 46px;
}

.shelters-filters .filter-actions {
    display: flex;
    gap: 9px;
}

.shelters-results-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.shelters-results-header h2 {
    margin: 5px 0 0;
}

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

.shelter-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dfd7ce;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgb(54 42 33 / 7%);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.shelter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgb(54 42 33 / 12%);
}

.shelter-card.verified {
    border-color: #aac5aa;
}

.shelter-verified-label {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #175b32;
    background: rgba(232, 249, 237, 0.96);
    box-shadow: 0 3px 12px rgb(0 0 0 / 10%);
    font-size: 0.76rem;
    font-weight: 800;
}

.shelter-logo {
    display: flex;
    height: 205px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            #f1ece5,
            #e4eddf
        );
}

.shelter-logo img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 18px;
    object-fit: contain;
}

.shelter-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #68594d;
}

.shelter-logo-placeholder span {
    font-size: 3.4rem;
    line-height: 1;
}

.shelter-logo-placeholder small {
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.shelter-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.shelter-card-title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.shelter-card-title a {
    color: #352920;
    text-decoration: none;
}

.shelter-location {
    margin: 0 0 13px;
    color: #675e56;
    font-size: 0.9rem;
}

.shelter-description {
    margin: 0 0 18px;
    color: #675e56;
    line-height: 1.6;
}

.shelter-information {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    margin-bottom: 17px;
    padding: 14px;
    border-radius: 13px;
    background: #f6f2ed;
}

.shelter-dogs-count {
    display: flex;
    flex-direction: column;
}

.shelter-dogs-count strong {
    color: #426749;
    font-size: 1.4rem;
    line-height: 1;
}

.shelter-dogs-count span {
    margin-top: 5px;
    color: #675e56;
    font-size: 0.8rem;
}

.shelter-donations {
    color: #85443f;
    font-size: 0.78rem;
    font-weight: 800;
}

.shelter-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 17px;
}

.shelter-contact a {
    color: #526d55;
    font-size: 0.87rem;
    font-weight: 700;
    text-decoration: none;
}

.shelter-contact a:hover {
    text-decoration: underline;
}

.shelter-card-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

@media (max-width: 950px) {
    .shelters-filters {
        grid-template-columns: 1fr 1fr;
    }

    .shelters-filters .filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .shelters-hero-content,
    .shelters-results-header {
        align-items: stretch;
        flex-direction: column;
    }

    .shelters-hero-actions {
        flex-direction: column;
    }

    .shelters-hero-actions .button,
    .shelters-results-header .button {
        width: 100%;
        text-align: center;
    }

    .shelters-filters {
        grid-template-columns: 1fr;
    }

    .shelters-filters .filter-actions {
        grid-column: auto;
        flex-direction: column;
    }

    .shelters-filters .filter-actions .button {
        width: 100%;
    }

    .shelters-grid {
        grid-template-columns: 1fr;
    }
}


.shelter-detail-page {
    min-height: 70vh;
    background: #f8f5f0;
}

.shelter-detail-hero {
    padding: 20px 0;
    border-bottom: 1px solid #ddd5ca;
    background: #eee7dc;
}

.shelter-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #6e6259;
    font-size: 0.9rem;
}

.shelter-breadcrumb a {
    color: #526d55;
    text-decoration: none;
}

.shelter-breadcrumb a:hover {
    text-decoration: underline;
}

.shelter-detail-content {
    padding-top: 42px;
    padding-bottom: 70px;
}

.shelter-detail-grid {
    display: grid;
    grid-template-columns:
        minmax(240px, 320px)
        minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.shelter-detail-sidebar {
    position: sticky;
    top: 25px;
}

.shelter-detail-logo {
    display: flex;
    width: 100%;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #ddd5ca;
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            #f2ece5,
            #e4ede0
        );
    box-shadow: 0 12px 30px rgb(52 41 31 / 8%);
}

.shelter-detail-logo img {
    display: block;
    width: 100%;
    max-height: 300px;
    padding: 20px;
    object-fit: contain;
}

.shelter-detail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    color: #68594d;
}

.shelter-detail-placeholder span {
    font-size: 4.2rem;
}

.shelter-detail-placeholder small {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.shelter-detail-verified {
    margin-top: 14px;
    padding: 11px 14px;
    border: 1px solid #a9cbaa;
    border-radius: 12px;
    color: #176035;
    background: #edf9f0;
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
}

.shelter-detail-summary {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-top: 14px;
    padding: 18px;
    border: 1px solid #ddd5ca;
    border-radius: 16px;
    background: #fff;
}

.shelter-detail-summary > div:first-child {
    display: flex;
    flex-direction: column;
}

.shelter-detail-summary strong {
    color: #426749;
    font-size: 2rem;
    line-height: 1;
}

.shelter-detail-summary span {
    margin-top: 7px;
    color: #6e6259;
    font-size: 0.88rem;
}

.shelter-detail-donations {
    padding-top: 13px;
    border-top: 1px solid #e7dfd6;
    color: #8a4541;
    font-weight: 800;
}

.shelter-detail-main {
    min-width: 0;
}

.shelter-detail-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
}

.shelter-detail-heading h1 {
    margin: 6px 0 10px;
    color: #332820;
    font-size: clamp(2rem, 4vw, 3rem);
}

.shelter-detail-location {
    margin: 0;
    color: #6e6259;
}

.shelter-detail-description,
.shelter-detail-contact,
.shelter-detail-social {
    margin-bottom: 28px;
    padding: 25px;
    border: 1px solid #ddd5ca;
    border-radius: 18px;
    background: #fff;
}

.shelter-detail-description h2,
.shelter-detail-contact h2,
.shelter-detail-social h2 {
    margin: 0 0 16px;
    font-size: 1.25rem;
}

.shelter-detail-description p {
    margin: 0;
    color: #5f554d;
    line-height: 1.8;
}

.shelter-contact-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.shelter-contact-item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e3dcd4;
    border-radius: 13px;
    color: #3f342c;
    background: #f8f5f1;
    text-decoration: none;
}

.shelter-contact-item > span {
    font-size: 1.4rem;
}

.shelter-contact-item div {
    min-width: 0;
}

.shelter-contact-item small {
    display: block;
    margin-bottom: 4px;
    color: #796e65;
}

.shelter-contact-item strong {
    display: block;
    overflow-wrap: anywhere;
}

a.shelter-contact-item:hover {
    border-color: #a9bda8;
    background: #f0f6ee;
}

.shelter-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shelter-social-links a {
    padding: 9px 13px;
    border-radius: 999px;
    color: #526d55;
    background: #edf3ea;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.shelter-social-links a:hover {
    background: #dfeadb;
}

.shelter-adoption-section {
    margin-top: 55px;
    padding-top: 40px;
    border-top: 1px solid #ddd5ca;
}

.shelter-adoption-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 25px;
}

.shelter-adoption-heading h2 {
    margin: 6px 0;
}

.shelter-adoption-heading p {
    margin: 0;
    color: #71665e;
}

.shelter-dogs-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(230px, 1fr)
        );
    gap: 20px;
}

.shelter-dog-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ddd5ca;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 26px rgb(52 41 31 / 7%);
}

.shelter-dog-image {
    display: flex;
    height: 205px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ece8e2;
}

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

.shelter-dog-placeholder {
    font-size: 3.2rem;
}

.shelter-dog-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 17px;
}

.shelter-dog-body h3 {
    margin: 11px 0 7px;
}

.shelter-dog-body h3 a {
    color: #352a22;
    text-decoration: none;
}

.shelter-dog-body p {
    margin: 0 0 9px;
    color: #6d6259;
}

.shelter-dog-features {
    margin-bottom: 17px !important;
    font-size: 0.88rem;
}

.shelter-dog-body .button {
    margin-top: auto;
}

.shelter-dog-body .admin-edit {
    margin-top: 8px;
}

.status-adopcion {
    color: #6c3f78;
    background: #f2e9f5;
}

.shelter-not-found {
    padding-top: 70px;
    padding-bottom: 70px;
}

@media (max-width: 850px) {
    .shelter-detail-grid {
        grid-template-columns: 1fr;
    }

    .shelter-detail-sidebar {
        position: static;
        max-width: 420px;
    }

    .shelter-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .shelter-detail-content {
        padding-top: 25px;
    }

    .shelter-detail-heading,
    .shelter-adoption-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .shelter-detail-heading .button,
    .shelter-adoption-heading .button {
        width: 100%;
        text-align: center;
    }

    .shelter-detail-description,
    .shelter-detail-contact,
    .shelter-detail-social {
        padding: 19px;
    }

    .shelter-dogs-grid {
        grid-template-columns: 1fr;
    }
}

.shelter-summary-count {
    display: flex;
    flex-direction: column;
}

.shelter-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 14px;
    border-top: 1px solid #e7dfd6;
}

.shelter-summary-actions .button {
    width: 100%;
    text-align: center;
}

.shelter-dog-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.shelter-dog-card.resolved {
    opacity: 0.82;
}

.status-resuelto {
    color: #625d57;
    background: #ebe8e4;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.admin-stat-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
    padding: 22px;
    border: 1px solid #ddd5ca;
    border-radius: 17px;
    color: #40352c;
    background: #fff;
    box-shadow: 0 8px 24px rgb(52 41 31 / 7%);
    text-decoration: none;
}

.admin-stat-card:hover {
    border-color: #a9bca8;
    transform: translateY(-2px);
}

.admin-stat-card strong {
    color: #426749;
    font-size: 2rem;
    line-height: 1;
}

.admin-stat-card span {
    color: #6c625a;
    font-size: 0.9rem;
    font-weight: 700;
}

.admin-filters {
    display: grid;
    grid-template-columns:
        minmax(260px, 2fr)
        minmax(210px, 1fr)
        auto;
    align-items: end;
    gap: 16px;
    margin-bottom: 32px;
    padding: 22px;
    border: 1px solid #ddd5ca;
    border-radius: 18px;
    background: #fff;
}

.admin-filters .filter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.admin-filters label {
    font-weight: 800;
}

.admin-filters input,
.admin-filters select {
    width: 100%;
    min-height: 46px;
}

.admin-filters .filter-actions {
    display: flex;
    gap: 9px;
}

.admin-results-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.admin-shelters-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-shelter-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #ddd5ca;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 9px 27px rgb(52 41 31 / 7%);
}

.admin-shelter-card.pending {
    border-color: #d9b971;
    background: #fffdf8;
}

.admin-shelter-logo {
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            145deg,
            #eee8df,
            #e4ede0
        );
}

.admin-shelter-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 260px;
    padding: 17px;
    object-fit: contain;
}

.admin-shelter-placeholder {
    font-size: 3.8rem;
}

.admin-shelter-content {
    min-width: 0;
    padding: 22px;
}

.admin-shelter-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.admin-shelter-heading h2 {
    margin: 0 0 6px;
}

.admin-shelter-location {
    margin: 0;
    color: #6e645c;
}

.admin-shelter-status {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.admin-shelter-description {
    margin-bottom: 17px;
    color: #675d55;
    line-height: 1.65;
}

.admin-shelter-data {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 8px 25px;
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 13px;
    background: #f7f3ee;
}

.admin-shelter-data p {
    margin: 0;
    overflow-wrap: anywhere;
}

.admin-shelter-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.admin-shelter-actions form {
    margin: 0;
}

.status-pending {
    color: #725515;
    background: #fff1c7;
}

.status-active,
.status-verified {
    color: #176035;
    background: #e9f7ed;
}

.status-inactive {
    color: #743a38;
    background: #f8e8e7;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.pagination-info {
    color: #6d635b;
    font-weight: 700;
}

@media (max-width: 950px) {
    .admin-stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .admin-filters {
        grid-template-columns: 1fr 1fr;
    }

    .admin-filters .filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-filters {
        grid-template-columns: 1fr;
    }

    .admin-filters .filter-actions {
        grid-column: auto;
        flex-direction: column;
    }

    .admin-shelter-card {
        grid-template-columns: 1fr;
    }

    .admin-shelter-logo {
        min-height: 190px;
    }

    .admin-shelter-heading,
    .admin-results-header {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-shelter-status {
        justify-content: flex-start;
    }

    .admin-shelter-data {
        grid-template-columns: 1fr;
    }

    .admin-shelter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-shelter-actions .button,
    .admin-shelter-actions form,
    .admin-shelter-actions form button {
        width: 100%;
    }
}


.contact-home {
    background: #f7faf8;
}

.contact-home-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: start;
}

.contact-home-info h2 {
    margin-top: 8px;
    margin-bottom: 14px;
}

.contact-home-info p {
    line-height: 1.7;
}

.contact-home-note {
    margin-top: 20px;
    font-weight: 600;
}

.contact-home-form {
    position: relative;
    background: #fff;
    padding: 28px;
    border-radius: 18px;
    box-shadow:
        0 10px 35px rgba(0, 0, 0, .08);
}

.contact-home-form label {
    display: block;
    margin-bottom: 18px;
    font-weight: 600;
}

.contact-home-form input,
.contact-home-form select,
.contact-home-form textarea {
    width: 100%;
    margin-top: 7px;
}

.contact-home-form textarea {
    resize: vertical;
    min-height: 140px;
}

@media (max-width: 800px) {

    .contact-home-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-home-form {
        padding: 20px;
    }
}

html {
    scroll-behavior: smooth;
}