@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IRANSansWeb.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IRANSansWeb(FaNum)_Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IRANSansWeb(FaNum)_Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Balad Theme Main Stylesheet - Version 2.1 (Accessibility Contrast Fix) */
:root { 
    --color-primary: #009a77; 
    --color-primary-dark: #007d61; 
    --color-text-dark: #2c3e50; 
    --color-text-light: #5a6268; /* **FIX**: Darker grey for better contrast */
    --color-background-body: #f7f9fa; 
    --color-background-card: #ffffff; 
    --color-bg-soft: #fdfdfd; 
    --color-border: #e8ecef; 
    --font-sans: 'IRANSans', sans-serif; 
    --header-height: 64px; 
    --radius-lg: 16px; 
    --radius-md: 10px; 
    --shadow-soft: 0 4px 16px rgba(0,0,0,0.06); 
    --transition: all 0.25s ease; 
}
body { font-family: var(--font-sans); background-color: var(--color-background-body); margin: 0; color: var(--color-text-dark); direction: rtl; -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.7; }
body.single-balad_landing { padding-top: 0px; }
.grw-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
img.emoji { display: inline !important; border: none !important; box-shadow: none !important; height: 1em !important; width: 1em !important; margin: 0 0.07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; }
.balad-sticky-header { height: var(--header-height); position: sticky; top: 0; z-index: 1000; background-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; max-width: 1200px; margin: 0 auto; }
.header-left, .header-right { display: flex; align-items: center; gap: 16px; }
.header-title { font-size: 16px; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; } /* text-overflow removed from here */
.header-icon-btn { display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 4px; color: var(--color-text-dark); }
.header-icon-btn-placeholder { width: 32px; height: 32px; /* Same size as a button with padding */ }
.header-text-btn { font-size: 14px; font-weight: 500; }
body.single-balad_landing .site-header { display: none; }
.page-top-nav { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.balad-back-button { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--color-border); background-color: var(--color-background-card); color: var(--color-text-dark); transition: all 0.2s; }
.balad-back-button:hover { background-color: #f1f3f5; transform: scale(1.05); }
.balad-back-button svg { width: 24px; height: 24px; fill: currentColor; }
.balad-tab-buttons-wrapper { position: sticky; top: var(--header-height); z-index: 900; background-color: var(--color-background-body); padding: 12px 0; margin-bottom: 32px; border-bottom: 1px solid var(--color-border); }
.balad-tab-buttons { display: flex; gap: 12px; overflow-x: auto; padding: 0 24px 12px 24px; white-space: nowrap; scrollbar-width: none; }
.balad-tab-buttons::-webkit-scrollbar { display: none; }
.tab-button { display: inline-block; text-align: center; padding: 8px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-large); background-color: var(--color-background-card); font-size: 14px; font-weight: 500; transition: all 0.2s ease; }
.tab-button:hover { background-color: #f7f7f7; text-decoration: none; }
.tab-button.active { background-color: var(--color-primary); color: white; border-color: var(--color-primary); font-weight: 700; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.bundle-group, .carousel-section { margin-bottom: 48px; }
.bundle-header, .carousel-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--color-border); }
.bundle-header h2, .carousel-header h3 { font-size: 22px; font-weight: 700; margin: 0; }
.bundle-header a, .carousel-header a { font-weight: 500; color: var(--color-primary-dark); font-size: 14px; }
.card { flex: 0 0 270px; border-radius: var(--radius-large); box-shadow: 0 4px 12px rgba(0,0,0,0.07); border: 1px solid var(--color-border); transition: transform 0.25s ease, box-shadow 0.25s ease; scroll-snap-align: start; background: #fff; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.08); }
.card img { width: 100%; height: 150px; object-fit: cover; border-radius: var(--radius-large) var(--radius-large) 0 0; background-color: #f0f0f0; }
.card-content { padding: 12px 16px; }
.card h4 { font-size: 16px; font-weight: 700; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card p { font-size: 13px; margin: 0; color: var(--color-text-light); }
.carousel-wrapper { position: relative; }
.carousel-track-container { overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding-bottom: 16px; }
.carousel-track { display: flex; gap: 16px; list-style: none; padding: 4px; margin: 0; }
.carousel-nav { position: absolute; top: calc(50% - 8px); transform: translateY(-50%); z-index: 10; width: 40px; height: 40px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.95); border: 1px solid var(--color-border); box-shadow: 0 4px 10px rgba(0,0,0,0.12); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--color-text-dark); transition: all 0.2s ease; opacity: 0; visibility: hidden; }
.carousel-wrapper:hover .carousel-nav, .carousel-wrapper:focus-within .carousel-nav { opacity: 1; visibility: visible; }
.carousel-nav:hover { background-color: #fff; transform: translateY(-50%) scale(1.08); }
.carousel-nav:disabled { opacity: 0.2; cursor: not-allowed; pointer-events: none; }
.carousel-nav svg { width: 24px; height: 24px; fill: currentColor; }
.carousel-nav.prev { right: -20px; }
.carousel-nav.next { left: -20px; }
.grw-layout-wrapper { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.grw-sidebar { flex: 0 0 280px; position: sticky; top: calc(var(--header-height) + 72px); }
.grw-main-content { flex: 1; min-width: 0; }
.grw-sidebar-widget { background-color: var(--color-background-card); border-radius: var(--radius-large); padding: 20px; border: 1px solid var(--color-border); margin-bottom: 24px; }
.grw-sidebar-widget-title { font-size: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border); font-weight: 700; margin: 0 0 16px; }
.grw-sidebar-nav { list-style: none; margin: 0; padding: 0; }
.grw-sidebar-nav-item a { display: block; padding: 10px 12px; border-radius: var(--radius-md); font-weight: 500; color: var(--color-text-dark); transition: background-color 0.2s; font-size: 14px; }
.grw-sidebar-nav-item a:hover { background-color: #f1f3f5; }
.grw-sidebar-nav-item.active a { background-color: var(--color-primary); color: white; font-weight: 700; }
.grw-list-container { display: flex; flex-direction: column; gap: 32px; }
.page-editor-content { background: #fff; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--color-border); margin-bottom: 48px; line-height: 1.8; }
.page-editor-content p:last-child { margin-bottom: 0; }
.dynamic-content-section h2 { font-size: 22px; font-weight: 700; color: var(--color-text-dark); margin-top: 48px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--color-border); }
.dynamic-content-section h3 { font-size: 18px; font-weight: 600; color: var(--color-text-dark); margin-top: 40px; margin-bottom: 20px; }
.featured-list-container { display: flex; flex-direction: column; gap: 16px; }
details.featured-list-item { background-color: var(--color-background-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); transition: var(--transition); box-shadow: var(--shadow-soft); overflow: hidden; }
details.featured-list-item:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(0,0,0,0.08); }
.featured-list-item > summary { display: flex; align-items: center; gap: 16px; padding: 16px; list-style: none; cursor: pointer; }
.featured-list-item > summary::-webkit-details-marker { display: none; }
.featured-list-item .rank-number { font-size: 18px; font-weight: 700; color: var(--color-text-light); min-width: 25px; text-align: center; flex-shrink: 0; }
.featured-list-item .thumbnail { width: 70px; height: 70px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; }
.featured-list-item .content { flex-grow: 1; min-width: 0; }
.featured-list-item .title-line { display: flex; align-items: center; margin-bottom: 6px; }
.featured-list-item .title { font-size: 18px; font-weight: 700; color: var(--color-text-dark); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured-list-item .details { font-size: 14px; color: var(--color-text-light); display: flex; align-items: center; gap: 8px; }
.featured-list-item .rating { display: flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 700; color: var(--color-text-dark); margin-right: auto; padding: 6px 12px; background-color: var(--color-bg-soft); border: 1px solid var(--color-border); border-radius: var(--radius-md); white-space: nowrap; flex-shrink: 0; }
.star-icon { color: #f39c12; font-size: 16px; }
.expand-toggle-icon { transition: transform 0.3s ease; width: 24px; height: 24px; flex-shrink: 0; }
.expand-toggle-icon::before { content: '▼'; display: inline-block; color: var(--color-text-light); font-size: 20px; line-height: 24px; text-align: center; width: 100%; }
details[open] > summary .expand-toggle-icon { transform: rotate(180deg); }
.expanded-details { overflow: hidden; transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out; max-height: 0; opacity: 0; padding: 0 24px 24px 24px; }
details[open] > .expanded-details { max-height: 1000px; opacity: 1; border-top: 1px solid var(--color-border); margin: 0 16px; padding-top: 24px; }
.expanded-details h5 { font-size: 16px; font-weight: 600; margin: 0 0 16px; color: var(--color-text-dark); }
.expanded-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: flex-start; }
.gallery-column, .reviews-column { min-width: 0; }
.simple-gallery { position: relative; overflow: hidden; border-radius: var(--radius-md); }
.simple-gallery__wrapper { display: flex; transition: transform 0.4s ease; }
.simple-gallery__slide { flex: 0 0 100%; min-width: 0; }
.simple-gallery__slide img { width: 100%; height: 250px; object-fit: cover; display: block; }
.simple-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(30, 30, 30, 0.6); color: white; border: none; border-radius: 50%; width: 36px; height: 36px; font-size: 24px; line-height: 1; cursor: pointer; transition: var(--transition); opacity: 0; }
.simple-gallery:hover .simple-gallery__nav { opacity: 1; }
.simple-gallery__nav:hover { background: rgba(0, 0, 0, 0.8); }
.simple-gallery__nav:disabled { opacity: 0.2; cursor: not-allowed; }
.simple-gallery__nav--prev { right: 8px; }
.simple-gallery__nav--next { left: 8px; }
.simple-reviews-slider__wrapper { display: flex; flex-direction: column; gap: 16px; }
.mini-review-card { background: var(--color-bg-soft); border-radius: var(--radius-md); padding: 20px; height: 100%; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--color-border); position: relative; overflow: hidden; }
.mini-review-card::before { content: '“'; position: absolute; top: -10px; right: 10px; font-size: 80px; line-height: 1; color: var(--color-border); z-index: 0; font-family: Georgia, serif; }
.review-quote, .review-author { position: relative; z-index: 1; }
.review-quote { margin: 0; font-size: 14px; color: var(--color-text-dark); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-style: italic; }
.review-author { font-size: 13px; font-weight: 600; color: var(--color-text-dark); margin-top: auto; padding-top: 8px; }

/* --- PLACE DETAILS IN EXPANDED VIEW --- */
.place-details-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.detail-item { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--color-text-dark); margin-bottom: 12px; }
.detail-icon { flex-shrink: 0; font-size: 18px; line-height: 1.6; }
.detail-text { line-height: 1.6; }
.detail-text a { color: var(--color-primary-dark); font-weight: 500; }
.detail-text a:hover { text-decoration: underline; }
.amenity-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity-tag { background-color: #ecf0f1; color: #7f8c8d; padding: 4px 10px; border-radius: 15px; font-size: 13px; font-weight: 500; }

.card-container { display: grid; gap: 25px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.trip-card { background-color: #ffffff; border: 1px solid #e0e0e0; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.trip-card:hover { transform: translateY(-6px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); }
.trip-card__image-container { position: relative; height: 180px; }
.trip-card__image-container img { width: 100%; height: 100%; object-fit: cover; }
.trip-card__content { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.trip-card__title { margin: 0 0 8px 0; font-size: 1.2rem; font-weight: 700; color: #2c3e50; }
.trip-card__rating { display: flex; align-items: center; margin-bottom: 12px; font-size: 0.9rem; color: #555; }
.trip-card__tags { margin-bottom: 12px; }
.trip-card__tags .tag { background-color: #f1f3f5; color: var(--color-text-light); padding: 4px 10px; border-radius: 15px; font-size: 0.75rem; margin-left: 6px; } /* **FIX**: Darker text color */
.trip-card__info-section { margin-top: auto; padding-top: 15px; border-top: 1px solid #f0f0f0; }
.trip-card__contact-item { display: flex; align-items: center; font-size: 0.85rem; color: #555; margin-bottom: 8px; }
.trip-card__contact-item span { margin-right: 8px; }
@media (max-width: 992px) { .grw-sidebar { position: static; width: 100%; flex-basis: 100%; order: 2; } .grw-main-content { order: 1; } .grw-layout-wrapper { flex-direction: column; } .expanded-content-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { body { font-size: 14px; } .grw-container { padding: 0 16px; } .carousel-nav { display: none; } .header-inner, .balad-tab-buttons { padding-right: 16px; padding-left: 16px; } .page-header h1, .entry-title { font-size: 24px; } .expanded-details { padding-right: 16px; } .featured-list-item > summary { flex-wrap: wrap; gap: 12px; } .featured-list-item .content { flex-basis: 100%; order: 3; } .featured-list-item .rating { margin-right: 0; margin-left: auto; } }
.card-link-wrapper { display: flex; flex-direction: column; height: 100%; }
.card-link-wrapper:hover { text-decoration: none; }
.card-image-container { height: 150px; }
.card-image-container img { width: 100%; height: 100%; object-fit: cover; }
/* ==========================================================================
   PRO REBUILD - A robust, clean, and fully responsive architecture.
   ========================================================================== */

/* --- 1. SETUP & GLOBAL STYLES --- */
:root {
    /* Colors */
    --color-primary: #009a77;
    --color-secondary: #2c3e50;
    --color-warning: #f39c12;
    --color-text-dark: #34495e;
    --color-text-light: #5a6268; /* **FIX**: This was already changed, but is re-confirmed here. */
    --color-border: #e8ecef;
    --color-background-page: #f7f9fa;
    --color-background-widget: #ffffff;
    --color-white: #ffffff;

    /* Sizing & Spacing */
    --radius-main: 16px;
    --spacing-xs: 8px;
    --spacing-s: 16px;
    --spacing-m: 24px;
    --spacing-l: 32px;

    /* Shadows */
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 24px rgba(44, 62, 80, 0.1);
    --shadow-image-mobile: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-fab: 0 8px 20px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; }

body { background-color: var(--color-background-page); font-family: IRANSans; color: var(--color-text-dark); }

.page-top-nav { display: flex; align-items: center; gap: 12px; padding: 16px 0; width: 100%; overflow: hidden; }

/* --- Back Button --- */
.balad-back-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #e9ecef; border-radius: 50%; background-color: #fff; color: #495057; transition: all 0.2s ease; flex-shrink: 0; }
.balad-back-button:hover { background-color: #f8f9fa; transform: scale(1.05); }
.balad-back-button svg { transform: scaleX(1); }

/* --- Breadcrumbs Container with Fading Effect --- */
.balad-breadcrumbs-container { flex-grow: 1; overflow: hidden; position: relative; }
.balad-breadcrumbs-container::after { content: ''; position: absolute; top: 0; left: 0; width: 40px; height: 100%; background: linear-gradient(to right, white, rgba(255, 255, 255, 0)); pointer-events: none; z-index: 2; }

/* --- **FIX START**: Apply flex styles to the OL element inside .balad-breadcrumbs --- */
.balad-breadcrumbs ol { display: flex; align-items: center; list-style: none; padding: 0; margin: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.balad-breadcrumbs ol::-webkit-scrollbar { display: none; }
.balad-breadcrumbs ol li { display: inline-flex; align-items: center; white-space: nowrap; flex-shrink: 0; }
.balad-breadcrumbs ol li:not(:last-child)::after { content: '/'; margin: 0 10px; color: #ced4da; font-size: 16px; }
.balad-breadcrumbs ol a { font-size: 15px; font-weight: 500; padding: 6px 0; display: block; color: var(--color-text-light); text-decoration: none; transition: color 0.2s ease; } /* **FIX**: Using the corrected light color */
.balad-breadcrumbs ol a:hover { color: #007BFF; }
/* --- **FIX END** --- */

.site-header .site-branding, .header-inner { display: flex; justify-content: space-between; align-items: center; }
.header-user-actions .header-icon-btn { display: flex; align-items: center; justify-content: center; color: var(--color-text-dark); }
.header-user-actions .avatar { border-radius: 50%; }

/* Footer Breadcrumbs Styles */
.footer-breadcrumbs { padding: 24px 0; text-align: center; }
.footer-breadcrumbs .balad-breadcrumbs ol { justify-content: center; padding: 0; }
.footer-breadcrumbs .balad-breadcrumbs ol a { color: var(--color-text-light); font-size: 13px; }
.footer-breadcrumbs .balad-breadcrumbs ol a:hover { color: var(--color-text-dark); }
.footer-breadcrumbs .balad-breadcrumbs ol li:not(:last-child)::after { color: var(--color-text-light); }

/* Visually Hidden Class for Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/**
 * ===================================================================
 *  بهینه‌سازی عنوان هدر برای متون طولانی (افزودن اسکرول افقی)
 * ===================================================================
 */

/* 
 * مرحله ۱: کانتینر سمت چپ هدر را محدود می‌کنیم تا محتوای داخل آن
 * نتواند به بخش سمت راست فشار بیاورد و چیدمان را به هم بریزد.
 */
.header-left {
    overflow: hidden; /* هر چیزی که از این بخش بیرون بزند را مخفی کن */
    min-width: 0;      /* به flexbox اجازه می‌دهد این عنصر را کوچک کند */
}

/* 
 * مرحله ۲: به خود عنصر عنوان، قابلیت اسکرول افقی می‌دهیم.
 */
.header-title {
    white-space: nowrap;     /* از شکستن متن به خط بعدی جلوگیری کن */
    overflow-x: auto;        /* اگر متن طولانی بود، اسکرول افقی نمایش بده */
    
    /* بهینه‌سازی ظاهری اسکرول‌بار (اختیاری) */
    scrollbar-width: thin; /* برای فایرفاکس */
    scrollbar-color: #ccc #f1f1f1; /* برای فایرفاکس */
}

/* استایل سفارشی برای اسکرول‌بار در مرورگرهای WebKit (کروم، سافاری) */
.header-title::-webkit-scrollbar {
    height: 4px; /* ارتفاع اسکرول‌بار */
}

.header-title::-webkit-scrollbar-track {
    background: #f1f1f1; /* رنگ پس‌زمینه ترک */
}

.header-title::-webkit-scrollbar-thumb {
    background: #ccc; /* رنگ خود اسکرول‌بار */
    border-radius: 4px; /* گرد کردن گوشه‌ها */
}

.header-title::-webkit-scrollbar-thumb:hover {
    background: #aaa; /* رنگ اسکرول‌بار در حالت هاور */
}
.leaf-form__footer {
    flex-shrink: 0; /* Prevents the footer from shrinking */
    padding: 16px 20px;
    background-color: #fff;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 -5px 10px -5px rgba(0,0,0,0.05); /* Subtle shadow for separation */
}
.leaf-form__submit-button { display: flex; align-items: center; justify-content: center; width: 100%; padding: 14px 20px; border: none; border-radius: 12px; background-color: #007BFF; color: white; font-size: 16px; font-weight: bold; cursor: pointer; gap: 8px; }
.leaf-form__submit-button.loading .button-text { display: none; }
.leaf-form__submit-button .leaf-form__spinner { display: none; }
.leaf-form__submit-button.loading .leaf-form__spinner { display: block; width: 20px; height: 20px; border: 3px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }