/* Comfort Hostal Lima: responsive editorial layout. */
:root {
  --ink:#222b27;
  --green:#233f34;
  --paper:#f6f4ed;
  --line:#d7d9ce;
  --gold:#c4af78;
  --muted:#60695f
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:95px
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:16px/1.65 Arial,Helvetica,sans-serif
}

a {
  color:inherit;
  text-decoration:none
}

button,input,select {
  font:inherit
}

button,a,input,select,summary {
  -webkit-tap-highlight-color:transparent
}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid #a98035;
  outline-offset:5px
}

img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover
}

h1,h2,h3,p {
  margin:0
}

h1,h2,h3,.wordmark,.serif {
  font-family:Georgia,'Times New Roman',serif;
  font-weight:400
}

h1 {
  font-size:clamp(48px,6.6vw,98px);
  line-height:1.02;
  letter-spacing:-.045em
}

h2 {
  font-size:clamp(36px,4.2vw,62px);
  line-height:1.12;
  letter-spacing:-.035em
}

h3 {
  font-size:30px;
  line-height:1.2
}

p {
  max-width:62ch
}

.eyebrow {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.21em;
  display:block;
  margin-bottom:23px;
  font-weight:600
}

.wrap {
  width:min(1160px,89%);
  margin:auto
}

.skip {
  position:absolute;
  top:-100px;
  z-index:50;
  background:white;
  padding:12px
}

.skip:focus {
  top:10px
}

.topline {
  background:var(--green);
  color:#e8e9df;
  font-size:11px;
  letter-spacing:.12em;
  text-align:center;
  padding:7px 15px
}

.header {
  position:sticky;
  top:0;
  z-index:20;
  background:var(--paper);
  border-bottom:1px solid var(--line)
}

.nav {
  height:86px;
  display:flex;
  align-items:center;
  gap:28px
}

.brand {
  display:flex;
  align-items:center;
  gap:13px;
  margin-right:auto
}

.crest {
  width:37px;
  height:45px;
  border:1px solid #84917d;
  border-radius:22px 22px 8px 8px;
  display:grid;
  place-items:center;
  font:27px Georgia;
  color:var(--green)
}

.wordmark {
  font-size:27px;
  letter-spacing:.02em;
  line-height:1
}

.brand small {
  display:block;
  letter-spacing:.24em;
  font-size:8px;
  margin-top:8px
}

.navlinks {
  display:flex;
  gap:28px;
  font-size:12px
}

.navlinks a {
  padding:8px 0;
  border-bottom:1px solid transparent
}

.navlinks a:hover,.navlinks a[aria-current=page] {
  border-color:var(--green)
}

.button {
  background:var(--green);
  color:#fff;
  padding:16px 24px;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  font-size:12px;
  letter-spacing:.03em;
  border:1px solid var(--green);
  cursor:pointer
}

.button:hover {
  background:#365344
}

.button.light {
  background:var(--paper);
  color:var(--green);
  border-color:var(--paper)
}

.textlink {
  font-size:12px;
  border-bottom:1px solid #899080;
  padding-bottom:7px;
  display:inline-flex;
  gap:32px;
  align-items:center
}

.textlink:hover {
  color:#607558
}

.menu {
  display:none;
  background:none;
  border:0;
  padding:12px;
  color:var(--green)
}

.hero {
  display:grid;
  grid-template-columns:.94fr 1.06fr;
  min-height:650px
}

.hero-copy {
  padding:85px max(35px,calc((100vw - 1160px)/2)) 70px;
  padding-right:50px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center
}

.hero-copy h1 em {
  font-weight:400;
  color:#6c7e61
}

.hero-copy p {
  color:var(--muted);
  font-size:14px;
  max-width:36ch;
  margin:28px 0 30px
}

.hero-image {
  position:relative;
  overflow:hidden
}

.hero-image img {
  position:absolute;
  inset:0;
  object-position:40% center
}

.photo-label {
  position:absolute;
  bottom:28px;
  left:28px;
  background:rgba(246,244,237,.94);
  padding:12px 18px;
  font-size:10px;
  letter-spacing:.09em
}

