:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --brand: #2563eb;
  --brand2: #1d4ed8;
  --success: #16a34a;
  --danger: #ef4444;
  --shadow: 0 10px 30px rgba(2, 6, 23, .08);
}

* {
  box-sizing: border-box
}

.d-none {
  display: none !important;
}

body {
  background: radial-gradient(1200px 500px at 50% 0%, rgba(37, 99, 235, .15), transparent 60%), var(--bg);
  color: var(--text);
}

a {
  color: var(--brand);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}


.brand-pill {
  background: rgba(37, 99, 235, .10);
  color: var(--brand2);
  border: 1px solid rgba(37, 99, 235, .18);
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .85rem;
}

.hero {
  background: linear-gradient(90deg, rgba(11, 15, 67, 0.92), rgba(15, 38, 103, 0.92));
  color: #ffffff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 1.35rem;
  margin: 0
}

.hero p {
  margin: .25rem 0 0 0;
  opacity: .9
}

.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px;
}

.cardx {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, .06);
}

.cardx .cardx-h {
  padding: 14px 14px 0 14px;
}

.cardx .cardx-b {
  padding: 14px;
}

.cardx .cardx-f {
  padding: 14px;
  border-top: 1px solid var(--border);
}

.filters {
  position: sticky;
  top: 88px;
}

.result-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(2, 6, 23, .06);
  transition: transform .12s ease, box-shadow .12s ease;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(2, 6, 23, .10);
}

.result-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #eef2ff;
}

@media (min-width: 768px) {
  .result-img {
    height: 160px
  }
}


.price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #334155;
  line-height: 1.1;
  margin-bottom: 6px;
}

.badge-soft-est {
  display: inline-block;
  padding: 12px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.muted {
  color: var(--muted)
}

.small-muted {
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.22s ease;
}

.small-muted:hover {
  color: #05173f;
  background: rgba(37, 99, 235, 0.08);
  text-decoration: none;
  transform: translateY(-1px);
}

.small-muted:active {
  transform: translateY(0);
  background: rgba(37, 99, 235, 0.12);
}

.form-control,
.form-select {
  border-radius: 14px;
  border-color: var(--border);

}

.btn {
  border-radius: 14px;
  font-weight: 700;
}

.btn-brand {
  background: linear-gradient(135deg, #1e3a5f, #0a43bf);
  border: 1px solid #2b6de0;
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
  transition: all 0.25s ease;
}

.btn-brand:hover {
  background: linear-gradient(135deg, #27496d, #1961d5);
  border-color: #3b82f6;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(59, 130, 246, 0.35);
}

.btn-ghost {
  border: 1px solid #cbd5e1;
  background: linear-gradient(135deg, #d4d4d4e1, #bbc6d2);
  color: #13202d;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
  transition: all 0.22s ease;
}

.btn-ghost:hover {
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  border-color: #b6c2d1;
  color: #334155;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.alertx {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .8);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: rgba(37, 99, 235, .12);
  color: var(--brand2);
  border: 1px solid rgba(37, 99, 235, .18);
}



body.bg-rotating {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.bg-rot-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) brightness(.7);
  opacity: 0;
  transition: opacity var(--bg-fade-ms, 1200ms) ease-in-out;
  will-change: opacity, transform;
}

.bg-rot-layer.is-active {
  opacity: 1;
  animation: bg-kenburns var(--bg-interval-ms, 9000ms) linear both;
}


body.bg-rotating::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .04), transparent 10%),
    linear-gradient(60deg, rgba(12, 12, 12, 0.186), rgba(4, 4, 4, 0.175));
}

.carousel-control-prev,
.carousel-control-next {
  width: 10%;
}


.badge-free {
  background: rgba(52, 211, 153, .18);
  color: #096714 !important;
  border: 1px solid rgba(16, 107, 73, 0.35)
}

.rating-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11, 16, 32, .88);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .82rem;
  backdrop-filter: blur(4px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25)
}

.rating-chip-score {
  font-weight: 700;
  color: #facc15
}

.rating-chip-scale {
  opacity: .9
}

.rating-chip-count {
  opacity: .85;
  margin-left: 4px
}

.rating-chip-lg {
  top: 14px;
  left: 14px;
  font-size: .9rem;
  padding: 6px 12px
}

.place-desc {
  line-height: 1.7;
  white-space: pre-line;
  word-break: break-word;
  text-align: justify
}


.hero .badge-soft,
.bg-rotating .badge-soft,
.form-overlay .badge-soft {
  background: linear-gradient(135deg, rgba(195, 195, 195, 0.45), rgba(191, 191, 191, 0.32));
  border: 1px solid rgba(76, 58, 58, 0.18);
  color: #000000;
  padding: 10px;
  font-size: 13px;
  border-radius: 12px;
}

.form-overlay .form-check-label {
  color: rgba(255, 255, 255, .92) !important;
}

.form-overlay .form-control,
.form-overlay .form-select {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
  color: #fff;
}

.form-overlay .form-control::placeholder {
  color: rgba(255, 255, 255, .65);
}

.result-card .price {
  color: var(--text);
}

.btn-free {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: #ffffff;
  font-weight: 500;
  border: 1px solid #5b6472;
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: 0 6px 14px rgba(75, 85, 99, 0.22);
  transition: all 0.25s ease;
}

