/* Yanbu House v2 additions on top of the current site design (css/style.css, css/style-rtl.css, en/css/style.css).
   Same palette: blue #2c5aa0, coral #ff6b6b, WhatsApp green #25d366. Mobile first. */
:root {
  --yh-blue: #2c5aa0;
  --yh-blue-dark: #224a85;
  --yh-coral: #ff6b6b;
  --yh-ink: #333;
  --yh-muted: #666;
  --yh-line: #e9ecef;
  --yh-soft: #f6f8fc;
  --yh-ok: #12804a;
  --yh-ok-bg: #e6f6ed;
  --yh-out: #b3261e;
  --yh-out-bg: #fdecea;
  --yh-wa: #25d366;
}

/* Brand text in the header (not an H1: each page has its own single H1) */
.nav-brand .yh-brand { display: block; margin: 0; color: var(--yh-blue); font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
@media (min-width: 769px) { .nav-brand .yh-brand { font-size: 1.8rem; } }
.nav-menu a.yh-lang { font-weight: 700; }
html[lang="en"] .nav-menu a.yh-lang { font-family: 'Cairo', sans-serif; }

/* Single H1 of inner pages sits in .page-header; keep long titles readable on phones */
.page-header h1 { line-height: 1.35; }
@media (max-width: 576px) { .page-header h1 { font-size: 1.7rem; } .page-header { padding: 105px 0 40px; } }
.yh-crumbs { font-size: .9rem; opacity: .9; margin-bottom: .6rem; }
.yh-crumbs a { color: #fff; text-decoration: underline; }

/* Sections */
.yh-section { padding: 3rem 0; }
.yh-section-soft { background: var(--yh-soft); }
.yh-lead { font-size: 1.08rem; color: var(--yh-muted); line-height: 1.9; margin-bottom: 1.5rem; }
.yh-section h2 { color: var(--yh-blue); font-size: 1.6rem; margin-bottom: 1rem; line-height: 1.4; }
.yh-section h3 { color: var(--yh-ink); }
.yh-split { display: grid; gap: 2rem; }
@media (min-width: 992px) { .yh-split { grid-template-columns: 1.4fr 1fr; align-items: start; } .yh-section { padding: 4rem 0; } }
.yh-check { padding-inline-start: 1.2rem; margin: 0 0 1rem; color: var(--yh-ink); }
.yh-check li { margin-bottom: .4rem; line-height: 1.8; }

/* Icons */
.yh-i { width: 1.15em; text-align: center; }
.btn .yh-i { margin-inline-end: .35rem; }
.section-title .yh-i, .yh-section h2 .yh-i { color: var(--yh-coral); }

/* Buttons: same pill look as the site, one line, consistent height */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; line-height: 1.2; }
.btn-whatsapp { background: var(--yh-wa); color: #fff !important; }
.btn-whatsapp:hover { background: #1fb457; }
.btn-call { background: #fff; color: var(--yh-blue) !important; border: 2px solid var(--yh-blue); }
.btn-call:hover { background: var(--yh-blue); color: #fff !important; }
.btn-sm { padding: 8px 18px; min-height: 40px; font-size: .92rem; }

/* Availability, price, discount */
.yh-badge { display: inline-block; font-size: .82rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; line-height: 1.5; }
.yh-badge-ok { background: var(--yh-ok-bg); color: var(--yh-ok); }
.yh-badge-out { background: var(--yh-out-bg); color: var(--yh-out); }
.yh-badge-muted { background: var(--yh-soft); color: var(--yh-muted); }
.yh-price { font-weight: 700; color: var(--yh-blue); font-size: 1.1rem; margin-top: .4rem; }
.yh-discount { font-size: .88rem; color: var(--yh-ok); margin-top: .2rem; }

/* Apartment cards (current site .apartment-card) */
.apartment-card { display: flex; flex-direction: column; }
.apartment-card .apartment-image { position: relative; display: block; }
.apartment-card .apartment-image img { display: block; }
.apartment-card .yh-card-badge { position: absolute; top: 12px; inset-inline-start: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.apartment-card .apartment-info { display: flex; flex-direction: column; flex: 1; }
.apartment-card .apartment-info h3 a { color: inherit; text-decoration: none; }
.apartment-card .apartment-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .6rem; padding-top: 1rem; }
.apartment-card .apartment-actions .btn { flex: 1 1 auto; padding-inline: 18px; }

/* "Available now" list */
.yh-units { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.yh-unit { background: #fff; border-radius: 15px; box-shadow: 0 6px 20px rgba(0,0,0,.07); padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.yh-unit-title { font-weight: 700; margin-top: 6px; color: var(--yh-ink); }
.yh-unit-title a { color: inherit; text-decoration: none; }
.yh-unit-title .yh-i { color: var(--yh-blue); }
.yh-unit-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.yh-unit-actions .btn { padding-inline: 18px; }
.yh-empty { background: #fff; border-radius: 15px; box-shadow: 0 6px 20px rgba(0,0,0,.07); padding: 22px; }
.yh-empty h3 { color: var(--yh-blue); margin-bottom: .5rem; }

/* Contacts (numbers are never printed: buttons only) */
.yh-contacts { display: grid; gap: 12px; margin-top: 1rem; }
.yh-contact { background: #fff; border-radius: 15px; box-shadow: 0 6px 20px rgba(0,0,0,.07); padding: 14px 16px; }
.yh-contact-name { font-weight: 700; color: var(--yh-blue); margin-bottom: .6rem; }
.yh-contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.yh-contact-actions .btn { flex: 1 1 140px; }
@media (min-width: 768px) { .yh-contacts { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }

/* Type details page */
.yh-gallery-main img { width: 100%; height: auto; border-radius: 15px; display: block; aspect-ratio: 680 / 500; object-fit: cover; }
.yh-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.yh-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; }
.yh-thumbs button[aria-current="true"] { border-color: var(--yh-coral); }
.yh-thumbs img { width: 100%; height: auto; aspect-ratio: 680 / 500; object-fit: cover; display: block; }
.yh-box { background: #fff; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.08); padding: 20px; }
.yh-box h2 { font-size: 1.3rem; }
.features-grid .feature-item .yh-i { color: var(--yh-blue); }

/* Forms (on top of .form-group styles of the site) */
.yh-form { background: #fff; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.08); padding: 20px; }
.yh-form-note { background: var(--yh-soft); border-radius: 10px; padding: 10px 12px; font-size: .92rem; color: var(--yh-ink); margin-bottom: 1rem; }
.yh-field { display: block; margin: 0 0 14px; width: 100%; }
.yh-field > span { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--yh-blue); }
.yh-field input, .yh-field select, .yh-field textarea { display: block; width: 100%; height: 46px; min-height: 46px; padding: 10px 14px; border: 2px solid var(--yh-line);
  border-radius: 8px; background: #fff; font: inherit; font-size: 16px; color: var(--yh-ink); line-height: 1.4; text-align: start; }
.yh-field textarea { height: auto; min-height: 100px; resize: vertical; line-height: 1.6; }
.yh-field input:focus, .yh-field select:focus, .yh-field textarea:focus { outline: none; border-color: var(--yh-blue); }
.yh-field input[readonly] { background: #fff; cursor: pointer; }
.yh-field input[type="date"] { -webkit-appearance: none; appearance: none; direction: ltr; unicode-bidi: isolate; line-height: 44px; padding-top: 0; padding-bottom: 0; }
html[dir="rtl"] .yh-field input[type="date"] { text-align: right; }
.yh-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 576px) { .yh-row { grid-template-columns: 1fr 1fr; } }
.yh-check-opt { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; font-size: .95rem; color: var(--yh-ink); cursor: pointer; }
.yh-check-opt input { width: 18px; height: 18px; min-height: 0; margin-top: 4px; padding: 0; flex: 0 0 auto; }
fieldset.yh-field { border: 0; padding: 0; }
.yh-form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.yh-form-actions .btn { flex: 1 1 220px; }
.yh-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.g-recaptcha { margin: 6px 0 12px; }
.yh-alert { border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; font-weight: 600; line-height: 1.7; }
.yh-alert-ok { background: var(--yh-ok-bg); color: #0b5e33; }
.yh-alert-err { background: var(--yh-out-bg); color: var(--yh-out); }
.flatpickr-calendar { font-family: inherit; }
.swal2-popup { font-family: inherit; }

/* Map */
.yh-map { width: 100%; height: 320px; border: 0; border-radius: 15px; display: block; }
@media (min-width: 768px) { .yh-map { height: 420px; } }

/* Comparison table */
.yh-table-wrap { overflow-x: auto; border-radius: 15px; box-shadow: 0 6px 20px rgba(0,0,0,.07); background: #fff; }
.yh-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.yh-table th, .yh-table td { padding: 12px 14px; border-bottom: 1px solid var(--yh-line); text-align: start; vertical-align: middle; }
.yh-table thead th { background: var(--yh-blue); color: #fff; font-weight: 600; }
.yh-table tbody th a { color: var(--yh-blue); text-decoration: none; font-weight: 700; }

/* Corporate housing card (English) */
.yh-corp { margin-top: 2rem; background: #fff; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.08); border-inline-start: 5px solid var(--yh-coral);
  padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.yh-corp-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--yh-soft); color: var(--yh-blue); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.yh-corp h2 { font-size: 1.3rem; margin: 0 0 6px; color: var(--yh-blue); }
.yh-corp p { margin: 0; color: var(--yh-muted); }
@media (min-width: 768px) { .yh-corp { flex-direction: row; align-items: center; } .yh-corp-text { flex: 1; } }

/* Footer: social icons */
.footer .social-links a { text-decoration: none; }
.footer-section .yh-foot-contact { display: flex; flex-wrap: wrap; gap: 14px; margin: .3rem 0 .8rem; }
.footer-section .yh-foot-contact a { color: #fff; text-decoration: none; white-space: nowrap; }
.footer-section .yh-foot-contact a:hover { color: var(--yh-coral); }
.footer-section .yh-foot-name { font-weight: 600; color: #ddd; margin-bottom: .2rem; }

/* Hero: only one H1 on the home page (other slides use a styled div) */
.hero-content .hero-title { display: block; white-space: normal; overflow-wrap: anywhere; }

/* Menu button is a real <button> (accessible): keep the look of the current design */
.hamburger { background: none; border: 0; }
/* Hero on phones: arrows hidden (dots remain), room for the dots under the buttons */
@media (max-width: 576px) {
  .hero-nav { display: none; }
  .hero-content { padding-bottom: 2.5rem; }
  .hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
}

/* Cards: two photos side by side (same idea as the current site's English cards) */
.apartment-card .apartment-images { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.apartment-card .apartment-images .apartment-image { height: auto; overflow: hidden; }
.apartment-card .apartment-images img { width: 100%; height: 150px; object-fit: cover; display: block; border-radius: 0; }
@media (min-width: 576px) { .apartment-card .apartment-images img { height: 190px; } }
@media (min-width: 992px) { html[lang="en"] .apartment-card .apartment-images img { height: 260px; } }

/* English menu has one more link (For Companies): keep links on one line on medium screens */
.nav-menu a, .nav-brand .yh-brand { white-space: nowrap; }
@media (min-width: 769px) and (max-width: 1199px) {
  html[lang="en"] .nav-menu { gap: 1.1rem; }
  html[lang="en"] .nav-menu a { font-size: .92rem; }
  html[lang="en"] .nav-brand .yh-brand { font-size: 1.4rem; }
}

/* Footer on phones: one centered column with consistent spacing (desktop layout unchanged) */
.footer-bottom a { color: inherit; text-decoration: underline; }
@media (max-width: 768px) {
  .footer .footer-content { display: grid; grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer .footer-section { text-align: center; }
  .footer .footer-section h3, [dir="rtl"] .footer .footer-section h3 { justify-content: center; }
  .footer .footer-section h4 { margin-bottom: .8rem; }
  .footer .footer-section p { text-align: center; line-height: 1.8; }
  .footer .footer-section ul { padding: 0; list-style: none; }
  .footer .footer-section ul li { text-align: center; margin-bottom: .55rem; }
  .footer .social-links { justify-content: center; display: flex; gap: .8rem; }
  .footer .yh-foot-name { text-align: center; }
  .footer .yh-foot-contact { justify-content: center; gap: 22px; }
  .footer .footer-section p .yh-i, .footer .yh-foot-contact .yh-i { margin-inline-end: .35rem; }
  .footer .footer-bottom { text-align: center; }
  .footer .footer-bottom p { line-height: 1.9; }
}
@media (max-width: 768px) {
  /* style-rtl.css forces right alignment with !important on these headings */
  .footer .footer-section h3, .footer .footer-section h4,
  [dir="rtl"] .footer .footer-section h3, [dir="rtl"] .footer .footer-section h4 { text-align: center !important; justify-content: center !important; }
}
