@font-face {
  font-family: Sahel;
  src: url("Sahel.eot");
  src: url("../fonts/SahelFont/Sahel.eot") format("embedded-opentype"),
    url("../fonts/SahelFont/Sahel.woff") format("woff"),
    url("../fonts/SahelFont/Sahel.ttf") format("truetype");
  font-weight: normal;
}

@font-face {
  font-family: vazir;
  src: url("../fonts/VazirFont/vazir.eot");
  src: url("../fonts/VazirFont/vazir.eot") format("embedded-opentype"),
    url("../fonts/VazirFont/vazir.woff") format("woff"),
    url("../fonts/VazirFont/vazir.ttf") format("truetype");
  font-weight: normal;
}

* {
  font-family: "sahel", "vazir";
}

html {
  direction: rtl;
  scroll-behavior: smooth;
  font-size: clamp(14px, 1.2vw, 16px);
}

body {
   line-height: 1.6;
}

::-webkit-progress-value {
  background-color: #0080ff;
}

::-moz-progress-bar {
  background-color: #0080ff;
}
progress[value]::-webkit-progress-value {
  transition: width 0.8s ease;
}
progress[value]::-moz-progress-bar {
  transition: width 0.8s ease;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  /* display: none; <- Crashes Chrome on hover */
  -webkit-appearance: none;
  margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type="number"] {
  -moz-appearance: textfield; /* Firefox */
  letter-spacing: 5px;
}


/* width */
::-webkit-scrollbar {
  width: 4px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #efefef;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #858585;
  border-radius: 30px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #858585;
}

abbr {
  font-style: italic;
  position: relative;
}

abbr:hover::after {
  background: #add8e6;
  border-radius: 4px;
  bottom: 100%;
  content: attr(title);
  display: block;
  left: 100%;
  padding: 1em;
  position: absolute;
  width: 280px;
  z-index: 1;
}

#map { height: 300px; }
.leaflet-control-container{
  display: none;
}
.leaflet-attribution-flag {
  display: none !important;
}

.leaflet-touch .leaflet-bar {
  display: none;
}

.navbar-hidden {
  transform: translateY(100%);
}

.navbar-visible {
  transform: translateY(0);
}

.transition-transform {
  transition: transform 0.4s ease-in-out;
}

@media print {
  .no-print {
    display: none;
  }
}

.loader {
  width: 15px;
  height: 15px;
  display: inline-block;
  position: relative;
  margin-bottom: -3px;
  margin-left: 3px;
  opacity: .3;
}
.loader::after,
.loader::before {
  content: '';
  width: 15px;
  height: 15px;
  border: 2px solid #0d2cd8;
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  animation: rotation 2s ease-in-out infinite;
}
.loader::after {
  border-color: #FF3D00;
  animation-delay: 1s;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 

@keyframes fadeOpacity {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

@keyframes moveLines {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2px, 2px); }
}

.animate-grid-animation {
  animation: fadeOpacity 8s infinite alternate ease-in-out;
}

.animate-grid-lines {
  animation: moveLines 6s infinite alternate ease-in-out;
}

.animate-grid-opacity {
  animation: fadeOpacity 10s infinite alternate ease-in-out;
}

    .leaflet-popup-content{
width: 200px !important;
}
.leaflet-marker-icon.circle-icon {
  border-radius: 50%;
  border: 2px solid white;
}
.homeBg {
  background: linear-gradient(-45deg, #f9fafb, #ffffff, #ffffff, #d2d3d3);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

@keyframes gradient {
  0% {
      background-position: 0% 50%;
  }

  50% {
      background-position: 100% 50%;
  }

  100% {
      background-position: 0% 50%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    /* در این بازه، ضریب rem را کمی کوچک می کنیم تا همه چیز خود به خود جمع شود */
    font-size: 14px; 
  }
}
/* مسدودسازی رزولوشن های بسیار پایین (مثل ساعت هوشمند) */
@media (max-width: 300px) {
  body::before {
    content: "اندازه صفحه شما برای مشاهده سایت چمدون بهینه نیست! لطفا از دستگاه دیگه ای با صفحه بزرگتر برای مشاهده سایت استفاده کنید...";
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #155e75; /* رنگ سازمانی چمدون */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: bold;
    direction: rtl;
  }
  
  /* مخفی کردن محتوای اصلی سایت برای جلوگیری از اسکرول و شلوغی */
  body > * {
    display: none !important;
  }
}

  .animate-spin-slow {
        animation: spin 3s linear infinite;
    }
    @keyframes spin {
        from { transform: rotate(0); }
        to { transform: rotate(360deg); }
    }


/* استایل پوشش شیشه ای (همانند قبل) */
.glass-loader-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    z-index: 9999; display: flex; justify-content: center; align-items: center;
    visibility: hidden; opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.glass-loader-overlay.active {
    visibility: visible; opacity: 1;
}

/* باکس دربرگیرنده لودر و تبلیغ */
.loader-content-box {
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 350px;
    text-align: center;
}

/* انیمیشن لودر */
.loader-spinner {
    width: 40px; height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

/* استایل بخش تبلیغات */
.ad-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    object-fit: cover;
}

.ad-container p {
    margin: 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
