:root{
  --hc-radius:12px;
  --hc-radius-small:8px;
  --hc-pill:10px;
  --radius-compact:6px;
  --radius-surface:var(--hc-radius-small);
  --radius-dialog:var(--hc-radius);
}

/* Keep Yacht Collection on the same vertical title line as other workspaces. */
.yachtpage{
  padding-top:0;
}

.staypagehead{
  align-items:flex-end;
}

.staycreatebutton{
  display:grid;
  width:52px;
  height:52px;
  flex:0 0 52px;
  place-items:center;
  border:1.5px solid var(--hc-ink);
  border-radius:var(--hc-pill);
  background:var(--hc-ink);
  box-shadow:0 2px 7px rgba(16,16,16,.12);
  color:var(--hc-surface);
  cursor:pointer;
  transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}

.staycreatebutton span{
  display:block;
  font:400 35px/1 Arial,sans-serif;
  transform:translateY(-1px);
}

.staycreatebutton:hover:not(:disabled){
  border-color:#292929;
  background:#292929;
  box-shadow:0 5px 14px rgba(16,16,16,.16);
  transform:translateY(-1px);
}

.staycreatebutton:focus-visible{
  outline:2px solid var(--hc-ink);
  outline-offset:4px;
}

/* Discussions uses the same header rhythm as Villa Collection. */
.discussionpagehead{
  display:block;
  margin-bottom:22px;
}

.discussionspage .discussionpagehead > .directorypageheadline{
  width:100%;
  max-width:none;
  align-items:center;
  justify-content:space-between;
}

.discussionpagehead .workspacetitle{
  margin:7px 0 6px;
}

.discussionpagehead > .discussionpagesearch{
  width:100%;
  min-height:46px;
  margin-top:22px;
  border:1.5px solid var(--hc-line);
  border-radius:var(--hc-pill);
  padding:0 16px;
}

.discussionpagehead > .discussionpagesearch input{
  height:42px;
  font-size:14px;
  font-weight:400;
}

.discussionpagehead > .discussionpagesearch:focus-within{
  border:2px solid var(--hc-ink);
  box-shadow:none;
}

.discussionpageactions{
  margin-left:auto;
  justify-content:flex-end;
}

.discussionpageactions .discussionnewbutton{
  min-height:48px;
  border:1.5px solid var(--hc-ink);
  border-radius:4px;
  background:var(--hc-ink);
  padding:0 20px;
  box-shadow:0 2px 7px rgba(16,16,16,.12);
  color:var(--hc-surface);
  font-weight:700;
  letter-spacing:.045em;
  text-transform:uppercase;
  transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}

.discussionpageactions .discussionnewbutton:hover:not(:disabled){
  border-color:#292929;
  background:#292929;
  box-shadow:0 5px 14px rgba(16,16,16,.16);
  color:var(--hc-surface);
  opacity:1;
  transform:translateY(-1px);
}

.directoryfavoritesbutton.directoryfavoritesbuttonhead{
  border-color:var(--hc-ink);
  background:var(--hc-ink);
  box-shadow:0 2px 7px rgba(16,16,16,.12);
  color:var(--hc-surface);
}

.directoryfavoritesbutton.directoryfavoritesbuttonhead:hover:not(:disabled){
  border-color:#292929;
  background:#292929;
  box-shadow:0 5px 14px rgba(16,16,16,.16);
  color:var(--hc-surface);
}

.directoryfavoritesbutton.directoryfavoritesbuttonhead .directoryfavoritesbuttoncount{
  background:var(--hc-surface);
  color:var(--hc-ink);
}

.yachtfavoritesopen{
  border-color:var(--hc-ink);
  background:var(--hc-ink);
  box-shadow:0 2px 7px rgba(16,16,16,.12);
  color:var(--hc-surface);
}

.yachtfavoritesopen:hover:not(:disabled){
  border-color:#292929;
  background:#292929;
  box-shadow:0 5px 14px rgba(16,16,16,.16);
  color:var(--hc-surface);
  transform:translateY(-1px);
}

.yachtfavoritesopen strong{
  background:var(--hc-surface);
  color:var(--hc-ink);
}

.yachtmetricsourcelink{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  align-items:baseline;
  gap:8px;
  margin-top:8px;
  color:var(--hc-ink);
  text-decoration:none;
}

.yachtmetricsourcelink strong{
  margin-top:0;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:4px;
}

.yachtmetricsourcelink .yachtmetricsourcearrow{
  display:inline-block;
  color:var(--hc-ink);
  font:700 13px/1 Arial,sans-serif;
  letter-spacing:0;
  text-transform:none;
  transition:transform .16s ease;
}

