/* ==================================================
   RENGINIO VEDĖJO PROFILIO PUSLAPIS

   Visi stiliai apriboti .host-profile-page klase,
   todėl neturėtų keisti kitų svetainės elementų.
================================================== */

.host-profile-page {
  --host-purple: #6d27d8;
  --host-purple-dark: #5720b4;
  --host-purple-light: #f5efff;
  --host-pink: #e824a7;
  --host-green: #16b16a;
  --host-green-dark: #0f9256;
  --host-text: #171922;
  --host-muted: #686475;
  --host-border: #e8e1ed;
  --host-white: #ffffff;

  width: 100%;
  display: block;
  color: var(--host-text);
  background: var(--host-white);
  font-family: "Manrope", Arial, sans-serif;
  isolation: isolate;
}

.host-profile-page *,
.host-profile-page *::before,
.host-profile-page *::after {
  box-sizing: border-box;
}

.host-profile-page button,
.host-profile-page input,
.host-profile-page textarea,
.host-profile-page select {
  font: inherit;
}

.host-profile-page img,
.host-profile-page video {
  max-width: 100%;
}

.host-profile-page h1,
.host-profile-page h2,
.host-profile-page p {
  padding: 0;
}


/* ==================================================
   PAGRINDINĖ SEKCIJA
================================================== */

.host-profile-page .host-profile {
  width: 100%;
  padding: 35px 0 90px;
}

.host-profile-page .host-profile__shell {
  width: min(1320px, calc(100% - 80px));
  margin-inline: auto;
}


/* ==================================================
   KELIO NAVIGACIJA
================================================== */

.host-profile-page .host-profile__breadcrumbs {
  width: 100%;
  margin: 0 0 30px;
  padding: 11px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--host-border);
  color: #777180;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.host-profile-page .host-profile__breadcrumbs a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.host-profile-page .host-profile__breadcrumbs a:hover {
  color: var(--host-purple);
}

.host-profile-page .host-profile__breadcrumbs i {
  color: #aaa3b1;
  font-size: 8px;
}

.host-profile-page
  .host-profile__breadcrumbs
  span[aria-current="page"] {
  color: var(--host-purple-dark);
}


/* ==================================================
   DVIEJŲ STULPELIŲ IŠDĖSTYMAS
================================================== */

.host-profile-page .host-profile__layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  align-items: start;
  gap: 30px;
}

/*
  Čia nėra position: sticky.
  Dėl to kairė ir dešinė pusės slenka kartu.
*/

.host-profile-page .host-profile__sidebar {
  min-width: 0;
  position: static;
  align-self: start;
}

.host-profile-page .host-profile__content {
  min-width: 0;
  display: grid;
  gap: 24px;
}


/* ==================================================
   KAIRĖS PUSĖS KORTELĖ
================================================== */

.host-profile-page .host-summary-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--host-border);
  border-radius: 24px;
  background: var(--host-white);
  box-shadow: 0 12px 38px rgba(37, 18, 56, 0.08);
}

/*
  Apsauga nuo pagrindiniame CSS esančių
  kortelių hover animacijų.
*/

.host-profile-page .host-summary-card,
.host-profile-page .host-summary-card:hover,
.host-profile-page .host-summary-card:focus-within {
  transform: none !important;
}


/* ==================================================
   PROFILIO NUOTRAUKA
================================================== */

.host-profile-page .host-summary-card__media {
  min-height: 272px;
  padding: 36px 28px 27px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(
      circle at 50% 43%,
      rgba(109, 39, 216, 0.16),
      transparent 54%
    ),
    linear-gradient(
      180deg,
      #faf7ff 0%,
      #ffffff 100%
    );
}

.host-profile-page .host-summary-card__image {
  width: 194px;
  height: 194px;
  padding: 6px;
  flex: 0 0 194px;
  display: block;
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      var(--host-purple),
      #a865eb,
      var(--host-pink)
    );
  box-shadow:
    0 18px 38px rgba(80, 34, 119, 0.22),
    0 0 0 9px rgba(109, 39, 216, 0.06);
}

/*
  Nuotrauka niekada nejuda užvedus pelę.
  !important naudojamas tam, kad pagrindinio
  puslapio CSS negalėtų pritaikyti transformacijos.
*/

.host-profile-page .host-summary-card__image,
.host-profile-page .host-summary-card__image:hover,
.host-profile-page .host-summary-card__image img,
.host-profile-page .host-summary-card__image:hover img,
.host-profile-page .host-summary-card:hover
  .host-summary-card__image,
