/* Albania Real Estate - design 2026: property page (Property-Final / Property-Mobile). */

/* Property-Final: content 1280 wide (header too), Home is 1216 */
.page-property .header .wrap, .page-property .prop { max-width: 1344px; }
.prop { padding-top: 24px; padding-bottom: 72px; }
.prop__crumbs { margin-bottom: 16px; }
.crumbs a + a { color: var(--accent); }

/* gallery: big photo / video + 4 thumbs */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 10px; }
.gallery--single { grid-template-columns: 1fr; }
.gallery--few .gallery__thumb { grid-row: span 2; }
.gallery--two { grid-template-columns: 2fr 1fr; }
.gallery--four .gallery__thumb:last-child { grid-column: span 2; }
.gallery__main { grid-row: 1 / 3; position: relative; border-radius: 24px; overflow: hidden; background: #A9C7D0; }
.gallery__open, .gallery__thumb { border: none; padding: 0; margin: 0; cursor: zoom-in; display: block; width: 100%; height: 100%; background: #C9D9DE; position: relative; border-radius: 24px; overflow: hidden; }
.gallery__open { border-radius: 0; }
.gallery__open img, .gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__main .badge { top: 16px; left: 16px; font-size: 13px; padding: 6px 10px; }
.gallery__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; border-radius: 999px; border: none; background: rgba(255, 255, 255, .94); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 18, 41, .25); }
.gallery__play .ico { width: 30px; height: 30px; margin-left: 4px; }
.gallery__caption { position: absolute; left: 16px; bottom: 16px; background: rgba(0, 18, 41, .82); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 8px; }
.gallery__main iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery__all { position: absolute; right: 12px; bottom: 12px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 800; padding: 10px 14px; border-radius: 12px; }

