.rental-hero{background:#164c3e;color:white;padding:clamp(2rem,6vw,4rem) 0}
.rental-hero h1{font-size:clamp(2.2rem,6vw,4rem);margin:0;line-height:1.05}
.demo-notice{width:fit-content;max-width:100%;background:#edf5ef;color:#164c3e;padding:.55rem .8rem;border-radius:8px}
.rental-results{padding-block:1.5rem 3rem}
.rental-search{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));align-items:end;gap:.75rem}
.rental-search label{display:grid;gap:.25rem}
.rental-search :is(input,select,button){min-height:44px;min-width:0;width:100%}
#rental-cards .card{display:flex;flex-direction:column}
#rental-cards img{width:100%;height:clamp(12rem,24vw,17rem);object-fit:contain;background:#eef3ed}
#rental-cards .card-body{display:grid;gap:.5rem}
#rental-cards :is(h3,p){margin:0}
#rental-cards button{margin-top:.35rem}
.rental-rate{font-size:1.25rem;color:#164c3e;font-weight:750}
#rental-booking{width:min(28rem,calc(100% - 2rem));border:1px solid #dce6dd;border-radius:14px;padding:1.25rem}
#rental-booking::backdrop{background:#102d25a0}
.rental-dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem}
.rental-form{display:grid;gap:.65rem}
.rental-form label{display:grid;gap:.25rem}
.rental-form :is(input,select){min-height:44px;width:100%;min-width:0}
.rental-form p{margin:0}
#provider-content{display:grid;gap:1rem}
#provider-content .panel>*+*{margin-top:.65rem}
#provider-content article+article{border-top:1px solid #dce6dd;padding-top:.75rem;margin-top:.75rem}
#provider-content article p{margin:.35rem 0}
.rental-placeholder{min-height:10rem;background:#eef3ed;display:grid;place-items:center;color:#52665d}
.rental-booking-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
#rental-calendar{width:min(31rem,calc(100% - 1.25rem));border:1px solid #dce6dd;border-radius:14px;padding:1rem}
#rental-calendar::backdrop{background:#102d25a0}
.calendar-nav{display:flex;justify-content:space-between;align-items:center;gap:.35rem;text-align:center}
.calendar-nav button{padding:.5rem;min-height:44px}
#calendar-days{width:100%;table-layout:fixed;border-spacing:3px;margin-top:.5rem;text-align:center;font-size:.875rem}
#calendar-days td{height:2rem;border-radius:4px}
.calendar-open,.calendar-legend span:first-child{background:#e5f2e9;color:#174b39}
.calendar-booked{background:#f9ded9;color:#76271c}
.calendar-blocked{background:#edf0f1;color:#34454c}
.calendar-past{color:#66716b}
.calendar-legend{display:flex;gap:.4rem;flex-wrap:wrap}
.calendar-legend span{border-radius:4px;padding:.2rem .45rem}
.calendar-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.calendar-partial{background:#f9efcf;color:#5f4709}
.rental-cost{margin:0}
.rental-cost div{display:flex;justify-content:space-between;gap:.75rem;padding:.3rem 0;border-bottom:1px solid #dce6dd}
.rental-cost dd{margin:0;white-space:nowrap;font-weight:650}
#tracking-content .panel{max-width:42rem}
.rental-form label[hidden]{display:none}
.rental-inspection h4{margin:.8rem 0 .25rem}
.inspection-notes{white-space:pre-wrap;overflow-wrap:anywhere}
.inspection-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(85px,1fr));gap:.5rem;margin:.5rem 0}
.inspection-photos img{display:block;width:100%;height:6rem;object-fit:contain;background:#eef3ed}
#tracking-content>.panel+.panel{margin-top:1rem}
@media print{
  body:has(#print-inspections) header,body:has(#print-inspections) #print-inspections{display:none}
  .rental-inspection{break-inside:avoid}
}

#rental-add-ons {
  grid-column:1/-1;
  min-width:0;
  margin:0;
  border:1px solid var(--line);
  border-radius:10px;
}
#rental-add-on-options label {
  display:flex;
  align-items:center;
  gap:.65rem;
}
#rental-add-on-options input {width:auto}

@media (max-width: 700px) {
  .rental-hero { padding-block: 1rem; }
  .rental-hero h1 { font-size: clamp(1.4rem, 5.5vw, 1.75rem); }
  .rental-results { padding-block: .75rem 1.25rem; }
  .rental-search { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  #rental-cards img {
    display: block;
    height: auto;
    aspect-ratio: 20 / 7;
    image-orientation: from-image;
  }
  #rental-cards .card-body { gap: .35rem; }
  .rental-rate { font-size: 1.1rem; }
  #rental-booking, #rental-calendar { padding: .75rem; }
}

#rentalMenuToggle { display: none; }
#rentalWorkLinks a {
  display: block;
  min-height: 44px;
  padding: .55rem .65rem;
}
#rentalWorkLinks [aria-current=page] { background: #e5efe8; font-weight: 750; }
@media (max-width: 700px) {
  #rentalMenuToggle:not([hidden]) { display: inline-flex; align-items: center; min-height: 44px; }
  #provider-content [data-rental-section][hidden] { display: none; }
}

#rental-dashboard #provider-status:empty { display: none; }
#rental-dashboard #provider-content { margin-top: .65rem; }

@media (max-width: 700px) {
  .market-header .market-header-inner > :is(.market-rental-tools,.market-header-nav) { display: none; }
  .market-header .header-search { grid-area: search; }
}

@media (max-width: 700px) {
  .rental-search label { min-width: 0; }
  .rental-search :is(input,select,button) { max-width: 100%; }
  .rental-search :is(input[type=date],input[type=time]) {
    display: block;
    padding-inline: .45rem;
  }
  .rental-search input::-webkit-date-and-time-value {
    min-width: 0;
    margin: 0;
    text-align: start;
  }
}

#how-to-rent { margin-top: .75rem; }
@media (max-width: 700px) {
  .rental-hero { padding-block: .55rem; }
  .rental-hero h1 { font-size: 1.25rem; }
  .rental-hero p { margin: .15rem 0 0; font-size: .85rem; }
  .rental-results { padding-block-start: .45rem; }
  .rental-search { padding: .4rem; gap: .35rem .55rem; margin-bottom: .5rem; }
  .rental-search label { grid-template-columns: minmax(0,1fr); gap: .1rem; font-size: .8rem; }
  .rental-search :is(input,select,button) { min-height: 36px; padding-block: .25rem; }
  .rental-search :is(input,select) { inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; }
}

@media (max-width: 700px) {
  .market-header .header-search :is(input,button) { min-height: 36px; padding-block: .2rem; }
}

#rental-account {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(86vw, 24rem);
  height: 100dvh;
  max-height: 100dvh;
  padding: .65rem;
  overflow-y: auto;
  border-radius: 12px 0 0 12px;
}

#rental-account .mobile-drawer-section {
  display: grid;
  gap: .3rem;
  margin-bottom: .55rem;
}

#rental-account .mobile-drawer-section a {
  display: block;
  padding: .5rem;
}

#rental-favorites {
  position: fixed;
  inset: auto 0 0;
  width: min(100%, 36rem);
  max-width: 100%;
  max-height: 45dvh;
  margin: 0 auto;
  padding: .6rem .75rem max(.6rem, env(safe-area-inset-bottom));
  border-radius: 12px 12px 0 0;
}

