/* Property Show masthead on the standalone public catalogue. */
.catalog-masthead {
  --ink: #192a24;
  --forest: #194c3b;
  --line: #dce2dc;
  --shell: 1320px;
  --gut: clamp(22px, 5.15vw, 86px);
  position: relative;
  z-index: 9;
  background: #fafbf8;
  color: var(--ink);
  font: 15px/1.5 Manrope, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.catalog-masthead .shell {
  width: min(calc(100% - var(--gut) * 2), var(--shell));
  margin-inline: auto;
}

.catalog-masthead a {
  color: inherit;
  text-decoration: none;
}

.catalog-masthead :is(a, button, select):focus-visible {
  outline: 3px solid #789f36;
  outline-offset: 4px;
}

.catalog-masthead :is(a, button)[aria-current='page'] {
  border-block-end: 0;
}

.catalog-masthead .gp-icon {
  flex-shrink: 0;
  vertical-align: middle;
}

.catalog-masthead .ps-utility {
  background: #edf2e9;
  border-bottom: 1px solid #dce3d8;
  color: #355245;
}

.catalog-masthead .ps-utility > .shell {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.catalog-masthead .ps-network-name {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  direction: ltr;
}

.catalog-masthead .ps-language {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
}

.catalog-masthead .ps-language select {
  min-height: 30px;
  max-width: 130px;
  padding-inline: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.catalog-masthead .ps-language option {
  background: #fff;
  color: var(--ink);
}

.catalog-masthead .top-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 79px;
}

.catalog-masthead .wordmark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 9px;
  line-height: 1;
  white-space: nowrap;
  direction: ltr;
}

.catalog-masthead .brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #1c4638;
  color: #dafa87;
}

.catalog-masthead .brand-mark svg {
  width: 34px;
  height: 34px;
}

.catalog-masthead .wordmark > span:last-child {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -1px;
}

.catalog-masthead .wordmark small {
  display: block;
  margin-top: 5px;
  font-size: 8.8px;
  font-weight: 800;
  letter-spacing: .31em;
}

.catalog-masthead :is(.desktop-nav, .head-actions, .head-auth) {
  display: flex;
  align-items: center;
}

.catalog-masthead .desktop-nav {
  gap: clamp(8px, .9vw, 16px);
}

.catalog-masthead :is(.desktop-nav > a, .nav-drop > button) {
  font-size: 13px;
  font-weight: 650;
}

.catalog-masthead .desktop-nav > a {
  line-height: 1.3;
}

.catalog-masthead :is(.desktop-nav > a:hover, .desktop-nav .current, .nav-drop > button:hover) {
  color: #48704e;
}

.catalog-masthead .nav-drop {
  position: relative;
}

.catalog-masthead .nav-drop > button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: inherit;
  white-space: nowrap;
}

.catalog-masthead :is(.menu-panel, .mobile-panel) {
  position: absolute;
  z-index: 11;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px #132b241c;
}

.catalog-masthead .menu-panel {
  inset-block-start: 100%;
  inset-inline-start: -12px;
  min-width: 170px;
}

.catalog-masthead .mobile-panel {
  inset-block-start: calc(100% - 5px);
  inset-inline-end: 0;
  width: min(280px, 96vw);
  max-height: calc(100dvh - 100px);
  overflow: auto;
}

.catalog-masthead :is(.menu-panel, .mobile-panel) a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 13px;
}

.catalog-masthead .mobile-panel a {
  justify-content: space-between;
}

.catalog-masthead :is(.menu-panel, .mobile-panel) a:hover {
  background: #f1f4eb;
}

.catalog-masthead .head-actions {
  flex: none;
  gap: 8px;
}

.catalog-masthead .head-auth {
  gap: 6px;
}

.catalog-masthead .round-action {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #d5dcd5;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}

.catalog-masthead .round-action:hover {
  background: #edf1e9;
}

.catalog-masthead :is(.head-add, .head-login) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  border: 1px solid #95aa9f;
  border-radius: 24px;
  font-size: 12.5px;
  font-weight: 750;
  white-space: nowrap;
}

.catalog-masthead .head-login {
  padding: 8px 13px;
  background: #fff;
  color: var(--forest);
}

.catalog-masthead .head-login:is(:hover, [aria-current='page']) {
  border-color: var(--forest);
  background: #edf2e9;
}

.catalog-masthead .head-add {
  padding: 10px 16px;
  border-color: #1f4536;
  background: #1f4536;
  color: #fff;
}

.catalog-masthead .head-add:hover {
  background: #2a604d;
}

.catalog-masthead .mobile-toggle,
.catalog-masthead .head-add.compact-manage,
.catalog-masthead [hidden] {
  display: none;
}

@media (min-width: 1191px) and (max-width: 1460px) {
  .catalog-masthead :is(.desktop-nav > a, .nav-drop > button) {
    font-size: 12px;
  }
}

@media (max-width: 1190px) {
  .catalog-masthead .desktop-nav { display: none; }
  .catalog-masthead .mobile-toggle { display: grid; }
}

@media (min-width: 1001px) and (max-width: 1270px) {
  html:not([lang='bg']) .catalog-masthead .desktop-nav { display: none; }
  html:not([lang='bg']) .catalog-masthead .mobile-toggle { display: grid; }
}

@media (max-width: 1000px) {
  .catalog-masthead .head-actions { gap: 7px; }
  .catalog-masthead .head-auth { order: 1; }
  .catalog-masthead .mobile-toggle { order: 2; }
  .catalog-masthead .head-add.compact-manage { display: inline-flex; }
}

@media (max-width: 830px) {
  .catalog-masthead .top-line { min-height: 66px; }
}

