body {
    margin: 0;
    font-family: 'Vazir', sans-serif;
    direction: rtl;
  }

.top-bar {
  background-color: #004aad;
  color: white;
  display: flex;
  justify-content: center; /* وسط‌چین افقی */
  align-items: center;     /* وسط‌چین عمودی */
  text-align: center;
  padding: 8px 20px;
  font-size: 14px;
}

.top-bar .info {
  width: 100%;
}

.link_type {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: bold;
}

.link_type:hover {
  text-decoration: underline;
}


  .navbar {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    position: relative;
    border-bottom: 1px solid #ddd;
  }


.logo {
  display: flex;
  align-items: center; /* وسط‌چین عمودی لوگو و متن */
  gap: 8px; /* فاصله بین عکس و متن */
  font-weight: bold;
  font-size: 18px;
  color: #004aad; /* در صورت نیاز */
	
}

  .navbar ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
  }

  .navbar ul li {
    margin: 0 10px;
  }

  .navbar ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
  }

  .navbar ul li a:hover {
    color: #004aad;
  }

  .menu-toggle {
    display: none;
    font-size: 26px;
    color: #004aad;
    cursor: pointer;
  }

.hero {
  background: url("../img/back.jpg") center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 120px 20px;
}

/* نسخه موبایل */
@media (max-width: 768px) {
  .hero {
    background: url("../img/back_res.jpg") center/cover no-repeat;
  }
}


  .hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 18px;
  }

  /* ریسپانسیو */
  @media (max-width: 768px) {
    .top-bar {
      flex-direction: column;
      text-align: center;
    }

    .navbar ul {
      flex-direction: column;
      position: absolute;
      top: 60px;
      right: 0;
      width: 100%;
      background-color: white;
      display: none;
      border-top: 1px solid #ddd;
    }

    .navbar ul li {
      padding: 10px 0;
      border-bottom: 1px solid #eee;
    }

    .menu-toggle {
      display: block;
    }

    .navbar.active ul {
      display: flex;
    }
  }
.link_type {
	color: #FFFFFF;
	text-decoration: none;
}







/* rese_box */
.booking-section {
  background-color: #ffffff;
  padding: 10px;
  text-align: center;
}

.booking-container {
  max-width: 600px;
  margin: auto;
}

.booking-section h2 {
  color: #004aad;
  font-size: 28px;
  margin-bottom: 10px;
}

.booking-section p {
  color: #555;
  margin-bottom: 30px;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ✅ دسکتاپ: کنار هم */
  gap: 20px;
}

select, input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Vazir', sans-serif;
}

button {
  grid-column: span 2; /* ✅ دکمه کل عرض */
  background-color: #004aad;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: #003580;
}

/* ✅ موبایل: زیر هم */
@media (max-width: 600px) {
  .booking-form {
    grid-template-columns: 1fr;
  }

  button {
    grid-column: span 1;
  }
}


/* tour_box */

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 20px 0;
}

.tour-box {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tour-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.tour-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-top: 0;
}

.tour-box h3 {
    color: #004aad;
    font-size: 18px;
    margin: 10px 0 5px;
    text-align: center;
}

.tour-box p {
    padding: 0 10px;
    color: #555;
    font-size: 14px;
    text-align: center;
    margin: 5px 0;
}

.tour-box a {
    display: inline-block;
    margin: 10px 0 20px;
    background-color: #004aad;
    color: white;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    transition: 0.3s;
}

.tour-box a:hover {
    background-color: #003580;
}
.tours-container h2 ,.tours-container p{
	text-align: center;
}





.emp-container {
  max-width: 800px;
  margin: auto;
  padding: 10px;
}

.emp-container h2 {
  text-align: center;
  margin-bottom: 5px;
}

.emp-container p {
  text-align: center;
  margin-bottom: 20px;
  color: #555;
}

.emp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.emp-box {
  width: 100px;
  height: 20px; /* اندازه باکس مناسب */
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.emp-box h3 {
  margin: 0;
  font-size: 14px;
  text-align: center;
}

.emp-status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: gray;
}

/* استایل آنلاین با چشمک زدن */
.emp-online h3 {
  font-weight: bold;
  color: #000;
}

.emp-online .emp-status-indicator {
  background-color: green;
  box-shadow: 0 0 6px green;
  animation: blink 1s infinite;
}

/* افکت چشمک زدن */
@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* استایل آفلاین */
.emp-offline h3 {
  font-weight: normal;
  font-style: italic;
  color: #888;
}

.emp-offline .emp-status-indicator {
  background-color: #aaa;
}
.emp-conter{
	font-size: 8px;
}








/* والد برای موقعیت‌دهی آیکون */
.header {
  position: relative;
  height: 10px; /* طبق نیاز خود تنظیم کن */
  background: #fff0; /* فقط برای نمونه */
}

/* آیکون: در موقعیت نهایی سمت راست قرار می‌گیرد،
   ولی با translateX(-100vw) از خارجِ صفحه سمت چپ شروع می‌کند */
