/* Duru Flora — yorum fotoğraf seçici + büyütme galerisi */

/* ───── Fotoğraf seçici ───── */
.rph {
  --rph-ink: #1a2e1e;
  --rph-line: #cfdccb;
  --rph-soft: #f3f8f2;
  --rph-accent: #4a7c59;
  position: relative;
  width: 100%;
  border: 1.5px dashed var(--rph-line);
  border-radius: 16px;
  padding: 14px;
  background: var(--rph-soft);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.rph.is-drag { border-color: var(--rph-accent); background: #e7f2e6; box-shadow: 0 0 0 4px rgba(74, 124, 89, .12); }
.rph__grid { display: flex; flex-wrap: wrap; gap: 10px; }
.rph__add, .rph__item {
  width: 96px; height: 96px; border-radius: 14px; flex: none;
}
.rph__add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1.5px solid var(--rph-line); background: #fff; color: var(--rph-ink);
  font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; line-height: 1.15; text-align: center;
  transition: transform .15s, border-color .2s, box-shadow .2s;
}
.rph__add:hover { border-color: var(--rph-accent); box-shadow: 0 6px 16px rgba(26, 46, 30, .08); transform: translateY(-1px); }
.rph__add:focus-visible { outline: 3px solid rgba(74, 124, 89, .35); outline-offset: 2px; }
.rph__add svg { color: var(--rph-accent); }
.rph__add small { font-size: 11px; font-weight: 600; color: #64748b; }
.rph__add[hidden] { display: none; }
.rph__item { position: relative; overflow: hidden; background: #e2e8f0; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); animation: rphIn .25s ease; }
.rph__item img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; transition: transform .3s; }
.rph__item:hover img { transform: scale(1.05); }
.rph__rm {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: rgba(15, 23, 20, .72); color: #fff; font-size: 17px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.rph__rm:hover { background: #b91c1c; }
.rph__hint { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: #5b6b60; }
.rph__hint b { color: var(--rph-ink); }
.rph__err { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: #b91c1c; }
.rph__err[hidden] { display: none; }
@keyframes rphIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

/* Koyu zeminde (ana sayfa "Onlar Ne Diyor?" formu) */
.rph--dark {
  --rph-ink: #faf8f2;
  --rph-line: rgba(250, 248, 242, .28);
  --rph-soft: rgba(250, 248, 242, .05);
  --rph-accent: #c89547;
}
.rph--dark.is-drag { background: rgba(250, 248, 242, .1); }
.rph--dark .rph__add { background: rgba(250, 248, 242, .08); color: #faf8f2; }
.rph--dark .rph__add small, .rph--dark .rph__hint { color: rgba(250, 248, 242, .62); }
.rph--dark .rph__err { color: #fca5a5; }

@media (max-width: 480px) {
  .rph { padding: 12px; }
  .rph__add, .rph__item { width: calc((100% - 20px) / 3); height: auto; aspect-ratio: 1; }
}

/* ───── Büyütülebilir küçük görseller ───── */
[data-lb] { cursor: zoom-in; }

/* ───── Lightbox ───── */
html.dflb-open { overflow: hidden; }
.dflb {
  position: fixed; inset: 0; z-index: 100800;
  background: rgba(8, 14, 10, .92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .22s ease;
  touch-action: pan-y;
}
.dflb.is-open { opacity: 1; }
.dflb[hidden] { display: none; }
.dflb__stage {
  position: absolute; inset: 0 0 96px 0;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 72px 12px; overflow: hidden;
}
.dflb__img {
  max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  opacity: 0; transform: scale(.94);
  transition: opacity .28s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
  cursor: zoom-in; user-select: none; -webkit-user-drag: none;
}
.dflb__img.is-in { opacity: 1; transform: none; }
.dflb__img.is-zoom { transform: scale(2.1); cursor: zoom-out; transition: transform .3s ease; }
.dflb__btn {
  position: absolute; z-index: 2; border: 0; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .12); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.dflb__btn:hover { background: rgba(255, 255, 255, .24); }
.dflb__btn:focus-visible { outline: 3px solid rgba(200, 149, 71, .8); outline-offset: 2px; }
.dflb__close { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 28px; line-height: 1; }
.dflb__nav { top: calc(50% - 48px); transform: translateY(-50%); width: 52px; height: 52px; }
.dflb__nav:hover { transform: translateY(-50%) scale(1.06); }
.dflb__nav[hidden] { display: none; }
.dflb__prev { left: 14px; }
.dflb__next { right: 14px; }
.dflb__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 96px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.dflb__count { color: rgba(255, 255, 255, .75); font-size: 13px; font-weight: 600; letter-spacing: .04em; min-height: 16px; }
.dflb__thumbs { display: flex; gap: 8px; max-width: 92vw; overflow-x: auto; padding: 2px; }
.dflb__thumb {
  width: 52px; height: 52px; flex: none; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: #222; opacity: .55; transition: opacity .2s, border-color .2s;
}
.dflb__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dflb__thumb.is-on, .dflb__thumb:hover { opacity: 1; border-color: #c89547; }

@media (max-width: 640px) {
  .dflb__stage { padding: 56px 8px 8px; inset: 0 0 84px 0; }
  .dflb__bar { height: 84px; }
  .dflb__nav { width: 42px; height: 42px; background: rgba(0, 0, 0, .35); }
  .dflb__prev { left: 6px; }
  .dflb__next { right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .dflb, .dflb__img, .rph__item { transition: none; animation: none; }
}

/* ───── Kompakt: yorum kutusunun sol üstünde fotoğraf simgesi (ana sayfa) ───── */
.rph--inline {
  padding: 0; border: 1px solid rgba(163, 151, 134, .2); border-radius: 12px;
  background: rgba(255, 255, 255, .055);
  transition: border-color .3s, box-shadow .3s;
}
.rph--inline:focus-within { border-color: var(--honey, #c89547); box-shadow: 0 0 0 3px rgba(163, 151, 134, .15); }
.rph--inline.is-drag { border-style: dashed; border-color: #c89547; background: rgba(250, 248, 242, .09); box-shadow: none; }
.rph--inline { position: relative; }
.rph--inline .rph__grid { position: absolute; top: 8px; right: 8px; z-index: 1; gap: 6px; padding: 0; align-items: center; justify-content: flex-end; }
.rph--inline .rph__add {
  position: relative; width: 34px; height: 34px; border-radius: 10px; gap: 0;
  border: 0; background: transparent; color: rgba(250, 248, 242, .7);
}
.rph--inline .rph__add:hover { background: rgba(250, 248, 242, .1); color: #c89547; transform: none; box-shadow: none; }
.rph--inline .rph__add svg { width: 20px; height: 20px; color: currentColor; }
.rph--inline .rph__add span, .rph--inline .rph__add small { display: none; }
.rph--inline.has-files .rph__add small {
  display: block; position: absolute; top: -3px; right: -5px;
  padding: 1px 4px; border-radius: 8px; background: #c89547; color: #1a2e1e;
  font-size: 9.5px; font-weight: 800; line-height: 1.3;
}
.rph--inline .rph__item { width: 34px; height: 34px; border-radius: 8px; box-shadow: none; }
.rph--inline .rph__rm { top: 1px; right: 1px; width: 15px; height: 15px; font-size: 12px; }
.rph--inline .rph__item:hover img { transform: none; }
.rph--inline textarea, .review-form-area .rph--inline textarea {
  display: block; width: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important;
  padding: 14px 56px 12px 16px; min-height: 96px;
}
.rph--inline.has-files textarea { padding-top: 52px; padding-right: 16px; }
.rph--inline .rph__err { margin: 0; padding: 0 16px 10px; font-size: 12px; }
@media (max-width: 480px) {
  .rph--inline { padding: 0; }
  .rph--inline .rph__add, .rph--inline .rph__item { width: 34px; height: 34px; aspect-ratio: auto; }
}