.prop__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "head aside" "rest aside"; grid-template-rows: auto 1fr; column-gap: 36px; margin-top: 30px; align-items: start; }
.prop__head { grid-area: head; display: flex; flex-direction: column; gap: 12px; }
.prop__aside { grid-area: aside; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.prop__rest { grid-area: rest; display: flex; flex-direction: column; gap: 32px; margin-top: 32px; }

.prop__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.prop__pills:empty { display: none; }
.ppill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--bg-soft); color: var(--ink); font-size: 13px; font-weight: 700; }
.ppill--red { background: #FDECEC; color: var(--accent-text); }
.ppill--ink { background: var(--ink); color: #fff; }
.ppill--sold { background: var(--sold); color: #fff; }
.prop__title-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.prop__title { font-size: 46px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.share-btn--lg { width: 46px; height: 46px; }
.share-btn--lg .ico { width: 18px; height: 18px; }
.prop__where { margin: 0; color: var(--muted); font-size: 16px; }
.prop__price { margin: 0; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.prop__price > span:first-child { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.prop__m2 { color: var(--muted); font-size: 16px; }

.facts { margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.fact { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.fact dt { font-size: 13px; color: var(--muted); }
.fact dd { margin: 0; font-weight: 800; font-size: 17px; line-height: 1.25; }

/* broker card */
.broker { border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.broker__who { display: flex; gap: 14px; align-items: center; }
.broker__avatar { width: 56px; height: 56px; border-radius: 999px; background: #E6EBF1; color: var(--ink); font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; object-fit: cover; }
.broker__text { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.broker__text strong { color: var(--ink); font-size: 17px; }
.broker__wa { height: 52px; border-radius: 14px; font-size: 16px; font-weight: 800; }
.broker__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.broker__row .btn { height: 48px; padding: 0 8px; gap: 6px; }
.broker__row .ico { width: 16px; height: 16px; }
.broker__note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.broker__note strong { color: var(--ink); font-weight: 700; }
.safe { margin: 0; display: flex; gap: 10px; align-items: flex-start; background: #E9F6F9; border-radius: 12px; padding: 12px 14px; font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.safe .ico { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.safe strong { color: var(--ink); }

/* message form */
.msg { border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.msg__title { font-size: 19px; font-weight: 800; }
.msg__lead { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.msg .field { color: var(--ink); }
.msg textarea { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; font: 500 15px/1.5 var(--font); color: var(--ink); resize: vertical; width: 100%; }
.msg textarea:focus { border-color: var(--link); outline: 2px solid rgba(0, 102, 255, .2); }
.field__opt { font-weight: 500; color: var(--muted); }
.reply { border: 0; margin: 0; padding: 0; min-width: 0; }
.reply .field-label { color: var(--ink); }
.reply__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rchip { position: relative; }
.rchip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rchip span { height: 40px; border-radius: 999px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; cursor: pointer; }
.rchip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.rchip input:focus-visible + span { outline: 3px solid var(--link); outline-offset: 2px; }
.check--sm { height: auto; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.msg__send { height: 50px; border-radius: 999px; font-size: 16px; font-weight: 800; }
.msg__legal { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }
.msg__legal a { color: var(--link); }

.alert-me { display: flex; gap: 12px; align-items: center; background: #E9F6F9; border-radius: 18px; padding: 16px 18px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; }
.alert-me:hover { color: var(--ink); background: #ddf0f5; }
.alert-me .ico { color: var(--accent); flex: none; }
.alert-me strong { color: var(--accent-text); margin-left: auto; white-space: nowrap; }

/* details */
.prop__h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.prop__h2--lg { font-size: 32px; letter-spacing: -0.03em; margin-bottom: 20px; }
.prop__text { margin: 0 0 12px; font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 760px; }
.feats { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.feats li { border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-size: 14px; font-weight: 600; }
.plans { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.plans a { font-weight: 700; }
.map--prop { height: 300px; min-height: 0; border-radius: 22px; }
.map__hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.dist { margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.dist div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dist dt { color: var(--muted); }
.dist dd { margin: 0; font-weight: 700; }
.pin-home { width: 28px; height: 28px; border-radius: 999px; background: var(--accent); border: 4px solid #fff; box-shadow: 0 4px 12px rgba(0, 18, 41, .3); transform: translate(-50%, -50%); }

.similar { margin-top: 64px; }
.similar__cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.similar__cards .mini-card__media { height: 160px; }

.prop-bar { display: none; }
.round-btn { width: 44px; height: 44px; border-radius: 999px; border: none; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 18, 41, .15); padding: 0; }
.round-btn .ico { width: 20px; height: 20px; stroke-width: 2; }
.fav-btn--inline[aria-pressed="true"] { color: var(--accent); }
.fav-btn--inline[aria-pressed="true"] .ico { fill: currentColor; }

/* photos */
.lightbox { width: min(1100px, 100vw); max-width: 100vw; max-height: 100vh; height: 100vh; padding: 0; border: 0; background: rgba(0, 18, 41, .96); margin: 0 auto; }
.lightbox::backdrop { background: rgba(0, 18, 41, .9); }
.lightbox__list { display: flex; flex-direction: column; gap: 12px; padding: 64px 16px 32px; }
.lightbox__list img { width: 100%; height: auto; border-radius: 12px; display: block; }
/* block-level and pushed right by margin-left: auto; a float here narrowed the whole photo list by its width.
   The -56px bottom margin (12 + 44) keeps the list where it was: its 64px top padding is under the button. */
.lightbox__close { position: sticky; top: 12px; display: flex; margin: 12px 12px -56px auto; z-index: 2; }

@media (max-width: 1100px) {
  .prop__grid { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 24px; }
  .prop__title { font-size: 38px; }
}

@media (max-width: 960px) {
  /* the maket Property-Mobile starts with the photo: back / share / heart over it */
  .page-property .utility, .page-property .header { display: none; }
  .page-property .bottom-bar { display: none; }
  .prop { padding-top: 0; padding-bottom: 32px; }
  .gallery { display: block; margin: 0 calc(-1 * var(--gutter)); }
  .gallery__main { height: 340px; border-radius: 0; }
  .gallery__play { width: 64px; height: 64px; }
  .gallery__play .ico { width: 24px; height: 24px; }
  .gallery__main .badge { top: 66px; left: 12px; font-size: 12px; }
  .gallery__top { display: flex !important; justify-content: space-between; position: absolute; top: 12px; left: 12px; right: 12px; pointer-events: none; }
  .gallery__top > * { pointer-events: auto; }
  .gallery__top-right { display: flex; gap: 8px; }
  .gallery__chips { display: flex !important; gap: 6px; position: absolute; left: 12px; right: 12px; bottom: 12px; overflow-x: auto; scrollbar-width: none; }
  .gchip { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; border: none; background: #fff; color: var(--ink); font: 700 13px var(--font); display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
  .gchip--ink { background: var(--ink); color: #fff; }

  .prop__grid { display: flex; flex-direction: column; align-items: stretch; margin-top: 16px; }
  .prop__head { gap: 8px; }
  .prop__title { font-size: 30px; }
  .share-btn--lg { width: 40px; height: 40px; }
  .prop__where { font-size: 14px; }
  .prop__price > span:first-child { font-size: 30px; }
  .prop__m2 { font-size: 14px; }
  .facts--short { display: grid !important; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; }
  .facts--short .fact { align-items: center; padding: 12px 6px; text-align: center; gap: 2px; }
  .facts--short dd { order: -1; font-size: 17px; }
  .facts--short dt { font-size: 12px; }
  .prop__aside { position: static; margin-top: 20px; }
  .broker, .msg { padding: 16px; border-radius: 20px; }
  .prop__rest { margin-top: 24px; gap: 24px; }
  .prop__h2 { font-size: 20px; margin-bottom: 10px; }
  .prop__h2--lg { font-size: 20px; }
  .prop__text { font-size: 15px; }
  .feats li { font-size: 13px; padding: 6px 10px; }
  .map--prop { height: 160px; border-radius: 16px; }
  .similar-first { display: flex !important; flex-direction: column; gap: 12px; background: #E9F6F9; border-radius: 18px; padding: 16px; }
  .similar-first__title { font-size: 16px; font-weight: 800; }
  .similar { margin-top: 28px; }
  .similar__cards.cards--rail { grid-template-columns: none; grid-auto-columns: 200px; }
  /* Property-Mobile / RentProperty-Mobile: price + title, no facts line */
  .similar__cards .mini-card__title { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .similar__cards .mini-card__meta { display: none; }
  .similar__cards .mini-card__body { grid-template-areas: "price share" "title title"; }
  .similar__cards .mini-card__media { height: 110px; }
  .safe.m-only { display: flex !important; margin-top: 24px; font-size: 13px; }

  .prop-bar {
    display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(0, 18, 41, .08);
  }
  .prop-bar a { height: 50px; border-radius: 14px; display: flex; gap: 8px; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; text-decoration: none; }
  .prop-bar .ico { width: 18px; height: 18px; }
  .prop-bar__wa { background: var(--wa); color: #fff; }
  .prop-bar__call { border: 1px solid var(--line-2); color: var(--ink); background: #fff; }
  .prop-bar__view { background: var(--ink); color: #fff; }
  .prop-bar a:hover { color: inherit; }
  .prop-bar__wa:hover, .prop-bar__view:hover { color: #fff; }
}

/* rent: price per month and the move-in costs */
.prop__unit { font-size: 22px; font-weight: 800; color: var(--muted); letter-spacing: -0.01em; }
.costs { border: 1px solid var(--line); border-radius: 24px; padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.costs .prop__h2 { margin-bottom: 2px; }
.costs__rows { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.costs__rows div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.costs__rows dt { color: var(--muted); }
.costs__rows dd { margin: 0; font-weight: 700; }
.costs__info { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.costs__info div { background: var(--bg-soft); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.costs__info span { color: var(--muted); }
.costs .more-link { align-self: flex-start; }
/* "What you will pay in total" (Property-Final / Property-Mobile) */
.costs__rows .costs__total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 18px; }
.costs__total dt { color: var(--ink); font-weight: 800; }
.costs__total dd { font-weight: 800; }
.costs__rows .costs__m { display: none; }  /* phone rows of the block (not .m-only: it would break the flex row) */
@media (max-width: 960px) {
  .prop__unit { font-size: 16px; }
  .costs { padding: 16px; border-radius: 20px; }
  .costs__rows div { font-size: 14px; }
  .costs__rows .costs__total { padding-top: 8px; font-size: 16px; }
  .costs__rows .costs__d { display: none; }
  .costs__rows .costs__m { display: flex; }
}

/* what the broker checks (general, no per-home status) */
.docs { border: 1px solid var(--line); border-radius: 24px; padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.docs .prop__h2 { margin-bottom: 0; }
.docs__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.docs__list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; line-height: 1.4; }
.docs__list li::before { content: ''; flex: none; width: 26px; height: 26px; border-radius: 999px; background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333405A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l4 4v14H7z'/%3E%3Cpath d='M14 3v4h4M10 12h5M10 16h5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.docs__note { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 960px) {
  .docs { padding: 16px; border-radius: 20px; gap: 10px; }
  .docs__list { grid-template-columns: 1fr; gap: 10px; }
  .docs__list li { font-size: 14px; align-items: center; }
  .docs__list li::before { width: 24px; height: 24px; }
}
