/* Rcity Daily Popup — עיצוב הפופאפ */

.rcity-dp-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba( 0, 0, 0, 0.65 );
	opacity: 0;
	transition: opacity 0.25s ease;
}

.rcity-dp-overlay.rcity-dp-visible {
	opacity: 1;
}

.rcity-dp-overlay[hidden] {
	display: none;
}

.rcity-dp-window {
	position: relative;
	max-width: min( 90vw, 900px );
	max-height: 85vh;
	line-height: 0;
	transform: scale( 0.95 );
	transition: transform 0.25s ease;
}

.rcity-dp-overlay.rcity-dp-visible .rcity-dp-window {
	transform: scale( 1 );
}

.rcity-dp-image {
	display: block;
	max-width: 100%;
	max-height: 85vh;
	width: auto;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.4 );
}

.rcity-dp-link {
	display: block;
	cursor: pointer;
}

/*
 * כפתור סגירה: 44×44 בכל המסכים — יעד מגע תקני
 * (Apple HIG / WCAG 2.5.5 AAA). ממצא נגישות F133.
 */
.rcity-dp-close {
	position: absolute;
	top: -18px;
	inset-inline-end: -18px;
	z-index: 2;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #ffffff;
	color: #222222;
	font-size: 18px;
	line-height: 44px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.35 );
	transition: transform 0.15s ease;
}

.rcity-dp-close:hover,
.rcity-dp-close:focus {
	transform: scale( 1.1 );
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

@media ( max-width: 600px ) {
	.rcity-dp-overlay {
		padding: 12px;
	}

	/* נשאר 44×44 גם במובייל — רק המיקום מוצמד פנימה כדי לא לחרוג מהמסך. */
	.rcity-dp-close {
		top: -12px;
		inset-inline-end: -6px;
	}
}