.host-profile-page .host-summary-card:hover
  .host-summary-card__image img {
  transform: none !important;
  translate: none !important;
}

.host-profile-page .host-summary-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  border: 5px solid var(--host-white);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  transition: none !important;
}

.host-profile-page .host-summary-card__badge {
  max-width: calc(100% - 32px);
  padding: 7px 12px;
  position: absolute;
  top: 17px;
  right: 17px;
  border-radius: 999px;
  color: var(--host-white);
  background: rgba(27, 18, 31, 0.75);
  box-shadow: 0 5px 14px rgba(20, 8, 27, 0.14);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  backdrop-filter: blur(8px);
}


/* ==================================================
   KAIRĖS KORTELĖS TURINYS
================================================== */

.host-profile-page .host-summary-card__body {
  padding: 5px 24px 25px;
  text-align: left;
}


/* ==================================================
   INFORMACIJOS SĄRAŠAS
================================================== */

.host-profile-page .host-summary-card__facts {
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
  text-align: left;
}

.host-profile-page .host-summary-card__facts li {
  min-width: 0;
  min-height: 64px;
  margin: 0;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid #eee8f2;
  border-radius: 14px;
  background: #fdfcff;
  text-align: left;
}

.host-profile-page .host-summary-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--host-purple);
  background: var(--host-purple-light);
  font-size: 14px;
}

.host-profile-page .host-summary-card__fact {
  min-width: 0;
  display: block;
  text-align: left;
}

.host-profile-page .host-summary-card__fact small,
.host-profile-page .host-summary-card__fact strong {
  display: block;
  text-align: left;
}

.host-profile-page .host-summary-card__fact small {
  margin: 0 0 3px;
  color: #8a8391;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.3;
  text-transform: uppercase;
}

.host-profile-page .host-summary-card__fact strong {
  color: #4f4959;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}


/* ==================================================
   DEŠINĖS PUSĖS VARDO KORTELĖ
================================================== */

.host-profile-page .host-profile__header {
  padding: 32px 38px;
  border: 1px solid var(--host-border);
  border-radius: 24px;
  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #fcfaff 60%,
      #f4edff 100%
    );
}

.host-profile-page .host-profile__header h1 {
  margin: 0;
  color: var(--host-text);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}


/* ==================================================
   BENDROS TURINIO KORTELĖS
================================================== */

.host-profile-page .host-description,
.host-profile-page .host-gallery {
  padding: 34px 36px;
  border: 1px solid var(--host-border);
  border-radius: 24px;
  background: var(--host-white);
  box-shadow: 0 8px 28px rgba(37, 18, 56, 0.055);
}

.host-profile-page .host-section-heading {
  margin: 0 0 23px;
}

