/* Resort Network - شبكة المدينة المصيفية */
.rn-wrap {
	--rn-navy: #0a6fa8;
	--rn-sea: #08557f;
	--rn-brass: #a8650f;
	--rn-ink: #0e2433;
	--rn-mute: #4b6070;
	--rn-line: #e6edf2;
	--rn-soft: #f4f7fa;
	direction: rtl;
	text-align: right;
	color: var(--rn-ink);
	line-height: 1.7;
	box-sizing: border-box;
}
.rn-wrap *, .rn-wrap *::before, .rn-wrap *::after { box-sizing: border-box; }
.rn-hidden { display: none !important; }
.rn-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; }

/* ---------- الأزرار ---------- */
.rn-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 10px 22px; border-radius: 999px; border: 1px solid var(--rn-navy);
	background: #fff; color: var(--rn-navy); font: inherit; font-weight: 700;
	text-decoration: none; cursor: pointer; line-height: 1.4;
}
.rn-btn:hover { background: var(--rn-navy); color: #fff; }
.rn-btn:focus-visible, .rn-wrap a:focus-visible, .rn-wrap button:focus-visible,
.rn-wrap input:focus-visible, .rn-wrap select:focus-visible, .rn-wrap textarea:focus-visible {
	outline: 3px solid var(--rn-brass); outline-offset: 2px;
}
.rn-go { background: var(--rn-navy); color: #fff; }
.rn-go:hover { background: var(--rn-sea); border-color: var(--rn-sea); }
.rn-go[disabled] { opacity: .6; cursor: wait; }
.rn-wa { background: #1f8a4c; border-color: #1f8a4c; color: #fff; }
.rn-wa:hover { background: #17713d; border-color: #17713d; }
.rn-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- الحقول ---------- */
.rn-field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; min-width: 0; }
.rn-field label { font-weight: 700; font-size: 14px; }
.rn-field input, .rn-field select, .rn-field textarea {
	width: 100%; padding: 9px 11px; border: 1px solid #b9c4cf; border-radius: 6px;
	background: #fff; color: var(--rn-ink); font: inherit; min-height: 42px;
}
.rn-req { color: #b3261e; }
.rn-hint { margin: 0 0 8px; color: var(--rn-mute); font-size: 13px; }
.rn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; }
.rn-streets-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0 10px; align-items: end; }
.rn-on { padding-bottom: 20px; font-weight: 700; color: var(--rn-brass); }
.rn-add h3 { margin: 22px 0 10px; font-size: 18px; color: var(--rn-navy); border-bottom: 2px solid var(--rn-line); padding-bottom: 6px; }
.rn-add-phone { background: none; border: 0; padding: 0 0 12px; color: var(--rn-sea); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.rn-msg { margin: 14px 0; }
.rn-msg.ok { padding: 12px 14px; background: #e8f5ee; border: 1px solid #1f8a4c; border-radius: 6px; }
.rn-msg.err { padding: 12px 14px; background: #fdecea; border: 1px solid #b3261e; border-radius: 6px; }
.rn-msg ul { margin: 0; padding: 0 18px 0 0; }

/* ---------- الفلاتر ---------- */
.rn-filter { background: var(--rn-soft); border: 1px solid var(--rn-line); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.rn-filter-main, .rn-filter-adv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; align-items: end; }
.rn-filter .rn-go { margin-bottom: 12px; min-height: 42px; }
.rn-adv summary { cursor: pointer; font-weight: 700; color: var(--rn-sea); padding: 4px 0 10px; }
.rn-filter-adv { padding-top: 6px; }
.rn-check { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 12px; }
.rn-check input { width: auto; min-height: 0; }
.rn-count { margin: 6px 0 12px; color: var(--rn-mute); font-weight: 700; }
.rn-empty { padding: 24px; background: var(--rn-soft); border-radius: 8px; text-align: center; }

/* ---------- العنوان ---------- */
.rn-addr {
	display: block; width: fit-content; max-width: 100%; margin: 0 0 8px; padding: 3px 12px;
	background: #e6f1f8; color: var(--rn-sea); border-radius: 999px;
	font-weight: 600; font-size: 14px; line-height: 1.6;
}
.rn-addr:empty { display: none; }
.rn-kind { display: inline-block; margin-bottom: 4px; color: var(--rn-brass); font-weight: 700; font-size: 14px; }

/* ---------- صف الوحدة في القائمة ---------- */
.rn-list { display: grid; gap: 14px; }
.rn-row { display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--rn-line); border-radius: 8px; overflow: hidden; background: #fff; }
.rn-sold { opacity: .8; }
.rn-slider { position: relative; background: #e6ebf0; min-height: 210px; }
.rn-slider-link { display: block; height: 100%; }
.rn-slider img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.rn-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--rn-mute); }
.rn-nav {
	position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 44px;
	border: 0; background: rgba(15, 53, 85, .72); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.rn-prev { right: 0; border-radius: 6px 0 0 6px; }
.rn-next { left: 0; border-radius: 0 6px 6px 0; }
.rn-ribbon { position: absolute; top: 12px; right: 0; background: #b3261e; color: #fff; padding: 3px 14px; font-weight: 700; border-radius: 4px 0 0 4px; z-index: 2; }
.rn-row-body { padding: 14px 18px; display: flex; flex-direction: column; min-width: 0; }
.rn-row-body h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.4; }
.rn-row-body h3 a { color: var(--rn-ink); text-decoration: none; }
.rn-row-body h3 a:hover { color: var(--rn-sea); }
.rn-chips { list-style: none; margin: 4px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rn-chips li { margin: 0; padding: 2px 10px; border: 1px solid var(--rn-line); border-radius: 20px; font-size: 13px; background: var(--rn-soft); }
.rn-row-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.rn-price { font-size: 22px; color: var(--rn-navy); }

/* ---------- الأنشطة ---------- */
.rn-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rn-place { border: 1px solid var(--rn-line); border-radius: 8px; padding: 14px 16px; background: #fff; }
.rn-place h3 { margin: 0 0 6px; font-size: 18px; }
.rn-place h3 a { color: var(--rn-ink); text-decoration: none; }
.rn-hours { margin: 0 0 8px; color: var(--rn-mute); font-size: 14px; }

/* ---------- شبكة الشوارع ---------- */
.rn-streets h3 { margin: 16px 0 8px; color: var(--rn-navy); }
.rn-street-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.rn-street-grid a {
	min-width: 44px; padding: 6px 10px; text-align: center; text-decoration: none; font-weight: 700;
	background: var(--rn-navy); color: #fff; border-radius: 4px;
	box-shadow: inset 0 0 0 2px var(--rn-navy), inset 0 0 0 3px rgba(255, 255, 255, .7);
}
.rn-street-grid a:hover { background: var(--rn-sea); }
.rn-street-grid a.wide { padding-inline: 16px; background: var(--rn-brass); box-shadow: none; }

/* ---------- الصفحة المفردة ---------- */
.rn-single { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.rn-card { border: 1px solid var(--rn-line); border-radius: 8px; padding: 14px 16px; background: #fff; margin-bottom: 14px; }
.rn-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--rn-navy); }
.rn-contact .rn-price { display: block; margin-bottom: 10px; font-size: 26px; }
.rn-phone2-link { display: block; margin-top: 10px; color: var(--rn-sea); font-weight: 700; text-align: right; }
.rn-facts dl { margin: 0; }
.rn-facts dl div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--rn-line); }
.rn-facts dl div:last-child { border-bottom: 0; }
.rn-facts dt { color: var(--rn-mute); margin: 0; }
.rn-facts dd { margin: 0; font-weight: 700; text-align: left; }
.rn-gallery .rn-g-main { position: relative; border-radius: 8px; overflow: hidden; background: #e6ebf0; }
.rn-g-main img { width: 100%; display: block; max-height: 520px; object-fit: cover; }
.rn-g-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.rn-g-thumb { flex: 0 0 84px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; }
.rn-g-thumb.on { border-color: var(--rn-brass); }
.rn-g-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rn-desc, .rn-near { margin-top: 18px; }
.rn-desc h3, .rn-near h3 { color: var(--rn-navy); font-size: 18px; }
.rn-near ul { margin: 0; padding: 0; list-style: none; }
.rn-near li { padding: 6px 0; border-bottom: 1px dashed var(--rn-line); }
.rn-near li span { color: var(--rn-mute); font-size: 13px; margin-right: 8px; }
.rn-more { margin-top: 16px; font-weight: 700; }

/* ---------- الجوال ---------- */
@media (max-width: 820px) {
	.rn-single { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.rn-row { grid-template-columns: 1fr; }
	.rn-slider { height: 230px; min-height: 0; }
	.rn-streets-row { grid-template-columns: 1fr; }
	.rn-on { padding: 0 0 8px; }
}

/* لوحة الإدارة */
.rn-admin-form { max-width: 900px; }
.rn-admin-form .rn-field input, .rn-admin-form .rn-field select { min-height: 32px; }

/* ---------- شارات والأرقام المهمة ---------- */
.rn-badge { display: inline-block; margin: 0 0 8px; padding: 1px 12px; border-radius: 20px; background: #e8f5ee; border: 1px solid #1f8a4c; color: #145c33; font-size: 13px; font-weight: 700; }
.rn-emerg { display: grid; gap: 10px; }
.rn-emerg-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 18px; border: 1px solid var(--rn-line); border-inline-start: 5px solid #b3261e; border-radius: 6px; background: #fff; }
.rn-emerg-item strong { display: block; font-size: 18px; }
.rn-emerg-item strong a { color: var(--rn-ink); text-decoration: none; }
.rn-emerg-item span { color: var(--rn-mute); font-size: 14px; }
.rn-emerg-num { font-size: 24px; font-weight: 700; color: #b3261e; text-decoration: none; letter-spacing: .02em; }

/* ---------- قصة المدينة [rn_story] ---------- */
.rn-story-list { list-style: none; margin: 0; padding: 0; position: relative; }
.rn-story-list::before { content: ""; position: absolute; top: 8px; bottom: 8px; right: 11px; width: 2px; background: var(--rn-line); }
.rn-story-item { position: relative; padding-right: 44px; margin-bottom: 28px; }
.rn-story-dot { position: absolute; right: 2px; top: 26px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--rn-navy); }
.rn-story-card { background: #fff; border: 1px solid var(--rn-line); border-radius: 20px; padding: 24px 26px; }
.rn-story-year { display: inline-block; font-weight: 700; font-size: 15px; color: var(--rn-navy); background: #e6f1f8; padding: 2px 12px; border-radius: 999px; }
.rn-story-title { margin: 10px 0 12px; font-size: 24px; }
.rn-story-img { margin: 0 0 14px; }
.rn-story-img img { width: 100%; height: auto; border-radius: 14px; display: block; }
.rn-story-body { font-size: 17px; }
.rn-story-body p:last-child { margin-bottom: 0; }
.rn-story-src { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--rn-line); font-size: 14px; color: var(--rn-mute); }
@media (max-width: 600px) { .rn-story-card { padding: 18px; } .rn-story-title { font-size: 20px; } }
