/* Small, page-scoped compatibility fixes. These rules intentionally leave
   the existing theme design, spacing and colors intact. */

/* Keep blog cards aligned when source images have different proportions. */
.wbhtl-grid-item figure {
	height: 150px;
	overflow: hidden;
	margin: 0;
}

.wbhtl-grid-item figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The legacy map modules now render Leaflet maps in the same containers. */
.wbhtl-map-convas {
	width: 100%;
	min-height: 170px;
}

.leaflet-container {
	font-family: inherit;
	direction: ltr;
}

.ms-contact-map {
    border-radius: 4px;
    overflow: hidden;
}

/* The original homepage's illustrated ribbon is layered from these three
   images, while the vehicle itself is an animated GIF. Keep the legacy
   dimensions/position explicit so redesign styles cannot collapse a layer
   or replace the GIF with a static thumbnail. */
.home-walking,
.home-walking .home-walking-1,
.home-walking .home-walking-2,
.home-walking .home-walking-3 {
    height: 168px;
}

.home-walking {
    overflow: hidden;
    position: relative;
}

.home-walking .home-walking-1 {
    background: url('../img/walking/background.png') center 0 repeat-x;
}

.home-walking .home-walking-2 {
    height: 100%;
    background: url('../img/walking/foreground.png') center 0 repeat-x;
}

.home-walking .home-walking-3 {
    height: 100%;
    background: url('../img/walking/clouds.png') center 0 repeat-x;
}

.home-walking .container,
.home-walking .row {
    height: 100%;
}

.home-walking .row {
    position: relative;
}

.home-walking .walking-logo {
    display: block;
    max-width: none;
    position: absolute;
    left: 0;
    bottom: -25px;
    width: 180px;
    height: 80px;
    z-index: 100;
}

.home-walking .walking-slogan {
    position: absolute;
    left: 175px;
    bottom: 28px;
    z-index: 101;
}

/* Native Jalali date picker used by the redesigned pages. */
.ms-native-datepicker {
    position: absolute;
    z-index: 1000000;
    display: none;
    width: 282px;
    padding: 12px;
    background: #fff;
    border: 1px solid #d9e0ea;
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, .18);
    font-family: IRANSans, Tahoma, sans-serif;
    color: #1e293b;
}

.ms-native-datepicker.is-open {
    display: block;
}

.ms-native-datepicker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.ms-native-datepicker-head strong {
    font-size: 13px;
    color: #303781;
}

.ms-nd-nav {
    width: 30px;
    height: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    color: #303781;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.ms-nd-nav:hover {
    background: #eef6ff;
    border-color: #9bd3ff;
}

.ms-native-datepicker-weekdays,
.ms-native-datepicker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.ms-native-datepicker-weekdays {
    margin-bottom: 6px;
}

.ms-native-datepicker-weekdays span {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.ms-native-datepicker-days button,
.ms-native-datepicker-days span {
    width: 32px;
    height: 32px;
}

.ms-native-datepicker-days button {
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.ms-native-datepicker-days button:hover {
    background: #e0f2fe;
    color: #0369a1;
}

.ms-native-datepicker-days button.is-selected {
    background: #f59e0b;
    color: #fff;
    font-weight: 800;
}

/* The old .ms-city-detail-page rules that used to live here are gone —
   single-city.php was fully rewritten and no longer uses that wrapper
   class. Its replacement styling lives in assets/css/ms-single-city.css,
   enqueued only for is_singular('city') in functions.php. */

@media (max-width: 767px) {
    .home-walking .walking-logo {
        left: 12px;
    }

    .home-walking .walking-slogan {
        left: 178px;
    }
}