.hero-foot {
  font-size:10px;
  letter-spacing:.1em;
  margin-top:35px;
  color:var(--muted)
}

.booking {
  border-bottom:1px solid var(--line);
  background:#eceee5
}

.booking form {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr)) minmax(0,1.1fr) minmax(240px,1.35fr);
  align-items:end;
  column-gap:24px;
  row-gap:14px;
  padding:28px 0
}

/* Shared geometry keeps native date inputs, selects and actions aligned. */
.field {
  min-width:0
}

.booking form>.button,
.contact-grid form>.button {
  height:52px;
  min-height:52px;
  padding:0 18px;
  gap:12px;
  line-height:1.3;
  white-space:nowrap
}

.booking form>.button {
  align-self:end
}

.button>span {
  flex-shrink:0
}

.field label {
  display:block;
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:6px
}

.field input,.field select {
  width:100%;
  border:0;
  border-bottom:1px solid #aab0a1;
  background:transparent;
  border-radius:0;
  padding:8px 0;
  color:var(--ink);
  height:52px;
  min-height:52px;
  min-width:0;
  line-height:1.3
}

.booking-note {
  font-size:10px;
  color:var(--muted);
  grid-column:1/-1;
  margin-top:0;
  max-width:none;
  line-height:1.6
}

.section {
  padding:105px 0
}

.intro {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:100px;
  align-items:start
}

.intro p {
  color:var(--muted);
  font-size:15px
}

.intro .textlink {
  margin-top:25px
}

.factline {
  display:flex;
  gap:50px;
  margin-top:37px;
  border-top:1px solid var(--line);
  padding-top:25px
}

.factline b {
  display:block;
  font:34px Georgia
}

.factline span {
  font-size:10px;
  color:var(--muted);
  letter-spacing:.06em
}

.section-head {
  display:flex;
  justify-content:space-between;
  gap:30px;
  align-items:end;
  margin-bottom:44px
}

.rooms {
  border-top:1px solid var(--line)
}

.roomgrid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:27px
}

.room-photo {
  height:310px;
  overflow:hidden;
  display:block
}

.room-photo img {
  transition:transform .6s
}

.room-photo:hover img {
  transform:scale(1.035)
}

.room-meta {
  font-size:10px;
  color:var(--muted);
  letter-spacing:.08em;
  padding:20px 0 10px;
  display:flex;
  justify-content:space-between
}

.room-card {
  display:flex;
  flex-direction:column;
  min-width:0
}

.room-card .room-photo {
  flex-shrink:0
}

.room-card p {
  font-size:13px;
  color:var(--muted);
  margin:14px 0 22px
}

.room-card .textlink {
  width:100%;
  justify-content:space-between;
  margin-top:auto
}

.quiet {
  background:var(--green);
  color:var(--paper)
}

.amenities {
  display:grid;
  grid-template-columns:1fr 1.8fr;
  gap:90px
}

.amenity-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px
}

.amenity {
  border-top:1px solid #617064;
  padding-top:22px
}

.amenity span {
  font:22px Georgia;
  color:#c8b98c
}

.amenity h3 {
  font:18px Arial;
  margin:12px 0
}

.amenity p {
  font-size:12px;
  color:#c3cbbf
}

.location {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:85px;
  align-items:center
}

.address-panel {
  background:#e8e9df;
  min-height:430px;
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:50px;
  border:1px solid var(--line);
  overflow:hidden
}

.address-panel:before {
  content:'';
  position:absolute;
  width:280px;
  height:650px;
  border-left:24px solid #d1d7c5;
  border-right:8px solid #d1d7c5;
  transform:rotate(30deg);
  right:30px;
  top:-100px
}

.address-panel>* {
  position:relative
}

.address-panel .pin {
  font:55px Georgia;
  color:var(--green);
  margin-bottom:35px
}

.address-panel h3 {
  font-size:37px;
  max-width:220px
}

.address-panel p {
  font-size:12px;
  margin:15px 0 30px
}

