/*!
Theme Name: mirak-hotel
Theme URI: https://www.miraksuites.com/
Author: mirak
Author URI: https://www.miraksuites.com/
Description: 4-star luxury hotel located amidst the beautiful blue waters surrounding the splendid city of Port Sudan.
Version: 1.0.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: mirak_hotel
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, rtl-language-support
*/

/* Theme styles are loaded from assets/css/style.css via wp_enqueue_style */

/* ── Breadcrumb Nav ── */
.breadcrumb__nav {
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: center;
	position: relative;
	z-index: 1;
}
.breadcrumb__nav a {
	color: var(--rts-white);
	transition: var(--transition);
}
.breadcrumb__nav a:hover {
	color: var(--heading-color);
}
.breadcrumb__nav span {
	color: rgba(255, 255, 255, 0.6);
	display: inline-flex;
	align-items: center;
}
.breadcrumb__nav span i {
	font-size: 12px;
	transform: scaleX(-1);
}
.breadcrumb__nav .active {
	color: rgba(255, 255, 255, 0.6);
}

/* ── Language Dropdown ── */
.lang-dropdown {
	position: relative;
}
.lang-dropdown__toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: 1px solid var(--rts-border);
	border-radius: 6px;
	padding: 6px 12px;
	cursor: pointer;
	color: var(--rts-heading);
	font-size: 13px;
	font-weight: 600;
	transition: var(--transition);
}
.lang-dropdown__toggle:hover {
	border-color: var(--heading-color);
}
.lang-dropdown__toggle img {
	width: 20px;
	height: 14px;
	object-fit: cover;
	border-radius: 2px;
}
.lang-dropdown__toggle i {
	font-size: 10px;
	transition: var(--transition);
}
.lang-dropdown:hover .lang-dropdown__toggle i {
	transform: rotate(180deg);
}
.lang-dropdown__menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: var(--rts-white);
	border: 1px solid var(--rts-border);
	border-radius: 6px;
	padding: 4px 0;
	margin: 0;
	list-style: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: var(--transition);
	z-index: 100;
	min-width: 100%;
}
.lang-dropdown:hover .lang-dropdown__menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.lang-dropdown__menu li a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	color: var(--rts-heading);
	font-size: 13px;
	font-weight: 600;
	transition: var(--transition);
}
.lang-dropdown__menu li a:hover {
	background: rgba(171, 138, 98, 0.08);
	color: var(--heading-color);
}
.lang-dropdown__menu li a img {
	width: 20px;
	height: 14px;
	object-fit: cover;
	border-radius: 2px;
}

/* ── Auth Icon + Dropdown ── */
.auth-icon__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: none;
	border: 1px solid var(--rts-border);
	border-radius: 50%;
	cursor: pointer;
	color: var(--rts-heading);
	font-size: 16px;
	transition: var(--transition);
}
.auth-icon__toggle:hover {
	border-color: var(--heading-color);
	color: var(--heading-color);
}
.auth-dropdown {
	position: relative;
}
.auth-dropdown__toggle {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: none;
	border: 1px solid var(--rts-border);
	border-radius: 50%;
	cursor: pointer;
	color: var(--rts-heading);
	font-size: 16px;
	transition: var(--transition);
}
.auth-dropdown__badge {
	position: absolute;
	top: -3px;
	right: -3px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	background: #e74c3c;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.auth-dropdown__toggle:hover {
	border-color: var(--heading-color);
	color: var(--heading-color);
}
.auth-dropdown__menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(8px);
	background: var(--rts-white);
	border: 1px solid var(--rts-border);
	border-radius: 8px;
	padding: 8px 0;
	margin: 0;
	list-style: none;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
	z-index: 100;
	min-width: 160px;
	white-space: nowrap;
}
.auth-dropdown:hover .auth-dropdown__menu {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}
.auth-dropdown__user {
	padding: 8px 16px;
	font-weight: 700;
	color: var(--rts-heading);
	border-bottom: 1px solid var(--rts-border);
	font-size: 14px;
}
.auth-dropdown__menu li a {
	display: block;
	padding: 8px 16px;
	color: var(--rts-heading);
	font-size: 14px;
	transition: var(--transition);
}
.auth-dropdown__menu li a:hover {
	background: rgba(171, 138, 98, 0.08);
	color: var(--heading-color);
}
.auth-dropdown__menu li a i {
	font-size: 13px;
	opacity: 0.7;
}
.auth-dropdown__menu li.auth-dropdown__logout {
	border-top: 1px solid var(--rts-border);
	margin-top: 4px;
	padding-top: 4px;
}

