/* ========================================
   تنظیمات اصلی صفحه
======================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  min-height: 100vh;

  font-family: Tahoma, Arial, sans-serif;
  background: #03152c;

  overflow: hidden;
}

/* ========================================
   صفحه ثبت آگهی املاک
======================================== */

.gk-estate-register-page {
  position: relative;
  isolation: isolate;

  width: 100%;
  min-height: 100vh;
  min-height: 100svh;

  padding: 14px;

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

  /* قرارگرفتن پنجره در سمت چپ */
  direction: ltr;

  background-image: url("./estate-background.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* لایه تیره روی تصویر */

.gk-estate-register-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;

  background: linear-gradient(
    90deg,
    rgba(2, 20, 48, 0.3) 0%,
    rgba(2, 16, 37, 0.12) 48%,
    rgba(0, 8, 20, 0.08) 100%
  );

  pointer-events: none;
}

/* ========================================
   پنجره اصلی فرم
======================================== */

.gk-estate-register-window {
  position: relative;
  z-index: 2;

  direction: rtl;

  width: clamp(560px, 46vw, 760px);
  height: min(900px, calc(100svh - 28px));

  display: flex;
  flex-direction: column;

  border: 1px solid rgba(163, 224, 255, 0.85);
  border-radius: 24px;

  background: linear-gradient(
    145deg,
    rgba(6, 54, 103, 0.84),
    rgba(4, 39, 80, 0.78),
    rgba(2, 26, 61, 0.88)
  );

  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);

  box-shadow:
    0 0 0 1px rgba(101, 192, 255, 0.18),
    0 0 30px rgba(35, 154, 255, 0.28),
    0 24px 60px rgba(0, 8, 28, 0.55),
    inset 0 1px 0 rgba(227, 248, 255, 0.22);

  overflow: hidden;
}

/* نور بالای پنجره */

.gk-estate-register-window::before {
  content: "";

  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;

  height: 2px;

  background: linear-gradient(
    90deg,
    transparent,
    #b9efff,
    #43baff,
    transparent
  );

  box-shadow: 0 0 16px rgba(105, 213, 255, 0.9);
}

/* ========================================
   دکمه بستن
======================================== */

.gk-estate-register-close {
  position: absolute;
  top: 14px;
  left: 15px;
  z-index: 5;

  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  color: #e7f8ff;
  text-decoration: none;
  font-size: 27px;
  line-height: 1;

  border: 1px solid rgba(182, 230, 255, 0.55);
  border-radius: 50%;

  background: rgba(4, 36, 73, 0.72);

  box-shadow:
    0 5px 16px rgba(0, 11, 31, 0.32),
    inset 0 1px rgba(255, 255, 255, 0.12);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.gk-estate-register-close:hover {
  transform: rotate(90deg) scale(1.06);

  background: rgba(29, 133, 207, 0.85);

  box-shadow:
    0 0 18px rgba(81, 194, 255, 0.55),
    inset 0 1px rgba(255, 255, 255, 0.2);
}

/* ========================================
   سربرگ فرم
======================================== */

.gk-estate-register-header {
  min-height: 88px;
  padding: 16px 58px 14px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  border-bottom: 1px solid rgba(152, 217, 255, 0.28);

  background: linear-gradient(
    90deg,
    rgba(42, 148, 216, 0.22),
    rgba(5, 44, 88, 0.12)
  );

  flex-shrink: 0;
}

/* عنوان و آیکون */

.gk-estate-register-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gk-estate-register-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;

  display: grid;
  place-items: center;

  color: #e7faff;
  font-size: 29px;

  border: 1px solid rgba(189, 234, 255, 0.62);
  border-radius: 15px;

  background: linear-gradient(
    145deg,
    rgba(87, 195, 255, 0.35),
    rgba(7, 77, 139, 0.55)
  );

  box-shadow:
    0 0 18px rgba(60, 178, 255, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.18);
}

.gk-estate-register-heading h1 {
  color: #f3fbff;
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 900;
  line-height: 1.4;

  text-shadow: 0 3px 16px rgba(51, 178, 255, 0.28);
}

.gk-estate-register-heading p {
  margin-top: 3px;

  color: rgba(218, 242, 255, 0.68);
  font-size: 11px;
}

/* نشان کنار عنوان */

.gk-estate-register-badge {
  padding: 8px 14px;

  color: #dff8ff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;

  border: 1px solid rgba(140, 220, 255, 0.5);
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    rgba(53, 181, 247, 0.38),
    rgba(6, 78, 139, 0.52)
  );

  box-shadow: 0 0 15px rgba(60, 187, 255, 0.24);
}