.location-copy>p {
  margin:24px 0;
  color:var(--muted);
  font-size:14px
}

.nearby {
  list-style:none;
  margin:25px 0;
  padding:0
}

.nearby li {
  padding:13px 0;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  font-size:12px
}

.nearby small {
  color:var(--muted)
}

.faq {
  max-width:820px;
  margin:auto
}

.faq h2 {
  margin-bottom:35px
}

details {
  border-top:1px solid var(--line);
  padding:21px 0
}

summary {
  cursor:pointer;
  font-size:15px;
  list-style:none;
  display:flex;
  justify-content:space-between;
  gap:20px
}

summary:after {
  content:'+';
  font-size:22px;
  line-height:1
}

details[open] summary:after {
  content:'−'
}

details p {
  font-size:14px;
  color:var(--muted);
  margin-top:18px
}

.cta {
  background:#e7e9dd;
  text-align:center;
  padding:75px 20px
}

.cta h2 {
  margin-bottom:25px
}

.cta p {
  margin:0 auto 28px;
  font-size:14px;
  color:var(--muted)
}

footer {
  background:#1d3028;
  color:#eef0e7;
  padding:55px 0 25px
}

.footer-top {
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr;
  gap:45px
}

.footer-top p,.footer-top a {
  font-size:12px
}

.footer-top h3 {
  font:11px Arial;
  text-transform:uppercase;
  letter-spacing:.12em;
  margin-bottom:20px
}

.footer-top nav {
  display:flex;
  flex-direction:column;
  gap:9px
}

.footer-bottom {
  border-top:1px solid #4d5c50;
  padding-top:22px;
  margin-top:45px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  font-size:10px;
  color:#bac3b6
}

.mobile-book {
  display:none
}

.page-head {
  padding:65px 0 55px
}

.breadcrumb {
  display:flex;
  gap:12px;
  font-size:11px;
  color:var(--muted);
  margin-bottom:35px
}

.page-head p {
  margin-top:25px;
  color:var(--muted)
}

.detail-hero {
  height:560px
}

.detail-grid {
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:90px
}

.detail-grid p {
  color:var(--muted);
  margin:25px 0
}

.specs {
  display:flex;
  gap:35px;
  border-top:1px solid var(--line);
  padding:25px 0;
  margin-top:30px;
  font-size:13px
}

.reserve-panel {
  background:#e8eadd;
  padding:35px;
  align-self:start
}

.reserve-panel h3 {
  font-size:29px
}

.reserve-panel .button {
  width:100%;
  margin-top:18px
}

.gallery-grid {
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:25px
}

.gallery-grid button {
  border:0;
  padding:0;
  background:none;
  cursor:zoom-in;
  text-align:left;
  color:inherit
}

.gallery-grid figure {
  margin:0
}

.gallery-grid img {
  height:400px
}

.gallery-grid figcaption {
  padding:14px 0;
  font-size:12px
}

.gallery-grid button:nth-child(3n) img {
  height:480px
}

.contact-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px
}

.contact-grid p {
  margin:20px 0;
  color:var(--muted)
}

.contact-grid form {
  background:#e8eadd;
  padding:35px
}

.contact-grid .field {
  margin-bottom:20px
}

.contact-grid .button {
  width:100%
}

.legal {
  max-width:760px
}

.legal p {
  margin:25px 0
}

.modal {
  border:0;
  padding:0;
  background:#15271f;
  color:white;
  max-width:min(1100px,94vw);
  max-height:94vh
}

.modal::backdrop {
  background:#101d16e8
}

.modal img {
  max-height:78vh;
  object-fit:contain
}

.modal .close {
  position:absolute;
  right:12px;
  top:12px;
  border:0;
  background:white;
  color:#182e24;
  width:42px;
  height:42px;
  cursor:pointer;
  font-size:24px
}

.modal p {
  padding:15px 25px;
  font-size:13px
}

.error-message {
  font-size:12px;
  color:#8c321f;
  margin-top:12px
}

.form-hint {
  font-size:11px;
  color:var(--muted);
  margin-top:12px
}