.plane-icon {
  position: absolute;
  right: 20px;       /* موقعیت نهایی از سمت راست */
  top: 50%;
  transform: translateY(-50%) translateX(-100vw); /* شروع خارج از صفحه */
  font-size: 30px;
  color: #004aad;
  animation: flyRight 2.6s ease-out forwards;
  /* اگر می‌خواهی با تاخیر شروع کند: animation-delay: 0.3s; */
}

@keyframes flyRight {
  0% {
    transform: translateY(-50%) translateX(-100vw);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) translateX(0); /* به موقعیت نهایی می‌رسد */
    opacity: 0;
  }
}

/* برای موبایل/واحدهای مختلف می‌توانی اندازه و right را تغییر دهی */
@media (max-width: 480px) {
  .plane-icon { font-size: 24px; right: 12px; }
}



hr {
  border: none;
  height: 1px;
  background-color: #eee;
  margin: 10px 0;
}






  /* footer */

.company-footer {
  background-color: #004aad;
  color: #ddd;
  padding: 40px 20px 20px 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

.footer-section {
  flex: 1 1 250px;
  min-width: 200px;
}

.footer-section h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #fff;
}

.footer-section p {
  margin: 5px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
}

.social-links a {
  margin-right: 10px;
  color: #1a73e8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.social-links a:hover {
  color: #28a745;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 13px;
  color: #aaa;
}





/* story.php */
  .story-widget {
    position: relative;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 80px;
  }

  .story-circles {
    display: flex;
    gap: 10px;
  }

  .story-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #f00;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  }

  .story-circle img {
    width: 100%;
    height: 95%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    border: solid 2px #fff;
  }

  .story-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow: hidden;
  }

  .story-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s;
    position: absolute;
  }

  .story-container img.active { opacity: 1; }

  .progress {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    gap: 4px;
  }

  .progress-bar {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width linear;
    flex: 1;
  }

  .story-container .btn {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    cursor: pointer;
  }

  .story-container .btn.prev { left: 0; }
  .story-container .btn.next { right: 0; }

  .story-container .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    user-select: none;
  }

  @media (min-width: 769px) {
    .story-widget {
      display: none !important;
    }
  }


  /* tour-list.php */
.tour-list {
    margin: 0 auto;
    font-family: Tahoma, sans-serif;
}

/* ستون‌ها */
.col {
    flex: 1;
    text-align: center;
}

/* سر تیتر */
.tour-header {
    display: flex;
    background-color: #f0f8ff;
    padding: 12px 20px;
    font-weight: bold;
    border-bottom: 2px solid #007bff;
    gap: 10px;
}

/* ردیف‌ها */
.tour-item {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 5px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.tour-info {
    display: flex;
    padding: 12px 20px;
    gap: 10px;
    align-items: center;
}

/* دکمه رزرو */
.reserve-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 6px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.reserve-btn:hover {
    background-color: #0056b3;
}

/* واکنشگرا برای موبایل */
@media (max-width: 700px) {
    /* مخفی کردن سر تیتر */
    .tour-header {
        display: none;
    }

    /* ستون‌ها راست‌چین و عمودی شوند */
    .tour-info {
        flex-direction: column;
        align-items: flex-end; /* راست‌چین */
        gap: 5px;
    }

    .col {
        text-align: right; /* متن راست چین */
        width: 100%;
        margin-bottom: 5px;
    }

    .col-action {
        margin-bottom: 0;
        width: 100%;
        text-align: center;
    }
}




  /* visa.php */

.visa-wrapper {
  margin: 0 auto;
  font-family: Tahoma, sans-serif;
}

.visa-box {
  display: flex;
  gap: 20px;
  padding: 15px 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  align-items: center;
  flex-wrap: wrap;
}

/* بخش تصویر */
.visa-image {
  position: relative;
  flex: 1;
  max-width: 400px;
  aspect-ratio: 16/10; /* حفظ نسبت تصویر */
  border-radius: 12px;
  overflow: hidden;
  margin-left: auto; /* تصویر سمت راست دسکتاپ */
}

.visa-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.visa-image img.active {
  opacity: 1;
}

/* بخش محتوا */
.visa-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.visa-content h2 {
  font-size: 24px;
  color: #222;
  margin: 0;
}

.visa-content p {
  color: #555;
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

.visa-btn {
  padding: 10px 25px;
  border: none;
  background: linear-gradient(135deg, #007bff, #00bfff);
  color: #fff;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.visa-btn:hover {
  background: linear-gradient(135deg, #0056d2, #0099cc);
}

/* موبایل */
@media (max-width: 768px) {
  .visa-box {
    flex-direction: column-reverse;
    text-align: center;
    padding: 20px;
  }

  .visa-image, .visa-content {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .visa-content {
    align-items: center;
  }

  .visa-image {
    max-width: 100%;
    aspect-ratio: auto; /* تصویر در موبایل طبیعی باشد */
    height: 200px;
  }
}


