/* Inspirace – detail fotky (HP 4. 11. 2026) */
.mdkk-ifoto { padding: 20px 0 56px; }
.mdkk-ifoto__top { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; margin-top: 14px; align-items: start; }
.mdkk-ifoto__media { position: relative; margin: 0; overflow: hidden; border-radius: 18px; background: #1f2128; }
.mdkk-ifoto__media img { display: block; width: 100%; max-height: 78vh; object-fit: contain; }
a.mdkk-ifoto__nav { position: absolute; top: 50%; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--md-ink) !important; font-size: 30px; line-height: 1; text-decoration: none; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.mdkk-ifoto__nav--prev { left: 14px; } .mdkk-ifoto__nav--next { right: 14px; }
.mdkk-ifoto__side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 90px; }
a.mdkk-ifoto__room { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--md-accent-soft); color: var(--md-accent-text) !important; font-size: 13px; font-weight: 700; text-decoration: none; }
h1.mdkk-ifoto__h1 { margin: 0; padding: 0; color: var(--md-ink); font-size: 24px; font-weight: 700; line-height: 1.3; }
.mdkk-ifoto__text { margin: 0; color: var(--md-muted); font-size: 15px; line-height: 1.55; }
.mdkk-ifoto__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mdkk-ifoto__tags a { padding: 6px 12px; border: 1px solid var(--md-line); border-radius: 999px; background: #fff; color: var(--md-ink) !important; font-size: 13px; font-weight: 600; text-decoration: none; }
.mdkk-ifoto__tags a:hover { border-color: var(--md-accent); }
a.mdkk-ifoto__house { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--md-line); border-radius: 14px; background: #fff; color: var(--md-ink) !important; text-decoration: none; }
.mdkk-ifoto__house img { width: 84px; height: 64px; object-fit: cover; border-radius: 10px; }
.mdkk-ifoto__house span { display: flex; flex-direction: column; gap: 2px; }
.mdkk-ifoto__house small { color: var(--md-muted); font-size: 12px; }
.mdkk-ifoto__house strong { font-size: 15px; line-height: 1.3; }
.mdkk-ifoto__house em { color: var(--md-muted); font-size: 13px; font-style: normal; }
.mdkk-ifoto__params { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0; }
.mdkk-ifoto__params div { display: flex; flex-direction: column; }
.mdkk-ifoto__params dt { color: var(--md-muted); font-size: 12px; font-weight: 500; }
.mdkk-ifoto__params dd { margin: 0; font-size: 14px; font-weight: 600; }
.mdkk-ifoto .mdkk-insp-btn { text-align: center; }
.mdkk-ifoto__sec { margin-top: 44px; }
.mdkk-ifoto__sec header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.mdkk-ifoto__sec h2 { margin: 0; padding: 0; font-size: 22px; font-weight: 700; color: var(--md-ink); }
.mdkk-ifoto__sec header a { color: var(--md-accent-text) !important; font-size: 14px; font-weight: 600; text-decoration: none; }
.mdkk-ifoto__strip { display: grid; grid-auto-flow: column; grid-auto-columns: 180px; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.mdkk-ifoto__strip a { display: flex; flex-direction: column; gap: 4px; color: var(--md-muted) !important; font-size: 12px; text-decoration: none; scroll-snap-align: start; }
.mdkk-ifoto__strip img { width: 180px; height: 130px; object-fit: cover; border-radius: 12px; }
.mdkk-ifoto__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mdkk-ifoto__grid a { display: flex; flex-direction: column; gap: 6px; color: var(--md-muted) !important; font-size: 13px; text-decoration: none; }
.mdkk-ifoto__grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.mdkk-ifoto__rel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mdkk-ifoto__rel a { display: flex; flex-direction: column; gap: 6px; padding-bottom: 6px; color: var(--md-ink) !important; text-decoration: none; }
.mdkk-ifoto__rel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; }
.mdkk-ifoto__rel small { color: var(--md-accent-text); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.mdkk-ifoto__rel strong { font-size: 16px; line-height: 1.35; }
.mdkk-ifoto__vimg { position: relative; display: block; }
.mdkk-ifoto__vimg b { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--md-accent); color: #fff; font-size: 20px; }
@media (max-width: 1023px) {
  .mdkk-ifoto__top { grid-template-columns: 1fr; }
  .mdkk-ifoto__side { position: static; }
  .mdkk-ifoto__grid, .mdkk-ifoto__rel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mdkk-ifoto__media { margin: 0 -16px; border-radius: 0; }
  h1.mdkk-ifoto__h1 { font-size: 20px; }
  .mdkk-ifoto__strip { grid-auto-columns: 140px; } .mdkk-ifoto__strip img { width: 140px; height: 104px; }
}

.mdkk-ifoto a.mdkk-insp-btn--ghost { background: #fff; color: var(--md-accent-text) !important; border: 1px solid var(--md-accent); }

/* Nástěnky a dotazy (HP 4. 11. 2026) */
.mdkk-insp-btn.is-saved { background: var(--md-accent-soft) !important; }
button.mdkk-insp-btn { cursor: pointer; font: inherit; font-weight: 700; }
a.mdkk-ifoto__mynast { color: var(--md-accent-text) !important; font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; }
.mdkk-ifoto__askgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.mdkk-ifoto__q { padding: 14px 0; border-bottom: 1px solid var(--md-line); }
.mdkk-ifoto__qtext { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: var(--md-ink); }
.mdkk-ifoto__q small { color: var(--md-muted); font-size: 12px; }
.mdkk-ifoto__a { margin-top: 10px; padding: 10px 14px; border-left: 3px solid var(--md-accent); background: #fff; border-radius: 0 10px 10px 0; font-size: 15px; line-height: 1.5; }
.mdkk-ifoto__form { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--md-line); border-radius: 16px; background: #fff; }
.mdkk-ifoto__form label { font-weight: 700; font-size: 15px; }
.mdkk-ifoto__form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--md-line); border-radius: 10px; font: inherit; font-size: 15px; resize: vertical; }
.mdkk-ifoto__form small, .mdkk-ifoto__form p { margin: 0; color: var(--md-muted); font-size: 13px; line-height: 1.5; }
.mdkk-ifoto__msg { color: var(--md-ink) !important; font-weight: 600; }
.mdkk-nastenky__empty { display: flex; flex-direction: column; gap: 12px; max-width: 520px; margin: 24px 0; }
.mdkk-nastenky__empty p { margin: 0; font-size: 16px; line-height: 1.55; }
.mdkk-nastenky__n { color: var(--md-muted); font-weight: 500; font-size: 16px; }
.mdkk-nastenky__item { position: relative; }
.mdkk-nastenky__item > a { display: flex; flex-direction: column; gap: 6px; color: var(--md-muted) !important; font-size: 13px; text-decoration: none; }
.mdkk-nastenky__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
button.mdkk-nastenky__del { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--md-ink); font-size: 20px; line-height: 1; cursor: pointer; }
@media (max-width: 1023px) { .mdkk-ifoto__askgrid { grid-template-columns: 1fr; } }

/* Další fotky z domu: pevná řada s „+N“ (HP 4. 11. 2026) */
.mdkk-ifoto__row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.mdkk-ifoto__row a { display: flex; flex-direction: column; gap: 4px; color: var(--md-muted) !important; font-size: 12px; text-decoration: none; }
.mdkk-ifoto__row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
a.mdkk-ifoto__plus { position: relative; }
.mdkk-ifoto__plus b { position: absolute; inset: 0 0 auto 0; aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; background: rgba(31, 33, 40, .62); color: #fff; font-size: 26px; font-weight: 700; line-height: 1.1; }
.mdkk-ifoto__plus b small { font-size: 13px; font-weight: 600; }
.mdkk-ifoto__plus.is-mob { display: none; }
@media (max-width: 640px) {
  .mdkk-ifoto__row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mdkk-ifoto__row .is-desk-only, .mdkk-ifoto__plus.is-desk { display: none; }
  .mdkk-ifoto__plus.is-mob { display: flex; }
}

/* Stabilní rámeček fotky (HP 5. 11. 2026, jako Houzz): fotka má pevně
   danou plochu bez ohledu na poměr stran, při listování nic neposkočí.
   Na šířku vyplní šířku, na výšku výšku, zbytek je neutrální podklad. */
.mdkk-ifoto__media { display: flex; align-items: center; justify-content: center; height: min(72vh, 680px); background: #eceef1; }
.mdkk-ifoto__media img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
@media (max-width: 1023px) {
  .mdkk-ifoto__media { height: min(78vw, 62vh); }
}
@media (max-width: 640px) {
  /* drobečková navigace na jeden řádek – jinak dlouhý popisek posune fotku */
  .mdkk-ifoto .mdkk-insp-crumb { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
  .mdkk-ifoto .mdkk-insp-crumb [aria-current] { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .mdkk-ifoto__media { height: min(80vw, 60vh); }
  a.mdkk-ifoto__nav { width: 40px; height: 40px; margin-top: -20px; font-size: 26px; }
  .mdkk-ifoto__nav--prev { left: 8px; } .mdkk-ifoto__nav--next { right: 8px; }
}