.host-profile-page .host-section-heading--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.host-profile-page .host-section-heading > span,
.host-profile-page .host-section-heading > div > span {
  margin: 0 0 6px;
  display: block;
  color: var(--host-purple);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.host-profile-page .host-section-heading h2 {
  margin: 0;
  color: var(--host-text);
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.host-profile-page .host-section-heading--row > p {
  max-width: 300px;
  margin: 0;
  color: #8a8391;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
}


/* ==================================================
   APRAŠYMAS
================================================== */

.host-profile-page .host-description__text {
  color: var(--host-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.85;
}

.host-profile-page .host-description__text p {
  margin: 0 0 18px;
}

.host-profile-page .host-description__text p:last-child {
  margin-bottom: 0;
}

.host-profile-page .host-description__highlight {
  margin-top: 27px;
  padding: 21px 23px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  border: 1px solid rgba(109, 39, 216, 0.14);
  border-radius: 17px;
  background:
    linear-gradient(
      135deg,
      #faf7ff,
      var(--host-purple-light)
    );
}

.host-profile-page .host-description__highlight-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--host-white);
  background: var(--host-purple);
  box-shadow: 0 8px 18px rgba(109, 39, 216, 0.2);
  font-size: 15px;
}

.host-profile-page .host-description__highlight p {
  margin: 0;
  color: var(--host-purple-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
}


/* ==================================================
   GALERIJA
================================================== */

.host-profile-page .host-gallery__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.host-profile-page .host-gallery__item {
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  position: relative;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 17px;
  background: #ece6f1;
  cursor: pointer;
  appearance: none;
  transform: none;
}

.host-profile-page .host-gallery__item:hover {
  transform: none;
}

.host-profile-page .host-gallery__item img,
.host-profile-page .host-gallery__item video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
  pointer-events: none;
  transition: filter 0.2s ease;
}

.host-profile-page .host-gallery__item:hover img,
.host-profile-page .host-gallery__item:hover video {
  filter: brightness(0.88);
  transform: none;
}

.host-profile-page .host-gallery__item:focus-visible {
  outline: 3px solid rgba(109, 39, 216, 0.35);
  outline-offset: 4px;
}

/*
  Paprasta stačiakampė vaizdo įrašo etiketė.
  Apskritimo galerijos viduje nebėra.
*/

.host-profile-page .host-gallery__video-label {
  padding: 8px 11px;
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 9px;
  color: var(--host-white);
  background: rgba(20, 15, 25, 0.78);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.host-profile-page .host-gallery__video-label i {
  font-size: 9px;
}


/* ==================================================
   KAINA IR UŽKLAUSOS MYGTUKAS
================================================== */

.host-profile-page .host-booking {
  padding: 27px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid rgba(22, 177, 106, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 95% 0%,
      rgba(22, 177, 106, 0.12),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #ffffff,
      #f5fff9
    );
  box-shadow: 0 9px 30px rgba(15, 109, 65, 0.075);
}

.host-profile-page .host-booking__content {
  min-width: 0;
  display: grid;
  grid-template-columns: 51px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
}

.host-profile-page .host-booking__icon {
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--host-white);
  background: var(--host-green);
  box-shadow: 0 10px 22px rgba(22, 177, 106, 0.21);
  font-size: 18px;
}

.host-profile-page .host-booking__content span {
  margin-bottom: 5px;
  display: block;
  color: var(--host-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.host-profile-page .host-booking__content p {
  max-width: 550px;
  margin: 0;
  color: var(--host-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.65;
}

.host-profile-page .host-booking__action {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 19px;
}

.host-profile-page .host-booking__price {
  min-width: 110px;
}

.host-profile-page .host-booking__price small,
.host-profile-page .host-booking__price strong,
.host-profile-page .host-booking__price span {
  display: block;
}

.host-profile-page .host-booking__price small {
  margin-bottom: 2px;
  color: #85808a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.3;
  text-transform: uppercase;
}

.host-profile-page .host-booking__price strong {
  color: var(--host-text);
  font-size: 29px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.host-profile-page .host-booking__price span {
  margin-top: 2px;
  color: #85808a;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.host-profile-page .host-booking__button {
  min-height: 50px;
  padding: 13px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  color: var(--host-white);
  background: var(--host-green);
  box-shadow: 0 10px 22px rgba(22, 177, 106, 0.22);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.host-profile-page .host-booking__button:hover {
  color: var(--host-white);
  background: var(--host-green-dark);
  box-shadow: 0 14px 27px rgba(22, 177, 106, 0.28);
  transform: none;
}

.host-profile-page .host-booking__button:focus-visible {
  outline: 3px solid rgba(22, 177, 106, 0.3);
  outline-offset: 4px;
}


/* ==================================================
   GALERIJOS MODALINIS LANGAS
================================================== */

.host-profile-page .host-gallery-modal {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 20px;
  border: 0;
  background: transparent;
}

.host-profile-page .host-gallery-modal::backdrop {
  background: rgba(13, 9, 17, 0.9);
  backdrop-filter: blur(7px);
}

.host-profile-page .host-gallery-modal[open] {
  display: grid;
  place-items: center;
}

.host-profile-page .host-gallery-modal__window {
  width: min(1100px, 100%);
  max-height: calc(100vh - 40px);
  padding: 20px;
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 15px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: #17121c;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.host-profile-page .host-gallery-modal__media {
  min-width: 0;
  min-height: 300px;
  max-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  background: #08070a;
}

.host-profile-page .host-gallery-modal__image,
.host-profile-page .host-gallery-modal__video {
  width: 100%;
  max-height: calc(100vh - 80px);
  display: block;
  object-fit: contain;
}

.host-profile-page .host-gallery-modal__image[hidden],
.host-profile-page .host-gallery-modal__video[hidden] {
  display: none;
}

.host-profile-page .host-gallery-modal__close,
.host-profile-page .host-gallery-modal__navigation {
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: var(--host-white);
  background: rgba(255, 255, 255, 0.11);
  cursor: pointer;
  appearance: none;
  transition: background 0.2s ease;
}

.host-profile-page .host-gallery-modal__close:hover,
.host-profile-page .host-gallery-modal__navigation:hover {
  background: var(--host-purple);
  transform: none;
}

.host-profile-page .host-gallery-modal__close {
  width: 42px;
  height: 42px;
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 3;
  font-size: 17px;
}

.host-profile-page .host-gallery-modal__navigation {
  width: 48px;
  height: 48px;
  font-size: 15px;
}


/* ==================================================
   RESPONSIVE DIZAINAS
================================================== */

@media (max-width: 1100px) {
  .host-profile-page .host-profile__shell {
    width: calc(100% - 48px);
  }

  .host-profile-page .host-profile__layout {
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 22px;
  }

  .host-profile-page .host-summary-card__body {
    padding-right: 19px;
    padding-left: 19px;
  }

  .host-profile-page .host-description,
  .host-profile-page .host-gallery {
    padding: 30px;
  }

  .host-profile-page .host-booking {
    align-items: stretch;
    flex-direction: column;
  }

  .host-profile-page .host-booking__action {
    justify-content: flex-end;
  }
}


@media (max-width: 900px) {
  .host-profile-page .host-profile__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .host-profile-page .host-profile__sidebar {
    width: 100%;
    position: static;
  }

  .host-profile-page .host-summary-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .host-profile-page .host-summary-card__media {
    min-height: 100%;
  }

  .host-profile-page .host-summary-card__body {
    padding: 26px 24px;
  }
}


@media (max-width: 700px) {
  .host-profile-page .host-profile {
    padding: 20px 0 60px;
  }

  .host-profile-page .host-profile__shell {
    width: calc(100% - 28px);
  }

  .host-profile-page .host-profile__breadcrumbs {
    margin-bottom: 20px;
    padding: 9px 0;
    font-size: 10px;
  }

  .host-profile-page .host-summary-card {
    display: block;
    border-radius: 20px;
  }

  .host-profile-page .host-summary-card__media {
    min-height: 235px;
    padding: 29px 20px 22px;
  }

  .host-profile-page .host-summary-card__image {
    width: 170px;
    height: 170px;
    flex-basis: 170px;
  }

  .host-profile-page .host-summary-card__body {
    padding: 5px 18px 20px;
  }

  .host-profile-page .host-profile__header {
    padding: 25px 23px;
    border-radius: 20px;
  }

  .host-profile-page .host-profile__header h1 {
    font-size: 34px;
  }

  .host-profile-page .host-description,
  .host-profile-page .host-gallery {
    padding: 26px 21px;
    border-radius: 20px;
  }

  .host-profile-page .host-section-heading--row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .host-profile-page .host-section-heading--row > p {
    max-width: none;
    text-align: left;
  }

  .host-profile-page .host-description__text {
    font-size: 13px;
    line-height: 1.8;
  }

  .host-profile-page .host-description__highlight {
    padding: 18px;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .host-profile-page .host-description__highlight-icon {
    width: 40px;
    height: 40px;
  }

  .host-profile-page .host-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .host-profile-page .host-booking {
    padding: 24px 21px;
    border-radius: 20px;
  }

  .host-profile-page .host-booking__action {
    align-items: stretch;
    flex-direction: column;
  }

  .host-profile-page .host-booking__button {
    width: 100%;
  }

  .host-profile-page .host-gallery-modal {
    padding: 10px;
  }

  .host-profile-page .host-gallery-modal__window {
    max-height: calc(100vh - 20px);
    padding: 54px 10px 12px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 7px;
    border-radius: 17px;
  }

  .host-profile-page .host-gallery-modal__media {
    min-height: 200px;
    max-height: calc(100vh - 90px);
  }

  .host-profile-page .host-gallery-modal__image,
  .host-profile-page .host-gallery-modal__video {
    max-height: calc(100vh - 90px);
  }

  .host-profile-page .host-gallery-modal__navigation {
    width: 42px;
    height: 42px;
  }
}


@media (max-width: 450px) {
  .host-profile-page .host-profile__shell {
    width: calc(100% - 22px);
  }

  .host-profile-page .host-gallery__grid {
    grid-template-columns: 1fr;
  }

  .host-profile-page .host-booking__content {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .host-profile-page .host-booking__icon {
    width: 44px;
    height: 44px;
  }

  .host-profile-page .host-gallery-modal__window {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }

  .host-profile-page .host-gallery-modal__navigation {
    width: 36px;
    height: 42px;
  }
}