:root {
  color-scheme: light;
  --paper: #f5f3ec;
  --ink: #202923;
  --muted: #6d756d;
  --green: #315d46;
  --green-dark: #244433;
  --red: #c75d43;
  --line: #d9ddd3;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
[hidden] { display: none !important; }

.site-header {
  min-height: 68px;
  padding: 0 6.1%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.brand-logo { width: 180px !important; height: 68px !important; object-fit: contain; display: block; max-width: 100%; }
.brand.has-custom-logo { gap: 0; }
.brand.has-custom-logo .brand-logo { width: 180px !important; height: 68px !important; object-fit: contain; display: block; }
.brand-mark { color: var(--green); font-family: var(--serif); font-size: 42px; font-weight: 700; letter-spacing: 0; }
.brand-mark span { color: var(--red); }
.brand-name { font-size: 12px; font-weight: 700; line-height: 1.25; }
.main-nav { display: flex; align-self: stretch; align-items: stretch; gap: 22px; }
.nav-tab { position: relative; padding: 3px 0 0; border: 0; background: none; color: #767d75; cursor: pointer; font-size: 11px; font-weight: 600; }
.nav-tab::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; content: ""; }
.nav-tab:hover, .nav-tab.is-active { color: var(--ink); }
.nav-tab.is-active::after { background: var(--red); }
.header-contact { justify-self: end; display: flex; align-items: center; gap: 13px; font-size: 12px; font-weight: 700; }
.arrow-icon { color: var(--red); font-size: 17px; }

.intro-grid { display: grid; grid-template-columns: minmax(330px, .84fr) 1.16fr; min-height: 500px; }
.intro-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 55px 9% 60px 15%; }
.eyebrow { margin: 0 0 21px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--red); }
h1, h2, h3, p, figure { margin-top: 0; }
h1 { margin-bottom: 20px; font-family: var(--serif); font-size: clamp(43px, 5vw, 70px); font-weight: 500; line-height: 1.06; letter-spacing: 0; }
h1 em { color: var(--green); font-weight: 500; }
.intro-text { max-width: 365px; margin-bottom: 27px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.text-link { display: inline-flex; align-items: center; gap: 20px; padding-bottom: 7px; border-bottom: 1px solid var(--green); color: var(--green-dark); font-size: 12px; font-weight: 700; }
.text-link span { color: var(--red); font-size: 16px; }
.intro-photo { position: relative; min-height: 500px; overflow: hidden; background: #9caa93; }
.cover-placeholder { position: absolute; inset: 0; display: grid; place-content: center; background: linear-gradient(135deg, #82977b, #385c48 58%, #b6b284); color: white; font-family: var(--serif); font-size: clamp(26px, 4vw, 48px); line-height: 1.2; text-align: center; }
.intro-photo::after { position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgb(16 26 20 / 43%)); content: ""; pointer-events: none; }
.intro-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.photo-caption { position: absolute; z-index: 1; right: 5%; bottom: 25px; left: 5%; display: flex; justify-content: space-between; color: white; font-size: 9px; font-weight: 700; letter-spacing: 1.15px; }
.photo-stamp { position: absolute; z-index: 1; top: 26px; right: 28px; display: grid; place-content: center; width: 80px; aspect-ratio: 1; border: 1px solid rgb(255 255 255 / 75%); border-radius: 50%; color: white; text-align: center; font-size: 10px; line-height: 1.35; }
.photo-stamp strong { font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: 0; }

.catalog-section { padding: 76px 9% 92px; background: #fbfaf6; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
.section-heading .eyebrow { margin-bottom: 12px; }
h2 { margin-bottom: 0; font-family: var(--serif); font-size: 35px; font-weight: 500; letter-spacing: 0; }
.heading-count { display: inline-block; margin-left: 7px; color: var(--red); vertical-align: top; font-family: var(--sans); font-size: 11px; font-weight: 600; }
.sample-note { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.catalog-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 13px 16px; margin-bottom: 27px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-control { display: grid; min-width: 0; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.filter-control select, .price-filter input { width: 100%; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); font-size: 11px; }
.price-filter { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 7px; margin: 0; padding: 0; border: 0; }
.price-filter legend { grid-column: 1 / -1; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.price-filter > span { align-self: center; color: var(--muted); font-size: 12px; }
.filter-reset { min-height: 38px; justify-self: start; padding: 0 2px; border: 0; border-bottom: 1px solid var(--green); background: transparent; color: var(--green-dark); cursor: pointer; font-size: 11px; font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.bird-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bird-image { position: relative; display: block; aspect-ratio: 1.19; overflow: hidden; background: #e1e4dc; }
.bird-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.bird-image:hover img { transform: scale(1.035); }
.availability { position: absolute; top: 13px; left: 13px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; background: var(--paper); font-size: 10px; font-weight: 700; }
.availability span { width: 6px; height: 6px; border-radius: 50%; background: #65895c; }
.availability.status-reserved { color: #77551b; }
.availability.status-reserved span { background: #d39a37; }
.availability.status-sold { color: #6d4b46; }
.availability.status-sold span { background: #a9665d; }
.bird-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 17px; }
.bird-category { margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.bird-info h3 { margin-bottom: 0; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.round-link { flex: 0 0 auto; display: grid; width: 33px; aspect-ratio: 1; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--green); transition: background .2s, color .2s; }
.round-link:hover { border-color: var(--green); background: var(--green); color: white; }
.bird-description { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.bird-details { display: flex; justify-content: space-between; gap: 10px; margin: 11px 0 0; color: var(--muted); font-size: 11px; }
.bird-details strong { color: var(--green-dark); font-size: 13px; }

.secondary-panel { min-height: calc(100vh - 154px); padding: 88px 12% 90px; }
.page-heading { max-width: 690px; }
.page-heading h1 { font-size: clamp(48px, 6vw, 76px); }
.page-heading .intro-text { max-width: 490px; }
.facility-grid { display: grid; grid-template-columns: 1.55fr .85fr; align-items: end; gap: 22px; margin-top: 52px; }
.facility-grid figure { margin-bottom: 0; }
.facility-photo { margin: 0; }
.facility-empty { grid-column: 1 / -1; padding: 25px 0; color: var(--muted); font-size: 13px; }
.facility-grid img { display: block; width: 100%; object-fit: cover; background: #d9ddd3; }
.facility-main img { height: 390px; }
.facility-side img { height: 285px; }
.facility-grid figcaption { padding-top: 11px; color: var(--muted); font-size: 11px; }
.facility-note { display: flex; align-items: center; gap: 15px; max-width: 520px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.note-number { color: var(--red); font-family: var(--serif); font-size: 23px; }
.facility-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.contact-panel { background: #fbfaf6; }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10%; margin-top: 43px; }
.contact-details { padding-top: 6px; }
.map-section { margin-top: 58px; }
.map-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.map-heading h2 { font-size: 27px; }
.contact-map { display: block; width: 100%; height: 340px; border: 0; background: #e1e4dc; }

.bird-image { width: 100%; padding: 0; border: 0; cursor: pointer; }
.bird-image { background: #e1e4dc; text-align: left; }
.round-link { padding: 0; background: transparent; cursor: pointer; font: inherit; }
.bird-image:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.bird-dialog { position: relative; width: min(960px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; overflow: auto; border: 0; background: #fbfaf6; color: var(--ink); }
.bird-dialog::backdrop { background: rgb(20 29 23 / 72%); }
.dialog-close { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); background: #fbfaf6; color: var(--ink); cursor: pointer; font-size: 25px; line-height: 1; }
.bird-dialog-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); min-height: 510px; }
.bird-dialog-gallery { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 28px; background: #eef0e9; }
.dialog-image-wrap { position: relative; min-height: 300px; height: min(58vh, 490px); background: #d9ddd3; }
.dialog-image-wrap > img { width: 100%; height: 100%; object-fit: contain; }
.gallery-arrow { position: absolute; z-index: 1; top: 50%; display: grid; width: 38px; height: 44px; place-items: center; transform: translateY(-50%); border: 0; background: rgb(251 250 246 / 92%); color: var(--ink); cursor: pointer; font-size: 25px; }
.gallery-previous { left: 10px; }
.gallery-next { right: 10px; }
.bird-dialog-thumbnails { display: flex; gap: 9px; margin-top: 12px; overflow-x: auto; }
.bird-dialog-thumbnails button { flex: 0 0 64px; width: 64px; height: 52px; padding: 0; overflow: hidden; border: 1px solid transparent; background: none; cursor: pointer; }
.bird-dialog-thumbnails button.is-active { border-color: var(--green); }
.bird-dialog-thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.bird-dialog-info { display: flex; flex-direction: column; justify-content: center; padding: 58px 42px 42px; }
.bird-dialog-info .bird-category { margin-bottom: 12px; }
.bird-dialog-info h2 { margin-bottom: 17px; font-size: 36px; }
.bird-dialog-description { color: var(--muted); font-size: 13px; line-height: 1.75; }
.bird-attributes { display: grid; gap: 0; margin: 13px 0 26px; border-top: 1px solid var(--line); }
.bird-attributes div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bird-attributes dt { color: var(--muted); font-size: 11px; }
.bird-attributes dd { margin: 0; font-size: 12px; font-weight: 700; text-align: right; }
.bird-call-button { text-decoration: none; }
.whatsapp-button { margin-bottom: 10px; background: #32734f; text-decoration: none; }
.whatsapp-button:hover { background: #275d40; }
.bird-email-link { align-self: flex-start; margin-top: 20px; }
.contact-item { margin-bottom: 25px; }
.contact-label { display: block; margin-bottom: 8px; color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.contact-item a, .contact-item p { margin: 0; font-family: var(--serif); font-size: 19px; }
.contact-item a:hover { color: var(--red); }
.contact-form { display: grid; grid-template-columns: 1fr; }
.contact-form label { margin: 0 0 7px; font-size: 11px; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; margin-bottom: 18px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); font-size: 12px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #959b92; }
.submit-button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 16px; border: 0; background: var(--green); color: white; cursor: pointer; font-size: 12px; font-weight: 700; text-align: left; }
.submit-button:hover { background: var(--green-dark); }
.submit-button span { color: #f0a08a; font-size: 17px; }
.form-hint { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; padding: 14px 6.1%; color: var(--muted); font-size: 10px; }
.footer-brand { color: var(--ink); font-weight: 700; }

.management-panel { background: #fbfaf6; }
.admin-login-screen { display: grid; min-height: calc(100vh - 154px); place-items: start center; background: #fbfaf6; }
.admin-login-content { width: min(100%, 480px); }
.admin-login-content h1 { font-size: clamp(48px, 6vw, 76px); }
.admin-login-content .contact-form { margin-top: 34px; }
.admin-back-link { margin-top: 22px; }
.admin-logout { margin-top: 10px; }
.storage-note.is-error { color: #a64032; }
.management-tabs { display: flex; gap: 25px; margin: 42px 0 35px; border-bottom: 1px solid var(--line); }
.management-tab { padding: 0 0 13px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; }
.management-tab.is-active { border-bottom-color: var(--red); color: var(--ink); }
.security-section { max-width: 1000px; }
.security-player { display: grid; min-height: 420px; place-items: center; overflow: hidden; background: #202923; color: #e8ece6; text-align: center; }
.security-player p { margin: 20px; color: #c2cbc1; font-size: 13px; }
.security-player iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; background: #202923; }
.security-actions { display: flex; align-items: center; gap: 22px; max-width: 520px; margin-top: 20px; }
.security-actions .submit-button { max-width: 290px; }
.security-stream-hint { margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.management-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.management-heading h2 { font-size: 27px; }
.management-heading p, .storage-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.editor-form, .settings-form { display: grid; grid-template-columns: minmax(200px, .72fr) minmax(260px, 1fr); align-items: start; gap: 30px; max-width: 790px; }
.settings-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-fields { display: grid; grid-template-columns: 1fr; }
.form-fields label, .image-field > span:first-child { margin: 0 0 7px; font-size: 11px; font-weight: 700; }
.form-fields input, .form-fields textarea, .form-fields select { width: 100%; margin: 0 0 15px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); font-size: 12px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bird-image-fields { display: grid; min-width: 0; align-content: start; gap: 14px; }
.selected-photo-previews, .existing-bird-photos { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.selected-photo-previews img, .existing-photo { width: 58px; height: 48px; }
.selected-photo-previews img, .existing-photo img { object-fit: cover; }
.existing-photo { position: relative; padding: 0; overflow: hidden; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.existing-photo img { width: 100%; height: 100%; }
.existing-photo span { position: absolute; top: 0; right: 0; display: grid; width: 19px; height: 19px; place-items: center; background: var(--paper); color: #a64032; font-size: 16px; line-height: 1; }
.field-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-pair > div { min-width: 0; }
.image-field { display: flex; min-height: 210px; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border: 1px dashed #aab3a6; background: #f5f3ec; cursor: pointer; }
.image-field img { width: 100%; max-height: 240px; aspect-ratio: 1.35; object-fit: cover; }
.image-field input { max-width: 100%; font-size: 11px; }
.image-field { min-width: 0; }
.image-field input { width: 100%; }
.file-prompt { color: var(--green); font-size: 11px; font-weight: 700; }
.form-actions { display: grid; gap: 10px; }
.text-button { justify-self: start; padding: 8px 0; border: 0; background: none; color: var(--green); cursor: pointer; font-size: 11px; font-weight: 700; }
.danger-button { color: #a64032; }
.managed-list { max-width: 790px; margin-top: 33px; border-top: 1px solid var(--line); }
.managed-item { display: flex; min-height: 77px; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.managed-item img { width: 66px; height: 52px; object-fit: cover; background: #e1e4dc; }
.managed-item div { display: grid; flex: 1; gap: 5px; min-width: 0; }
.managed-item strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.managed-item span { color: var(--muted); font-size: 10px; }
.settings-form .submit-button { grid-column: 1 / -1; }
.storage-note { max-width: 790px; margin-top: 35px; padding-top: 15px; border-top: 1px solid var(--line); }
.empty-state { max-width: 500px; padding: 24px 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

@media (max-width: 760px) {
  .site-header { min-height: 76px; grid-template-columns: 1fr auto; padding: 0 5%; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 15px; min-height: 47px; }
    .main-nav { justify-content: flex-start; overflow-x: auto; }
    .nav-tab { flex: 0 0 auto; }
  .nav-tab { font-size: 11px; }
  .header-contact { grid-column: 2; grid-row: 1; font-size: 11px; }
    .brand-logo { width: 42px; height: 42px; }
    .brand-mark { font-size: 28px; }
    .brand-name { font-size: 10px; }
    .brand.has-custom-logo .brand-logo { width: 190px; height: 72px; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-copy { min-height: 350px; padding: 55px 8% 47px; }
  h1 { font-size: clamp(48px, 12vw, 68px); }
  .intro-photo { min-height: 390px; }
  .catalog-section { padding: 58px 7% 68px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
    .catalog-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  h2 { font-size: 30px; }
  .bird-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 15px; }
  .bird-info h3 { font-size: 18px; }
  .secondary-panel { min-height: calc(100vh - 170px); padding: 64px 7%; }
  .facility-grid { grid-template-columns: 1fr; gap: 26px; margin-top: 34px; }
  .facility-main img { height: 310px; }
  .facility-side img { height: 240px; }
  .contact-layout { grid-template-columns: 1fr; gap: 20px; margin-top: 29px; }
    .map-section { margin-top: 38px; }
    .contact-map { height: 290px; }
    .bird-dialog-layout { grid-template-columns: 1fr; }
    .bird-dialog-gallery { padding: 16px; }
    .dialog-image-wrap { min-height: 230px; height: 38vh; }
    .bird-dialog-info { padding: 28px 23px 30px; }
    .bird-dialog-info h2 { font-size: 30px; }
  .site-footer { flex-wrap: wrap; padding: 17px 5%; }
  .management-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .security-player, .security-player iframe { min-height: 260px; }
  .security-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
  .security-actions .submit-button { max-width: none; }
  .editor-form, .settings-form { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .image-field { min-height: 150px; }
  .settings-form .submit-button { grid-column: auto; }
}

@media (max-width: 430px) {
    .management-tabs { gap: 17px; overflow-x: auto; }
    .management-tab { flex: 0 0 auto; font-size: 11px; }
  .brand-mark { font-size: 23px; }
  .brand-name { font-size: 10px; }
    .brand.has-custom-logo .brand-logo { width: 160px; height: 62px; }
  .header-contact { gap: 7px; }
  .nav-tab { font-size: 10px; }
  .intro-copy { min-height: 320px; }
  .intro-photo { min-height: 320px; }
  .bird-grid { grid-template-columns: 1fr; }
  .bird-image { aspect-ratio: 1.3; }
  .site-footer { display: grid; grid-template-columns: 1fr auto; }
  .site-footer > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}