/* ── Header Notification Bell ── */
.mrm-header-notif {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--rts-border);
	border-radius: 50%;
	color: var(--rts-heading);
	transition: var(--transition);
}
.mrm-header-notif:hover {
	border-color: var(--heading-color);
	color: var(--heading-color);
}
.mrm-header-notif__badge {
	position: absolute;
	top: -3px;
	right: -3px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	background: #e74c3c;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* ── Auth Modal Tabs ── */
.auth-tabs {
	display: flex;
	gap: 0;
	border: 1px solid var(--rts-border);
	border-radius: 8px;
	overflow: hidden;
}
.auth-tab {
	padding: 8px 20px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: var(--rts-para);
	transition: var(--transition);
}
.auth-tab.active {
	background: var(--heading-color);
	color: #fff;
}
.auth-tab:not(.active):hover {
	background: rgba(171, 138, 98, 0.08);
}
.auth-pane {
	display: none;
}
.auth-pane.active {
	display: block;
}

/* ── Auth Form Messages ── */
.mirak-form-message {
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
}
.mirak-form-message:empty {
	display: none;
}
.mirak-form-message.msg-success {
	padding: 10px 14px;
	background: rgba(34, 197, 94, 0.1);
	color: #16a34a;
	border: 1px solid rgba(34, 197, 94, 0.3);
}
.mirak-form-message.msg-error {
	padding: 10px 14px;
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
	border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ── Mobile Menu Auth ── */
.offcanvase__auth {
	padding: 20px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin-top: 10px;
}

/* ── Contact Form Validation ── */
.rts__contact__form .form-input .is-invalid {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}
.rts__contact__form .form-input .field-error {
	display: block;
	color: #ef4444;
	font-size: 13px;
	margin-top: 6px;
	padding-right: 2px;
}
.form-message {
	padding: 14px 18px;
	border-radius: 8px;
	margin-top: 16px;
	font-size: 14px;
	font-weight: 600;
}
.form-message--success {
	background-color: rgba(34, 197, 94, 0.1);
	color: #16a34a;
	border: 1px solid rgba(34, 197, 94, 0.3);
}
.form-message--error {
	background-color: rgba(239, 68, 68, 0.1);
	color: #ef4444;
	border: 1px solid rgba(239, 68, 68, 0.3);
}
.rts__contact__form button[disabled] {
	opacity: 0.7;
	cursor: not-allowed;
}

/* ── Room Category Filter ── */
.room__category__filter {
	margin-bottom: 20px;
}

/* ── Room Gallery Lightbox ── */
.room__gallery .row a {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	transition: var(--transition);
}
.room__gallery .row a:hover {
	opacity: 0.85;
}
.room__gallery .row a img {
	transition: var(--transition);
}
.room__gallery .row a:hover img {
	transform: scale(1.05);
}

/* ── Room Details ── */
.room__details .price {
	color: var(--heading-color);
	font-weight: 700;
}
.room__details .price__per__night {
	color: var(--rts-para);
	font-size: 16px;
	font-weight: 400;
}
.room__details .room__title {
	margin-top: 8px;
}
.room__details .room__meta span i {
	color: var(--heading-color);
}
.room__details .room__meta span a {
	color: var(--heading-color);
	font-weight: 600;
}
.room__details .room__description {
	margin-bottom: 30px;
	line-height: 1.8;
}
.room__details .room__image__group .room__image__item img {
	width: 100%;
	height: 280px;
	object-fit: cover;
}

/* ── Booking Card Sidebar Overrides ── */
.rts__booking__form.is__room__details .query__input__icon.is__svg img {
	width: 18px;
	height: 18px;
	opacity: 0.6;
}
.rts__booking__form.is__room__details .query__input.checkbox {
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.rts__booking__form.is__room__details .query__input.checkbox:last-of-type {
	border-bottom: none;
}
.rts__booking__form.is__room__details .query__input.checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--heading-color);
	cursor: pointer;
	flex-shrink: 0;
}
.rts__booking__form.is__room__details .query__input.checkbox label {
	flex: 1;
	cursor: pointer;
	margin: 0;
}
.rts__booking__form.is__room__details .query__input.checkbox span {
	font-size: 13px;
	color: var(--heading-color);
	font-weight: 600;
	white-space: nowrap;
}
.rts__booking__form.is__room__details textarea.form-control {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--rts-border);
	border-radius: 8px;
	font-size: 14px;
	resize: vertical;
	min-height: 80px;
	background: #fff;
}
.rts__booking__form.is__room__details textarea.form-control:focus {
	border-color: var(--heading-color);
	outline: none;
	box-shadow: none;
}
.rts__booking__form.is__room__details .total__price .price {
	color: var(--heading-color);
}

/* ── Taxonomy archive page ── */
.taxonomy-room_category .room__category__filter .fill {
	pointer-events: none;
}

/* ── Room Datepicker ── */
#check__in__rooms,
#check__out__rooms,
#room__check__in,
#room__check__out {
	cursor: pointer;
}