.preview-label {
  font-size:9px;
  background:#172b22;
  color:#cbd1c2;
  text-align:center;
  padding:5px;
  letter-spacing:.08em
}

@media(min-width:1500px) {
  .hero-copy {
    padding-left:calc((100vw - 1160px)/2)
  }

}

@media(max-width:1000px) {
  .navlinks {
    gap:16px
  }

  .nav {
    gap:15px
  }

  .hero-copy {
    padding:65px 6vw
  }

  .hero {
    min-height:580px
  }

  .intro {
    gap:50px
  }

  .room-photo {
    height:260px
  }

  .amenities {
    gap:40px
  }

  .location {
    gap:40px
  }

  .detail-grid {
    gap:40px
  }

}

@media(max-width:760px) {
  body {
    font-size:15px
  }

  .nav {
    height:72px
  }

  .nav>.button {
    display:none
  }

  .menu {
    display:block
  }

  .navlinks {
    display:none;
    position:absolute;
    top:72px;
    left:0;
    right:0;
    background:var(--paper);
    padding:25px 6%;
    border-bottom:1px solid var(--line);
    flex-direction:column
  }

  .navlinks.open {
    display:flex
  }

  .wordmark {
    font-size:24px
  }

  .hero {
    display:flex;
    flex-direction:column;
    min-height:0
  }

  .hero-copy {
    padding:50px 6% 45px
  }

  .hero-copy h1 {
    font-size:63px
  }

  .hero-copy p {
    margin:23px 0
  }

  .hero-foot {
    margin-top:25px
  }

  .hero-image {
    height:390px
  }

  .hero-image img {
    object-position:center
  }

  .booking form {
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:18px;
    row-gap:20px
  }

  .booking form>.button {
    min-height:52px
  }

  .booking-note {
    margin-top:0
  }

  .section {
    padding:65px 0
  }

  .intro,.location,.amenities,.detail-grid,.contact-grid {
    grid-template-columns:1fr;
    gap:35px
  }

  .factline {
    gap:50px
  }

  .section-head {
    align-items:start;
    flex-direction:column
  }

  .section-head .eyebrow {
    margin-bottom:15px
  }

  .roomgrid {
    grid-template-columns:1fr;
    gap:45px
  }

  .room-photo {
    height:360px
  }

  .room-card h3 {
    font-size:32px
  }

  .room-card p {
    max-width:none
  }

  .amenity-grid {
    gap:30px
  }

  .address-panel {
    min-height:350px;
    padding:35px
  }

  .footer-top {
    grid-template-columns:1fr 1fr;
    gap:35px
  }

  .footer-top>.footer-brand {
    grid-column:1/-1
  }

  .footer-bottom {
    flex-direction:column
  }

  footer {
    padding-bottom:90px
  }

  .mobile-book {
    display:flex;
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    z-index:25;
    background:var(--paper);
    border-top:1px solid var(--line);
    padding:10px 6%;
    align-items:center;
    justify-content:space-between;
    font-size:11px
  }

  .mobile-book .button {
    padding:12px 20px
  }

  .detail-hero {
    height:380px
  }

  .page-head {
    padding:40px 0
  }

  .page-head h1 {
    font-size:51px
  }

  .gallery-grid {
    grid-template-columns:1fr
  }

  .gallery-grid img,.gallery-grid button:nth-child(3n) img {
    height:340px
  }

  .contact-grid form {
    padding:25px
  }

  .topline {
    font-size:9px
  }

  .specs {
    gap:20px
  }

  .reserve-panel {
    padding:28px
  }

}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }

  *,*:before,*:after {
    transition:none!important;
    animation:none!important
  }

}



/* At compact widths the inquiry action gets its own full-width row. */
@media (min-width:761px) and (max-width:900px) {
  .booking form {
    grid-template-columns:repeat(2,minmax(0,1fr));
    row-gap:20px
  }
}

@media (max-width:540px) {
  .booking form>.field:nth-child(3),
  .booking form>.button {
    grid-column:1/-1
  }

  .booking form>.button {
    justify-content:space-between
  }
}