#rental-favorites[open] { animation: rental-tray-enter .2s ease-out; }
@keyframes rental-tray-enter { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  #rental-favorites[open] { animation: none; }
}

.saved-rental-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .35rem 0;
  border-top: 1px solid var(--line);
}

[data-save-rental][aria-pressed=true] { background: #e5efe8; }
[data-save-rental][aria-pressed=true]::before { content: '♥ '; }

@media (max-width: 700px) {
  #rental-account, #rental-favorites { font-size: .875rem; }
  #rental-account h2, #rental-favorites h2 { font-size: 1rem; }
}

.rentals-site {
  --green: #174f78;
  --line: #cfdee9;
  --muted: #476579;
  background: #f2f7fb;
  color: #163045;
}

.rentals-site .market-header { border-bottom: 1px solid #c6dbe9; }
.rentals-site .market-header .brand { color: #123951; }
.rentals-site .primary,
.rentals-site .mobile-market-nav a[aria-current=page] {
  background: #174f78;
  border-color: #174f78;
  color: #fff;
}
.rentals-site .rental-hero { background: linear-gradient(115deg, #112f49, #20628c); }
.rentals-site .rental-rate { color: #174f78; }
.rentals-site .market-footer { background: #e4eef6; }
.rentals-site dialog::backdrop { background: #102f48a6; }
.rentals-site .mobile-drawer-section h3 { color: #174f78; }
#rental-account a { margin: 0; }
#rental-application textarea { max-width: 100%; font: inherit; }
#rental-application-status:empty { display: none; }

@media (max-width: 700px) {
  .rentals-site .market-header .market-header-inner > .brand { gap: .15rem; }
  .rentals-site .market-header .market-header-inner > .brand img { width: 24px; height: 24px; }
  .rental-brand-name { font-size: .68rem; }
  .rentals-site .market-header .mobile-header-shortcuts a small { font-size: .69rem; }
  .rentals-site #how-to-rent:not(:target) { display: none; }
}

#mobileNavigationDrawer .rental-site-settings label {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .5rem;
  padding: .4rem .55rem;
}
#rental-currency-note { margin: .25rem .55rem; font-size: .8rem; }
#rental-desktop-site { width: 100%; font-weight: 750; }
#rental-mobile-site {
  position: fixed;
  inset: auto 1rem 1rem auto;
  z-index: 10;
}

@media (max-width: 700px) {
  .rentals-site .market-header .market-header-inner:has(.mobile-header-shortcuts) {
    gap: .2rem;
    padding-block: .2rem .3rem;
  }

  .rentals-site .market-header .market-header-inner > .brand,
  .rentals-site .market-header #mobileHeaderToggle,
  .rentals-site .market-header .mobile-header-shortcuts a {
    min-height: 36px;
  }

  .rentals-site .market-header .header-search :is(input,button) {
    min-height: 32px;
    height: 32px;
    padding-block: .15rem;
  }

  .rentals-site .market-header .header-search button { font-size: .8rem; }

  .rentals-site .rental-hero { padding-block: .4rem; }
  .rentals-site .rental-hero h1 { font-size: 1.05rem; }
  .rentals-site .rental-hero p { font-size: .76rem; line-height: 1.25; }

  #rental-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .3rem .5rem;
    padding: .35rem;
  }

  #rental-search > label {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    font-size: .73rem;
    line-height: 1.25;
  }

  #rental-search :is(input, select, button) {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    min-height: 32px;
    height: 32px;
    margin: 0;
    padding: .15rem .4rem;
  }

  #rental-search :is(input[type=date], input[type=time]) {
    align-self: stretch;
    -webkit-appearance: none;
    appearance: none;
  }

  #rental-search input::-webkit-date-and-time-value {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #rental-search :is(input,select):focus-visible { outline-offset: -2px; }
  #rental-search button { font-size: .8rem; }
  #rental-heading { font-size: 1rem; }
}

#rental-booking .rental-terms { font-size: .8rem; line-height: 1.35; }
#rental-booking .rental-terms a { margin: 0 0 .25rem; }
#rental-booking .rental-terms label {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: .45rem;
  padding-block: .2rem;
  font-size: inherit;
}
#rental-booking .rental-terms input[type=checkbox] {
  appearance: auto;
  width: 16px;
  height: 16px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
}