@media (max-width: 700px) {
  .catalog-masthead .top-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, auto);
    align-content: center;
    gap: 4px 7px;
    min-height: 98px;
    padding-block: 6px;
  }
  .catalog-masthead .top-line > .wordmark { grid-area: 1 / 1; justify-self: start; }
  .catalog-masthead .head-actions { display: contents; }
  .catalog-masthead .round-action[href$='#/saved'] { grid-area: 1 / 2; }
  .catalog-masthead .compact-manage { grid-area: 1 / 3; }
  .catalog-masthead .mobile-toggle { grid-area: 1 / 4; }
  .catalog-masthead .head-auth {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 7px;
  }
  .catalog-masthead .head-auth :is(.head-login, .head-register) {
    min-height: 42px;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.2;
  }
  .catalog-masthead .head-auth .head-register svg { display: none; }
}

@media (max-width: 650px) {
  .catalog-masthead { --gut: 18px; }
  .catalog-masthead .ps-network-name { font-size: 8px; }
  .catalog-masthead .ps-utility > .shell { min-height: 29px; }
  .catalog-masthead .wordmark { gap: 7px; }
  .catalog-masthead .brand-mark { width: 35px; height: 35px; border-radius: 8px; }
  .catalog-masthead .brand-mark svg { width: 29px; height: 29px; }
  .catalog-masthead .wordmark > span:last-child { font-size: 16px; }
  .catalog-masthead .wordmark small { margin-top: 4px; font-size: 7.6px; }
  .catalog-masthead .round-action { width: 33px; height: 33px; }
}

@media (max-width: 565px) {
  .catalog-masthead .round-action[href$='#/saved'] { display: none; }
  .catalog-masthead .head-add.compact-manage {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    min-height: 0;
    padding: 0;
    border-color: #cbd5c9;
    background: transparent;
    color: var(--forest);
  }
  .catalog-masthead .compact-manage span { display: none; }
}

@media (max-width: 430px) {
  .catalog-masthead .top-line { width: calc(100% - 20px); gap: 5px; }
  .catalog-masthead .wordmark { gap: 5px; }
  .catalog-masthead .brand-mark { width: 30px; height: 30px; }
  .catalog-masthead .brand-mark svg { width: 26px; height: 26px; }
  .catalog-masthead .wordmark > span:last-child { font-size: 14px; letter-spacing: -.65px; }
  .catalog-masthead .wordmark small { font-size: 6.5px; letter-spacing: .17em; }
}

/* Apply the public homepage's color and type to the catalogue entrance. */
.catalog-skip {
  position: fixed;
  inset-block-start: .75rem;
  inset-inline-start: .75rem;
  z-index: 20;
  transform: translateY(-200%);
  background: #d6f681;
  color: #17382b;
  padding: .6rem 1rem;
  border-radius: .6rem;
}

.catalog-skip:focus {
  transform: none;
  outline: 2px solid #17382b;
}

#collection .catalog-cover {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  min-height: clamp(18rem, 33vw, 26rem);
  margin: 0 0 1.25rem;
  overflow: hidden;
  border-radius: 1.375rem;
  background: #194134;
  color: #fff;
}

#collection .catalog-cover img,
#collection .catalog-cover::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

#collection .catalog-cover img {
  object-fit: cover;
  object-position: 65% 60%;
}

#collection .catalog-cover::after {
  z-index: -1;
  content: '';
  background: linear-gradient(91deg, #142f27f5 0%, #16342ae8 25%, #163329ab 47%, #122e25a0 57%, transparent 79%),
              linear-gradient(0deg, #142f27bd, transparent 28%);
}

#collection .catalog-cover-copy {
  padding: 2.35rem clamp(1.35rem, 5vw, 4rem) 4rem;
  width: min(100%, 42rem);
}

#collection .catalog-cover h1 {
  margin: 0 0 .55rem;
  font-family: Manrope, Arial, sans-serif;
  font-size: clamp(2.65rem, 6.4vw, 5.25rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.06em;
  color: inherit;
}

#collection .catalog-cover h1 em {
  color: #d6edaa;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  letter-spacing: -.035em;
}

#collection .catalog-cover-copy p {
  margin: 0;
  max-width: 33rem;
  color: #f5f8ef;
  font-size: clamp(1rem, 1.9vw, 1.17rem);
  line-height: 1.5;
}

#collection .catalog-cover-credit {
  position: absolute;
  inset-inline: clamp(1.35rem, 5vw, 4rem);
  bottom: 1.3rem;
  display: grid;
  justify-items: end;
  gap: .12rem;
  color: #fff;
}

#collection .catalog-cover-credit a {
  color: inherit;
  text-underline-offset: .2rem;
  font-weight: 800;
}

#collection .catalog-cover-credit small {
  color: #f5f8ef;
  font-size: .75rem;
}

#collection .catalog-demo-intro,
#collection:has([data-source='demo'][aria-pressed='true']) .catalog-cover {
  display: none;
}

#collection:has([data-source='demo'][aria-pressed='true']) .catalog-demo-intro {
  display: grid;
}

#collection #filters .primary {
  background: #d6f681;
  border-color: #c9e575;
  color: #16372a;
  font-weight: 800;
}

#collection #filters .primary:hover {
  background: #c9ed68;
  border-color: #bedd57;
}

@media (max-width: 650px) {
  #collection .catalog-cover {
    align-content: end;
    border-radius: 1.1rem;
  }

  #collection .catalog-cover img {
    object-position: 66% 53%;
  }

  #collection .catalog-cover::after {
    background: linear-gradient(0deg, #142f27 1%, #142f27dd 31%, #142f2788 60%, transparent 94%);
  }

  #collection .catalog-cover-copy {
    padding-bottom: 4.6rem;
  }

  #collection .catalog-cover-credit {
    justify-items: start;
  }
}