/* ========================================
   قسمت داخلی فرم و اسکرول
======================================== */

.gk-estate-register-form {
  min-height: 0;
  flex: 1;

  padding: 14px;

  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-width: thin;
  scrollbar-color: rgba(106, 205, 255, 0.82) rgba(3, 31, 67, 0.45);
}

.gk-estate-register-form::-webkit-scrollbar {
  width: 7px;
}

.gk-estate-register-form::-webkit-scrollbar-track {
  background: rgba(3, 31, 67, 0.42);
  border-radius: 999px;
}

.gk-estate-register-form::-webkit-scrollbar-thumb {
  background: linear-gradient(#b5efff, #42bfff, #176eb4);

  border-radius: 999px;
}

/* چیدمان داخلی */

.gk-estate-register-layout {
  display: grid;
  gap: 14px;
}

/* قاب‌های فعلاً خالی */

.gk-estate-register-gallery,
.gk-estate-register-fields {
  min-height: 120px;

  border: 1px solid rgba(160, 221, 255, 0.22);
  border-radius: 18px;

  background: rgba(2, 30, 66, 0.28);

  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

/* ========================================
   تبلت
======================================== */

@media (max-width: 900px) {
  .gk-estate-register-window {
    width: min(680px, calc(100vw - 24px));
  }
}

/* ========================================
   نسخه موبایل
======================================== */

@media (max-width: 720px) {
  body {
    overflow: hidden;
  }

  .gk-estate-register-page {
    padding: 10px;
    background-position: 62% center;
  }

  .gk-estate-register-window {
    width: 100%;
    height: calc(100svh - 20px);

    border-radius: 19px;
  }

  .gk-estate-register-header {
    min-height: 78px;
    padding: 13px 49px 12px 12px;
  }

  .gk-estate-register-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;

    font-size: 25px;
    border-radius: 13px;
  }

  .gk-estate-register-heading h1 {
    font-size: 18px;
  }

  .gk-estate-register-heading p {
    font-size: 9px;
  }

  .gk-estate-register-badge {
    display: none;
  }

  .gk-estate-register-close {
    top: 12px;
    left: 12px;

    width: 34px;
    height: 34px;

    font-size: 24px;
  }

  .gk-estate-register-form {
    padding: 10px;
  }
}
/* ========================================
   بخش تصاویر ملک
======================================== */

.gk-estate-register-gallery {
  min-height: auto;
  padding: 13px;

  border: 1px solid rgba(159, 224, 255, 0.3);
  border-radius: 18px;

  background: linear-gradient(
    145deg,
    rgba(11, 70, 124, 0.4),
    rgba(2, 30, 67, 0.42)
  );

  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 10px 26px rgba(0, 13, 40, 0.18);
}

/* سربرگ تصاویر */

.gk-estate-gallery-head {
  margin-bottom: 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gk-estate-gallery-head > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.gk-estate-gallery-head > div > span {
  color: #81dcff;
  font-size: 20px;
}

.gk-estate-gallery-head h2 {
  color: #effaff;
  font-size: 14px;
  font-weight: 900;
}

.gk-estate-gallery-head small {
  color: rgba(218, 243, 255, 0.68);
  font-size: 9px;
}

.gk-estate-gallery-head small strong {
  color: #9ce8ff;
  font-size: 11px;
}

/* ========================================
   تصویر اصلی
======================================== */

.gk-estate-main-preview {
  position: relative;

  width: 100%;
  height: 205px;

  display: grid;
  place-items: center;

  border: 1px dashed rgba(172, 229, 255, 0.5);
  border-radius: 15px;

  background: linear-gradient(
    145deg,
    rgba(65, 157, 219, 0.14),
    rgba(1, 24, 55, 0.48)
  );

  overflow: hidden;
}

/* عکس انتخاب‌شده */

.gk-estate-main-preview img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;

  border-radius: inherit;
}

/* نوشته داخل پیش‌نمایش */

.gk-estate-image-placeholder {
  padding: 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;

  text-align: center;
}

.gk-estate-image-placeholder > span {
  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  color: #c9f2ff;
  font-size: 29px;

  border: 1px solid rgba(151, 224, 255, 0.45);
  border-radius: 16px;

  background: rgba(66, 176, 237, 0.15);

  box-shadow: 0 0 20px rgba(65, 188, 255, 0.2);
}

.gk-estate-image-placeholder strong {
  color: #eafaff;
  font-size: 13px;
}

.gk-estate-image-placeholder small {
  color: rgba(214, 241, 255, 0.58);
  font-size: 9px;
  line-height: 1.8;
}

/* ========================================
   دکمه انتخاب تصاویر
======================================== */

.gk-estate-image-select {
  width: 100%;
  min-height: 39px;
  margin-top: 9px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  color: #f2fcff;
  font-size: 11px;
  font-weight: 900;

  border: 1px solid rgba(164, 229, 255, 0.65);
  border-radius: 12px;

  background: linear-gradient(
    135deg,
    rgba(65, 191, 255, 0.72),
    rgba(17, 105, 181, 0.78)
  );

  box-shadow:
    0 7px 18px rgba(0, 75, 139, 0.27),
    inset 0 1px rgba(255, 255, 255, 0.2);

  cursor: pointer;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.gk-estate-image-select:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);

  box-shadow:
    0 0 20px rgba(85, 207, 255, 0.4),
    inset 0 1px rgba(255, 255, 255, 0.25);
}