.btn-free:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.btn-check:checked+.btn-free {
  background: linear-gradient(135deg, #1e3a5f, #2563eb) !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}

.btn-check+.btn-free:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff;
  border-color: #60a5fa;
}

.btn-free:focus,
.btn-check:focus+.btn-free {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.pass-wrap {
  position: relative;
}

.pass-wrap .form-control {
  padding-right: 56px;
}


.pass-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  height: calc(100% - 12px);
  width: 46px;

  border-radius: 12px;
  border: 1px solid rgba(2, 6, 23, .12);
  background: rgba(255, 255, 255, .75);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  padding: 0;
  transition: background .12s ease, box-shadow .12s ease, transform .12s ease;
}

.pass-toggle:hover {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 20px rgba(2, 6, 23, .12);
}

.pass-toggle:active {
  transform: scale(.98);
}

.pass-toggle .eye {
  width: 18px;
  height: 18px;
  display: block;
}

.pass-toggle .eye-off {
  display: none;
}

.pass-toggle.is-visible .eye-open {
  display: none;
}

.pass-toggle.is-visible .eye-off {
  display: block;
}

.form-overlay {
  position: relative;
  border-radius: 16px;
  padding: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, .92) !important;
  border: 1px solid rgba(2, 6, 23, .12) !important;
  backdrop-filter: blur(10px);
}

.form-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 0, 0, .04), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(0, 0, 0, .03), transparent 50%) !important;
}

.form-overlay,
.form-overlay  {
  color: #0f172a;
}



.form-overlay .form-control,
.form-overlay .form-select {
  background: #fff !important;
  border-color: rgba(2, 6, 23, .16) !important;
  color: #0f172a !important;
}

.form-overlay .form-control::placeholder {
  color: rgba(15, 23, 42, .55) !important;
}

.form-overlay .form-label,
.form-overlay .form-check-label {
  color: rgba(15, 23, 42, .92) !important;
}

.form-overlay .pass-toggle {
  background: rgba(2, 6, 23, .04) !important;
  border-color: rgba(2, 6, 23, .14) !important;
}

.form-overlay .pass-toggle:hover {
  background: rgba(2, 6, 23, .08) !important;
}

.form-overlay .badge-soft {
  background: rgba(2, 6, 23, .04) !important;
  border: 1px solid rgba(2, 6, 23, .10) !important;
  color: rgba(15, 23, 42, .85) !important;
}


.place-detail-overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(249, 250, 251, .94)) !important;
  border: 1px solid rgba(148, 163, 184, .28) !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .10);
}

.place-detail-overlay::before {
  background:
    radial-gradient(circle at 12% 16%, rgba(37, 99, 235, .07), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(245, 158, 11, .09), transparent 46%) !important;
}

.place-comment-card {
  border: 1px solid rgba(148, 163, 184, .22);
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .95));
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.flash-toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
  width: min(520px, calc(100vw - 32px));
}

.flash-toast {
  width: 100%;
  display: grid;
  grid-template-columns: 48px 1fr 40px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255, 255, 255, .98);
  color: #0f172a;
  box-shadow: 0 26px 70px rgba(15, 23, 42, .24);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  animation: flash-pop .18s ease-out;
}

.flash-toast--success {
  border-color: rgba(22, 163, 74, .24);
}

.flash-toast--danger {
  border-color: rgba(239, 68, 68, .24);
}

.flash-toast--warning {
  border-color: rgba(245, 158, 11, .26);
}

.flash-toast__icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.15rem;
  background: rgba(37, 99, 235, .10);
  color: #1d4ed8;
}

.flash-toast--success .flash-toast__icon {
  background: rgba(22, 163, 74, .12);
  color: #15803d;
}

.flash-toast--danger .flash-toast__icon {
  background: rgba(239, 68, 68, .12);
  color: #dc2626;
}

.flash-toast--warning .flash-toast__icon {
  background: rgba(245, 158, 11, .14);
  color: #d97706;
}

.flash-toast__content {
  font-weight: 700;
  line-height: 1.45;
}

.flash-toast__close {
  border: 0;
  background: transparent;
  color: rgba(15, 23, 42, .6);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.flash-toast__close:hover {
  color: #0f172a;
}

.flash-toast.is-closing {
  opacity: 0;
  transform: scale(.97);
  transition: opacity .18s ease, transform .18s ease;
}

@keyframes flash-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#confirmModal .modal-content {
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(2, 6, 23, .10);
  box-shadow: 0 24px 70px rgba(2, 6, 23, .25);
}

#confirmModal .modal-header,
#confirmModal .modal-footer {
  border-color: rgba(2, 6, 23, 0.733);
}

#confirmModal .modal-title {
  color: #0f172a;
}

#confirmModal .modal-body {
  color: rgb(7, 7, 7) !important;
}


.confirm-modal-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.place-main-overlay {
  background: linear-gradient(180deg, rgb(255, 255, 255));
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 20px 50px rgb(4, 5, 6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}



@media (max-width: 575.98px) {
  .flash-toast-stack {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .flash-toast {
    width: 100%;
  }
}

.result-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.result-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 250px;
}

.result-card-content {
  flex: 1;
}

.card-desc {
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 64px;
}

.contact-title {
  color: #142b4f;
  font-weight: 600;
  margin-bottom: 14px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.contact-label {
  font-weight: 600;
  color: #334155;
}

.contact-value {
  color: #475569;
  word-break: break-word;
  line-height: 1.45;
}

@media (max-width: 576px) {
  .contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-label {
    font-size: 0.92rem;
  }
}

.image-manager {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.image-item-card {
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.72);
}

.image-item-preview {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 12px;
}

.image-item-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.image-action-form {
  margin: 0;
  width: 100%;
}

.image-action-form .action-btn,
.image-main-badge {
  width: 100%;
}

.image-main-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.image-item-actions .action-btn {
  min-height: 46px;
}