.yachtmetricsourcelink:hover strong{
  text-decoration-thickness:2px;
}

.yachtmetricsourcelink:hover .yachtmetricsourcearrow{
  transform:translate(2px,-2px);
}

.yachtmetricsourcelink:focus-visible{
  outline:2px solid var(--hc-ink);
  outline-offset:5px;
}

.yachtpartnershiplogo.yachtpartnershipfooter{
  width:100%;
  min-height:0;
  margin:34px auto 0;
  border-top:1px solid var(--hc-line-soft);
  padding:26px 0 2px;
  justify-content:center;
}

.yachtpartnershiplogo.yachtpartnershipfooter img{
  width:min(100%,150px);
}

/* Replace remaining hard-coded pills with the calmer shared corner. */
.directoryfavoritesbutton.directoryfavoritesbuttonhead,
.directorypublicationstatus,
.directorypublicationreadiness,
.directorypublicationpreviewcontent button,
.realestateprivacy,
.realestateflag,
.realestateorganizationbadge,
.realestateactcode,
.realestatemarketstatus,
.reintel-state,
.reacts-controls button,
.reacts-type,
.reacts-record a,
.reacts-pages button{
  border-radius:var(--hc-pill);
}

.directoryfavoritespanel,
.locationreviewbulkdialog{
  border-radius:var(--hc-radius);
}

@media(max-width:850px){
  .discussionspage .discussionpagehead > .directorypageheadline{
    align-items:flex-start;
    flex-direction:column;
    gap:17px;
  }

  .discussionpageactions,
  .discussionnewbutton{
    width:100%;
  }

  .discussionpageactions{
    margin-left:0;
  }
}

@media(max-width:680px){
  .staypagehead{
    align-items:flex-start;
    flex-direction:row;
    gap:16px;
  }

  .staypagehead > div{
    min-width:0;
  }

  .discussionpagehead > .discussionpagesearch{
    min-height:46px;
    margin-top:17px;
  }

  /* Rental search: keep the mobile request and results compact and scannable. */
  #rentalSearchView .chat.show{
    margin-top:12px;
  }

  #rentalSearchView .messages{
    gap:10px;
    padding:14px;
  }

  #rentalSearchView .message{
    max-width:88%;
    padding:10px 12px;
    font-size:14px;
    line-height:1.4;
  }

  #rentalSearchView .chatcomposer{
    gap:8px;
    padding:10px;
  }

  #rentalSearchView .chatcomposer input{
    min-width:0;
    min-height:44px;
    height:44px;
    padding:0 10px;
    font-size:16px;
  }

  #rentalSearchView .chatcomposer .secondary{
    flex:0 0 auto;
    min-width:84px;
    min-height:44px;
    padding:0 12px;
    font-size:11px;
  }

  #rentalSearchView .briefbar.show{
    gap:10px;
    margin-top:14px;
    padding:12px 14px;
  }

  #rentalSearchView .resultshead.show{
    margin-top:28px;
    margin-bottom:12px;
  }

  #rentalSearchView .resultshead h2{
    font-size:34px;
    line-height:1;
  }

  #rentalSearchView .resultcardgroup{
    gap:14px;
  }

  #rentalSearchView .resultcardgroup > .card{
    flex-basis:100%;
  }

  #rentalSearchView .resultcardgroup > .card .photo{
    aspect-ratio:16 / 9;
  }

  #rentalSearchView .resultcardgroup > .card .cardbody{
    padding:14px;
  }

  #rentalSearchView .resultcardgroup > .card .statusrow{
    align-items:flex-start;
    margin-bottom:8px;
  }

  #rentalSearchView .resultcardgroup > .card .badge{
    padding:6px 8px;
    font-size:9px;
    line-height:1.2;
  }

  #rentalSearchView .resultcardgroup > .card .score{
    font-size:11px;
    line-height:1.3;
  }

  #rentalSearchView .resultcardgroup > .card h3{
    margin-bottom:5px;
    font-size:24px;
    line-height:1.05;
    overflow-wrap:anywhere;
  }

  #rentalSearchView .resultcardgroup > .card .area{
    margin-bottom:10px;
  }

  #rentalSearchView .resultcardgroup > .card .facts{
    gap:12px;
    padding:10px 0;
  }

  #rentalSearchView .resultcardgroup > .card .fact span{
    font-size:10px;
  }

  #rentalSearchView .resultcardgroup > .card .fact strong{
    font-size:14px;
  }

  #rentalSearchView .resultcardgroup > .card .selectbtn{
    min-height:44px;
    margin-top:10px;
    padding:8px 10px;
    font-size:11px;
    line-height:1.25;
    white-space:normal;
  }
}