.gk-estate-image-select > span {
  font-size: 19px;
}

/* ========================================
   تصاویر کوچک
======================================== */

.gk-estate-image-thumbnails {
  margin-top: 9px;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.gk-estate-thumbnail {
  position: relative;

  height: 58px;
  padding: 0;

  border: 1px solid rgba(135, 211, 255, 0.38);
  border-radius: 10px;

  background: rgba(1, 24, 54, 0.55);

  overflow: hidden;
  cursor: pointer;
}

.gk-estate-thumbnail img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;
}

.gk-estate-thumbnail.active {
  border-color: #b8efff;

  box-shadow:
    0 0 0 2px rgba(66, 190, 255, 0.34),
    0 0 14px rgba(70, 194, 255, 0.38);
}

/* راهنما */

.gk-estate-image-help {
  display: block;
  margin-top: 7px;

  color: rgba(213, 241, 255, 0.58);
  font-size: 8px;
  line-height: 1.7;
  text-align: center;
}

/* ========================================
   تصاویر در موبایل
======================================== */

@media (max-width: 720px) {
  .gk-estate-register-gallery {
    padding: 10px;
  }

  .gk-estate-main-preview {
    height: 180px;
  }

  .gk-estate-image-thumbnails {
    gap: 5px;
  }

  .gk-estate-thumbnail {
    height: 52px;
  }
}
/* ========================================
   قاب اطلاعات اصلی ملک
======================================== */

.gk-estate-register-fields {
  min-height: auto;
  padding: 13px;

  border: 1px solid rgba(159, 224, 255, 0.3);
  border-radius: 18px;

  background: linear-gradient(
    145deg,
    rgba(8, 62, 116, 0.42),
    rgba(2, 28, 63, 0.46)
  );

  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 10px 26px rgba(0, 13, 40, 0.18);
}

/* عنوان قسمت اطلاعات */

.gk-estate-fields-title {
  margin-bottom: 13px;
  padding-bottom: 10px;

  display: flex;
  align-items: center;
  gap: 9px;

  border-bottom: 1px solid rgba(150, 218, 255, 0.2);
}

.gk-estate-fields-title > span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;

  display: grid;
  place-items: center;

  color: #d9f7ff;
  font-size: 23px;

  border: 1px solid rgba(157, 226, 255, 0.42);
  border-radius: 12px;

  background: rgba(54, 177, 239, 0.18);
}

.gk-estate-fields-title h2 {
  color: #f0fbff;
  font-size: 14px;
  font-weight: 900;
}

.gk-estate-fields-title small {
  color: rgba(210, 239, 255, 0.56);
  font-size: 8px;
}

/* ========================================
   چیدمان فیلدها
======================================== */

.gk-estate-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.gk-estate-field {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gk-estate-field-full {
  grid-column: 1 / -1;
}

/* عنوان فیلد */

.gk-estate-field > label {
  padding-inline: 3px;

  color: #e9f8ff;
  font-size: 10px;
  font-weight: 800;
}

.gk-estate-field > label > span {
  color: #76ddff;
}

.gk-estate-field > label > small {
  color: rgba(208, 238, 255, 0.48);
  font-size: 7px;
  font-weight: 400;
}

/* ورودی‌ها */

.gk-estate-field input,
.gk-estate-field select,
.gk-estate-field textarea {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 11px;

  color: #effaff;
  font-family: inherit;
  font-size: 10px;

  border: 1px solid rgba(153, 219, 255, 0.32);
  border-radius: 11px;
  outline: none;

  background: rgba(2, 28, 62, 0.58);

  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.06),
    0 4px 12px rgba(0, 15, 41, 0.12);

  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.gk-estate-field input::placeholder,
.gk-estate-field textarea::placeholder {
  color: rgba(213, 239, 255, 0.42);
}

.gk-estate-field input:focus,
.gk-estate-field select:focus,
.gk-estate-field textarea:focus {
  border-color: rgba(138, 224, 255, 0.88);

  background: rgba(4, 45, 91, 0.72);

  box-shadow:
    0 0 0 3px rgba(60, 181, 255, 0.13),
    0 0 16px rgba(61, 185, 255, 0.18);
}

/* گزینه‌های پنجره انتخاب */

.gk-estate-field select option {
  color: #f2fbff;
  background: #073564;
}

/* ========================================
   ورودی دارای آیکون
======================================== */

.gk-estate-input-icon {
  position: relative;
}

.gk-estate-input-icon > span {
  position: absolute;
  top: 50%;
  right: 11px;
  z-index: 2;

  transform: translateY(-50%);

  font-size: 14px;
  pointer-events: none;
}

.gk-estate-input-icon input {
  padding-right: 36px;
}

/* ========================================
   ورودی متراژ
======================================== */

.gk-estate-unit-input {
  position: relative;

  display: flex;
}

.gk-estate-unit-input input {
  padding-left: 76px;
}

.gk-estate-unit-input > span {
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 1px;

  min-width: 69px;
  padding: 0 8px;

  display: grid;
  place-items: center;

  color: #c9f1ff;
  font-size: 8px;

  border-right: 1px solid rgba(153, 220, 255, 0.25);
  border-radius: 10px 0 0 10px;

  background: rgba(61, 168, 226, 0.13);

  pointer-events: none;
}

/* ========================================
   نسخه موبایل
======================================== */

@media (max-width: 720px) {
  .gk-estate-register-fields {
    padding: 10px;
  }

  .gk-estate-fields-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gk-estate-field-full {
    grid-column: auto;
  }

  .gk-estate-field input,
  .gk-estate-field select {
    height: 43px;
    font-size: 11px;
  }
}

/* ========================================
   بخش قیمت ملک
======================================== */

.gk-estate-price-section {
  margin-top: 14px;
  padding: 13px;

  border: 1px solid rgba(155, 222, 255, 0.3);
  border-radius: 16px;

  background: linear-gradient(
    145deg,
    rgba(15, 80, 136, 0.38),
    rgba(2, 30, 67, 0.45)
  );

  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
}

/* عنوان قیمت */

.gk-estate-price-title {
  margin-bottom: 12px;
  padding-bottom: 9px;

  display: flex;
  align-items: center;
  gap: 8px;

  border-bottom: 1px solid rgba(148, 215, 255, 0.2);
}

.gk-estate-price-title > span {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  color: #d6f6ff;
  font-size: 18px;

  border: 1px solid rgba(153, 224, 255, 0.42);
  border-radius: 11px;

  background: rgba(55, 177, 238, 0.17);
}

.gk-estate-price-title h2 {
  color: #f1fbff;
  font-size: 13px;
  font-weight: 900;
}

.gk-estate-price-title small {
  color: rgba(211, 239, 255, 0.52);
  font-size: 8px;
}

/* چیدمان قیمت‌ها */

.gk-estate-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

/* ورودی پول */

.gk-estate-money-input {
  position: relative;
}

.gk-estate-money-input input {
  padding-left: 52px;
}

.gk-estate-money-input > span {
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 1px;

  min-width: 48px;

  display: grid;
  place-items: center;

  color: #c9f2ff;
  font-size: 7px;

  border-right: 1px solid rgba(153, 221, 255, 0.24);
  border-radius: 10px 0 0 10px;

  background: rgba(66, 172, 228, 0.14);

  pointer-events: none;
}

/* راهنمای قیمت */

.gk-estate-price-help {
  display: block;
  margin-top: 8px;

  color: rgba(207, 237, 255, 0.53);
  font-size: 8px;
  line-height: 1.8;
}

/* حالت غیرفعال قیمت‌ها برای جاوااسکریپت */

.gk-estate-price-field.is-disabled {
  opacity: 0.38;
  pointer-events: none;
  filter: grayscale(0.45);
}

/* ========================================
   تبلت
======================================== */

@media (max-width: 900px) {
  .gk-estate-price-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   موبایل
======================================== */

@media (max-width: 720px) {
  .gk-estate-amenities,
  .gk-estate-price-section {
    padding: 10px;
  }

  .gk-estate-amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

}
/* ========================================
   توضیحات کامل ملک
======================================== */

.gk-estate-description-field {
  margin-top: 14px;
}

.gk-estate-description-field textarea {
  width: 100%;
  height: 105px;
  min-height: 105px;
  padding: 11px;

  color: #effaff;
  font-family: inherit;
  font-size: 10px;
  line-height: 1.9;

  border: 1px solid rgba(154, 222, 255, 0.34);
  border-radius: 12px;
  outline: none;

  background: rgba(2, 28, 63, 0.58);

  resize: vertical;

  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.gk-estate-description-field textarea::placeholder {
  color: rgba(210, 238, 255, 0.42);
}

.gk-estate-description-field textarea:focus {
  border-color: rgba(143, 226, 255, 0.88);

  background: rgba(4, 45, 91, 0.72);

  box-shadow:
    0 0 0 3px rgba(60, 181, 255, 0.13),
    0 0 16px rgba(61, 185, 255, 0.18);
}

/* پایین توضیحات */

.gk-estate-description-footer {
  margin-top: 5px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gk-estate-description-footer small {
  color: rgba(207, 237, 255, 0.48);
  font-size: 7px;
}

.gk-estate-description-footer > span {
  direction: ltr;

  color: rgba(212, 241, 255, 0.58);
  font-size: 8px;
  white-space: nowrap;
}

#gkEstateDescriptionCount {
  color: #92e4ff;
  font-size: 9px;
}

/* ========================================
   اطلاعات آگهی‌دهنده
======================================== */

.gk-estate-owner-section {
  margin-top: 14px;
  padding: 13px;

  border: 1px solid rgba(155, 222, 255, 0.3);
  border-radius: 16px;

  background: linear-gradient(
    145deg,
    rgba(13, 75, 131, 0.38),
    rgba(2, 30, 67, 0.45)
  );

  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
}

/* عنوان آگهی‌دهنده */

.gk-estate-owner-title {
  margin-bottom: 12px;
  padding-bottom: 9px;

  display: flex;
  align-items: center;
  gap: 8px;

  border-bottom: 1px solid rgba(148, 215, 255, 0.2);
}

.gk-estate-owner-title > span {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  color: #d9f7ff;
  font-size: 19px;

  border: 1px solid rgba(153, 224, 255, 0.42);
  border-radius: 11px;

  background: rgba(55, 177, 238, 0.17);
}

.gk-estate-owner-title h2 {
  color: #f1fbff;
  font-size: 13px;
  font-weight: 900;
}

.gk-estate-owner-title small {
  color: rgba(211, 239, 255, 0.52);
  font-size: 8px;
}

/* چیدمان نام و شماره */

.gk-estate-owner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* شماره تماس */

.gk-estate-phone-input input {
  padding-right: 36px;
  text-align: left;
}

/* پیام امنیت */

.gk-estate-security-message {
  margin-top: 10px;
  padding: 8px 10px;

  display: flex;
  align-items: center;
  gap: 7px;

  color: rgba(214, 241, 255, 0.66);

  border: 1px solid rgba(106, 205, 255, 0.2);
  border-radius: 11px;

  background: rgba(27, 126, 183, 0.11);
}

.gk-estate-security-message > span {
  color: #83ddff;
  font-size: 14px;
}

.gk-estate-security-message p {
  font-size: 8px;
  line-height: 1.7;
}

/* ========================================
   قوانین و دکمه‌های ثبت
======================================== */

.gk-estate-register-actions {
  margin-top: 14px;
  padding-top: 13px;

  border-top: 1px solid rgba(152, 219, 255, 0.22);
}

/* قوانین */

.gk-estate-rules {
  display: flex;
  align-items: center;
  gap: 8px;

  cursor: pointer;
}

.gk-estate-rules > input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
  pointer-events: none;
}

.gk-estate-rules-box {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;

  display: grid;
  place-items: center;

  color: transparent;
  font-size: 12px;
  font-weight: 900;

  border: 1px solid rgba(156, 224, 255, 0.5);
  border-radius: 7px;

  background: rgba(2, 27, 61, 0.62);

  transition:
    color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.gk-estate-rules-text {
  color: rgba(225, 245, 255, 0.75);
  font-size: 9px;
  line-height: 1.8;
}

.gk-estate-rules input:checked + .gk-estate-rules-box {
  color: #ffffff;

  background: linear-gradient(135deg, #4ac9ff, #1378c2);

  box-shadow: 0 0 13px rgba(66, 196, 255, 0.42);
}

/* دکمه‌های نهایی */

.gk-estate-final-buttons {
  margin-top: 12px;

  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(110px, 1fr);
  gap: 9px;
}

.gk-estate-submit,
.gk-estate-cancel {
  min-height: 44px;
  padding: 8px 14px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  font-family: inherit;
  font-size: 11px;
  font-weight: 900;

  border-radius: 12px;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    filter 0.25s ease,
    box-shadow 0.25s ease;
}

/* ثبت آگهی */

.gk-estate-submit {
  color: #ffffff;

  border: 1px solid rgba(187, 239, 255, 0.78);

  background: linear-gradient(135deg, #55d3ff, #168fdd, #075baf);

  box-shadow:
    0 8px 22px rgba(0, 104, 184, 0.35),
    0 0 18px rgba(73, 199, 255, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.32);
}

.gk-estate-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);

  box-shadow:
    0 11px 27px rgba(0, 104, 184, 0.43),
    0 0 23px rgba(73, 199, 255, 0.4);
}

.gk-estate-submit > span {
  font-size: 16px;
}

/* انصراف */

.gk-estate-cancel {
  color: #dff6ff;
  text-decoration: none;

  border: 1px solid rgba(158, 222, 255, 0.32);

  background: rgba(3, 31, 68, 0.62);
}

.gk-estate-cancel:hover {
  transform: translateY(-2px);

  color: #ffffff;
  background: rgba(21, 96, 153, 0.7);

  box-shadow: 0 7px 18px rgba(0, 30, 70, 0.26);
}

/* ========================================
   موبایل
======================================== */

@media (max-width: 720px) {
  .gk-estate-owner-section {
    padding: 10px;
  }

  .gk-estate-owner-grid {
    grid-template-columns: 1fr;
  }

  .gk-estate-description-field textarea {
    height: 120px;
  }

  .gk-estate-description-footer {
    align-items: flex-start;
  }

  .gk-estate-final-buttons {
    grid-template-columns: 1fr;
  }

  .gk-estate-submit,
  .gk-estate-cancel {
    min-height: 46px;
    font-size: 12px;
  }
}
/* ========================================
   امکانات ملک
======================================== */

.gk-estate-amenities {
  margin-top: 14px;
  padding: 13px;

  border: 1px solid rgba(155, 221, 255, 0.28);
  border-radius: 16px;

  background: rgba(3, 35, 74, 0.35);
}

.gk-estate-amenities legend {
  padding: 0 9px;

  color: #eefaff;
  font-size: 12px;
  font-weight: 900;
}

.gk-estate-amenities legend small {
  color: rgba(208, 239, 255, 0.5);
  font-size: 8px;
  font-weight: 400;
}

/* چیدمان چهار گزینه */

.gk-estate-amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

/* هر گزینه */

.gk-estate-amenity {
  position: relative;
  display: block;

  min-width: 0;

  cursor: pointer;
}

/* چک‌باکس روی همان کارت قرار می‌گیرد */

.gk-estate-amenity input {
  position: absolute;
  inset: 0;
  z-index: 2;

  width: 100%;
  height: 100%;
  margin: 0;

  opacity: 0;
  cursor: pointer;
}

/* ظاهر کارت */

.gk-estate-amenity > span {
  min-height: 39px;
  padding: 7px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  color: rgba(227, 246, 255, 0.72);
  font-size: 9px;
  font-weight: 800;

  border: 1px solid rgba(147, 217, 255, 0.25);
  border-radius: 11px;

  background: rgba(2, 28, 63, 0.52);

  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* مربع تیک */

.gk-estate-amenity i {
  width: 18px;
  height: 18px;

  display: grid;
  place-items: center;

  color: transparent;
  font-size: 11px;
  font-style: normal;

  border: 1px solid rgba(159, 222, 255, 0.38);
  border-radius: 6px;

  background: rgba(2, 24, 57, 0.65);
}

/* گزینه انتخاب‌شده */

.gk-estate-amenity input:checked + span {
  color: #ffffff;

  border-color: #a4e9ff;

  background: linear-gradient(
    135deg,
    rgba(74, 196, 255, 0.72),
    rgba(12, 103, 177, 0.82)
  );

  box-shadow:
    0 0 15px rgba(59, 192, 255, 0.35),
    inset 0 1px rgba(255, 255, 255, 0.18);

  transform: translateY(-1px);
}

.gk-estate-amenity input:checked + span i {
  color: #ffffff;

  border-color: #c2f2ff;
  background: #168ed5;
}

/* حالت رفتن موس */

.gk-estate-amenity:hover > span {
  border-color: rgba(151, 227, 255, 0.7);
}

/* نسخه تبلت و موبایل */

@media (max-width: 900px) {
  .gk-estate-amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .gk-estate-amenities {
    padding: 10px;
  }

  .gk-estate-amenities-grid {
    gap: 7px;
  }

  .gk-estate-amenity > span {
    min-height: 42px;
    font-size: 10px;
  }
}
/* ========================================
   شیشه‌ای‌شدن پنجره اصلی فرم املاک
======================================== */

.gk-estate-register-window {
  background: linear-gradient(
    145deg,
    rgba(20, 105, 175, 0.48),
    rgba(5, 56, 111, 0.4),
    rgba(2, 29, 66, 0.53)
  );

  -webkit-backdrop-filter: blur(9px) saturate(1.2);
  backdrop-filter: blur(9px) saturate(1.2);

  border-color: rgba(177, 231, 255, 0.78);

  box-shadow:
    0 0 0 1px rgba(111, 202, 255, 0.16),
    0 0 28px rgba(48, 175, 255, 0.28),
    0 24px 60px rgba(0, 8, 28, 0.46),
    inset 0 1px 0 rgba(231, 249, 255, 0.25);
}
/* ========================================
   شیشه‌ای‌شدن کامل فرم املاک
======================================== */

/* پنجره اصلی */

.gk-estate-register-window {
  background: rgba(4, 43, 88, 0.24) !important;

  -webkit-backdrop-filter: blur(3px) saturate(1.15);
  backdrop-filter: blur(3px) saturate(1.15);
}

/* داخل اصلی فرم */

.gk-estate-register-form {
  background: transparent !important;
}

/* سربرگ پنجره */

.gk-estate-register-header {
  background: rgba(13, 83, 143, 0.2) !important;

  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* قاب تصاویر و اطلاعات */

.gk-estate-register-gallery,
.gk-estate-register-fields {
  background: rgba(3, 45, 91, 0.2) !important;

  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* امکانات، قیمت و اطلاعات تماس */

.gk-estate-amenities,
.gk-estate-price-section,
.gk-estate-owner-section {
  background: rgba(3, 42, 84, 0.18) !important;

  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* پیش‌نمایش تصویر */

.gk-estate-main-preview {
  background: rgba(2, 32, 67, 0.2) !important;
}

/* ورودی‌ها کمی تیره بمانند تا خوانا باشند */

.gk-estate-field input,
.gk-estate-field select,
.gk-estate-field textarea {
  background: rgba(2, 27, 59, 0.48) !important;

  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* پیام امنیت */

.gk-estate-security-message {
  background: rgba(25, 128, 190, 0.12) !important;
}
/* ===== شفاف‌ترشدن شیشه فرم املاک ===== */

.gk-estate-register-window {
  background: rgba(4, 43, 88, 0.14) !important;

  -webkit-backdrop-filter: blur(2px) saturate(1.12);
  backdrop-filter: blur(2px) saturate(1.12);
}

.gk-estate-register-header {
  background: rgba(13, 83, 143, 0.12) !important;
}

.gk-estate-register-gallery,
.gk-estate-register-fields {
  background: rgba(3, 45, 91, 0.11) !important;
}

.gk-estate-amenities,
.gk-estate-price-section,
.gk-estate-owner-section {
  background: rgba(3, 42, 84, 0.09) !important;
}

/* ورودی‌ها برای خوانایی کمی تیره‌تر می‌مانند */

.gk-estate-field input,
.gk-estate-field select,
.gk-estate-field textarea {
  background: rgba(2, 27, 59, 0.38) !important;
}
/* ========================================
   پنجره موفقیت ثبت آگهی املاک
======================================== */

.gk-estate-success-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  padding: 15px;

  display: grid;
  place-items: center;

  background: rgba(0, 10, 29, 0.56);

  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

/* حالت نمایش پنجره */

.gk-estate-success-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* جعبه موفقیت */

.gk-estate-success-box {
  position: relative;

  width: min(430px, 100%);
  padding: 28px 22px 20px;

  color: #eafaff;
  text-align: center;

  border: 1px solid rgba(181, 235, 255, 0.78);
  border-radius: 23px;

  background: linear-gradient(
    145deg,
    rgba(19, 113, 180, 0.72),
    rgba(4, 54, 106, 0.77),
    rgba(2, 28, 67, 0.88)
  );

  -webkit-backdrop-filter: blur(17px);
  backdrop-filter: blur(17px);

  box-shadow:
    0 0 30px rgba(55, 190, 255, 0.32),
    0 25px 65px rgba(0, 8, 30, 0.55),
    inset 0 1px rgba(255, 255, 255, 0.22);

  transform: translateY(25px) scale(0.92);

  transition: transform 0.4s ease;
}

.gk-estate-success-modal.show .gk-estate-success-box {
  transform: translateY(0) scale(1);
}

/* دکمه بستن */

.gk-estate-success-close {
  position: absolute;
  top: 12px;
  left: 12px;

  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  color: #e8faff;
  font-size: 24px;

  border: 1px solid rgba(181, 232, 255, 0.45);
  border-radius: 50%;

  background: rgba(2, 35, 75, 0.58);

  cursor: pointer;

  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.gk-estate-success-close:hover {
  transform: rotate(90deg);
  background: rgba(31, 138, 206, 0.8);
}

/* آیکون موفقیت */

.gk-estate-success-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;

  display: grid;
  place-items: center;

  color: #ffffff;
  font-size: 38px;
  font-weight: 900;

  border: 1px solid rgba(191, 240, 255, 0.88);
  border-radius: 50%;

  background: linear-gradient(145deg, #5bd8ff, #178fd8, #0758a6);

  box-shadow:
    0 0 25px rgba(73, 204, 255, 0.48),
    inset 0 2px rgba(255, 255, 255, 0.28);
}

/* متن‌ها */

.gk-estate-success-label {
  display: block;
  margin-bottom: 5px;

  color: #9de8ff;
  font-size: 9px;
}

.gk-estate-success-box h2 {
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.6;
}

.gk-estate-success-text {
  margin-top: 8px;

  color: rgba(224, 246, 255, 0.72);
  font-size: 10px;
  line-height: 2;
}

.gk-estate-success-text strong {
  color: #b9efff;
}

/* مشخصات ثبت */

.gk-estate-success-details {
  margin-top: 15px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gk-estate-success-details > div {
  min-height: 64px;
  padding: 9px 5px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;

  border: 1px solid rgba(160, 222, 255, 0.25);
  border-radius: 12px;

  background: rgba(2, 33, 72, 0.36);
}

.gk-estate-success-details span {
  color: rgba(211, 239, 255, 0.54);
  font-size: 8px;
}

.gk-estate-success-details strong {
  color: #ddf7ff;
  font-size: 9px;
}

/* پیام امنیت */

.gk-estate-success-security {
  margin-top: 12px;
  padding: 8px;

  color: rgba(216, 242, 255, 0.68);
  font-size: 8px;

  border: 1px solid rgba(113, 207, 255, 0.18);
  border-radius: 10px;

  background: rgba(33, 142, 201, 0.1);
}

/* دکمه‌ها */

.gk-estate-success-actions {
  margin-top: 14px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.gk-estate-success-back,
.gk-estate-success-home {
  min-height: 41px;
  padding: 8px 12px;

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

  font-family: inherit;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;

  border-radius: 11px;

  cursor: pointer;
}

.gk-estate-success-back {
  color: #ffffff;

  border: 1px solid rgba(190, 238, 255, 0.68);

  background: linear-gradient(135deg, #48caff, #167fc9);
}

.gk-estate-success-home {
  color: #dcf6ff;

  border: 1px solid rgba(158, 222, 255, 0.3);

  background: rgba(2, 33, 72, 0.55);
}

/* نوار زمان */

.gk-estate-success-progress {
  height: 4px;
  margin-top: 15px;

  border-radius: 999px;

  background: rgba(207, 242, 255, 0.13);

  overflow: hidden;
}

.gk-estate-success-progress span {
  width: 100%;
  height: 100%;

  display: block;

  border-radius: inherit;

  background: linear-gradient(90deg, #baf1ff, #46caff, #1477c2);
}

.gk-estate-success-modal.show .gk-estate-success-progress span {
  animation: gkEstateSuccessTimer 5s linear forwards;
}

@keyframes gkEstateSuccessTimer {
  from {
    width: 100%;
  }

  to {
    width: 0;
  }
}

.gk-estate-success-time {
  display: block;
  margin-top: 7px;

  color: rgba(208, 239, 255, 0.44);
  font-size: 7px;
}

/* نسخه موبایل */

@media (max-width: 520px) {
  .gk-estate-success-box {
    padding: 25px 15px 17px;
    border-radius: 19px;
  }

  .gk-estate-success-icon {
    width: 66px;
    height: 66px;
    font-size: 32px;
  }

  .gk-estate-success-box h2 {
    font-size: 18px;
  }

  .gk-estate-success-details {
    grid-template-columns: 1fr;
  }

  .gk-estate-success-details > div {
    min-height: 48px;
  }

  .gk-estate-success-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
