/* LOMA Product Cards + homepage sections. Uses the theme's brand tokens with fallbacks. */
:root {
  --lpc-navy: var(--loma-navy-900, #071d2f);
  --lpc-navy-2: var(--loma-navy-700, #123a56);
  --lpc-gold: var(--loma-gold-500, #d1a03b);
  --lpc-gold-ink: #6b4d0f;
  --lpc-cream: var(--loma-cream, #f7f4ec);
  --lpc-ink: var(--loma-ink, #0b2235);
  --lpc-muted: #55656f;
  --lpc-line: var(--loma-line, #dfe5e8);
  --lpc-wa: #128c4a;
  --lpc-radius: 16px;
  --lpc-shadow: 0 10px 30px rgba(7, 29, 47, .09);
  --lpc-ease: 180ms ease;
}

/* ------------------------------------------------------------ cards */
.lpc-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin: 0; padding: 0; }
.lpc-item { min-width: 0; }
@media (min-width: 600px) { .lpc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lpc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } .lpc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Rail: swipeable row on phones, normal grid from tablet up */
@media (max-width: 599px) {
  .lpc-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-block-end: 8px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: thin; }
  .lpc-rail > .lpc-item { flex: 0 0 82%; scroll-snap-align: start; }
}

.lpc-card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--lpc-line); border-radius: var(--lpc-radius); overflow: hidden; transition: box-shadow var(--lpc-ease), transform var(--lpc-ease), border-color var(--lpc-ease); }
.lpc-card:hover { box-shadow: var(--lpc-shadow); border-color: #c9d3d8; }
@media (prefers-reduced-motion: no-preference) { .lpc-card:hover { transform: translateY(-2px); } }
.lpc-card:focus-within { outline: 3px solid var(--lpc-gold); outline-offset: 2px; }

.lpc-media { position: relative; aspect-ratio: 4 / 3; background: #e7ecef; overflow: hidden; }
.lpc-media img.lpc-img, .lpc-media .lpc-media-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lpc-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 58%; background: linear-gradient(to top, rgba(6, 23, 36, .86), rgba(6, 23, 36, 0)); pointer-events: none; }

.lpc-chip { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--lpc-ink); font-size: 13px; font-weight: 600; line-height: 1.2; }
.lpc-price { position: absolute; inset-inline: 14px; inset-block-end: 12px; z-index: 2; color: #fff; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.lpc-price small { flex-basis: 100%; font-size: 12.5px; font-weight: 500; opacity: .92; }
.lpc-price strong { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.lpc-price span { font-size: 14px; font-weight: 600; opacity: .95; }
.lpc-price.is-request strong { font-size: 16px; font-weight: 700; }

.lpc-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; flex: 1; }
.lpc-title { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 700; color: var(--lpc-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lpc-link { color: inherit; text-decoration: none; }
.lpc-link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.lpc-link:focus-visible { outline: none; }
.lpc-desc { margin: 0; color: var(--lpc-muted); font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.lpc-facts { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--lpc-muted); font-size: 13.5px; }
.lpc-facts li { display: inline-flex; align-items: center; gap: 5px; }
.lpc-cta { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--lpc-navy-2); font-weight: 700; font-size: 14.5px; }
.lpc-ico { flex: 0 0 auto; }
[dir="rtl"] .lpc-cta .lpc-ico, .rtl .lpc-cta .lpc-ico { transform: scaleX(-1); }

/* ------------------------------------------------------ destinations */
.lpc-dest { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .lpc-dest { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.lpc-dest-tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--lpc-radius); overflow: hidden; background: var(--lpc-navy-2); color: #fff; text-decoration: none; }
.lpc-dest-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
@media (prefers-reduced-motion: no-preference) { .lpc-dest-tile:hover img { transform: scale(1.04); } }
.lpc-dest-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 23, 36, .85), rgba(6, 23, 36, .05) 60%); }
.lpc-dest-text { position: absolute; z-index: 2; inset-inline: 14px; inset-block-end: 14px; display: grid; gap: 2px; }
.lpc-dest-text strong { font-size: 18px; }
.lpc-dest-text small { font-size: 13px; opacity: .9; }
.lpc-dest-tile:focus-visible { outline: 3px solid var(--lpc-gold); outline-offset: 3px; }

/* ---------------------------------------------------- posts / offers */
.lpc-section { width: 100%; }
.lpc-head { margin-bottom: 22px; }
.lpc-head h2 { margin: 0 0 6px; color: var(--lpc-ink); font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
.lpc-head p { margin: 0; color: var(--lpc-muted); font-size: 16px; }
.lpc-post { position: relative; background: #fff; border: 1px solid var(--lpc-line); border-radius: var(--lpc-radius); overflow: hidden; display: flex; flex-direction: column; }
.lpc-post-media { aspect-ratio: 16 / 9; background: #e7ecef; }
.lpc-post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lpc-post-body { padding: 16px; display: grid; gap: 6px; }
.lpc-post-body time { color: var(--lpc-muted); font-size: 13px; }
.lpc-post-body h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.lpc-post-body p { margin: 0; color: var(--lpc-muted); font-size: 14.5px; line-height: 1.5; }
.lpc-more { margin: 22px 0 0; }
.lpc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15.5px; line-height: 1.2; text-decoration: none; transition: background-color var(--lpc-ease), color var(--lpc-ease); }
.lpc-btn-ghost { color: var(--lpc-navy-2); border: 1.5px solid var(--lpc-navy-2); background: transparent; }
.lpc-btn-ghost:hover, .lpc-btn-ghost:focus-visible { background: var(--lpc-navy-2); color: #fff; }
.lpc-btn:focus-visible { outline: 3px solid var(--lpc-gold); outline-offset: 2px; }

/* ----------------------------------------- homepage (Elementor classes) */
.e-con.loma-h-section, .e-con.loma-h-hero { --flex-wrap: nowrap; }
.e-con.loma-h-section { --padding-top: 56px; --padding-bottom: 56px; --padding-left: 16px; --padding-right: 16px; --content-width: 1240px; --gap: 18px; --row-gap: 18px; }
@media (min-width: 1024px) { .e-con.loma-h-section { --padding-top: 80px; --padding-bottom: 80px; } }
.e-con.loma-h-alt { background-color: var(--lpc-cream); }
.loma-h-eyebrow .elementor-heading-title { color: var(--lpc-gold-ink); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.loma-h-title .elementor-heading-title { color: var(--lpc-ink); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; font-weight: 800; }
.loma-h-sub, .loma-h-sub p { color: var(--lpc-muted); font-size: 16.5px; line-height: 1.6; margin: 0; max-width: 720px; }
.loma-h-btn .elementor-button, .loma-h-btn-ghost .elementor-button, .loma-h-btn-wa .elementor-button { min-height: 48px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15.5px; line-height: 1.2; transition: background-color var(--lpc-ease), color var(--lpc-ease), border-color var(--lpc-ease); }
.loma-h-btn .elementor-button { background: var(--lpc-gold); color: #1b1300; }
.loma-h-btn .elementor-button:hover, .loma-h-btn .elementor-button:focus-visible { background: #b98a2c; color: #120d00; }
.loma-h-btn-wa .elementor-button { background: var(--lpc-wa); color: #fff; }
.loma-h-btn-wa .elementor-button:hover, .loma-h-btn-wa .elementor-button:focus-visible { background: #0e7239; color: #fff; }
.loma-h-btn-ghost .elementor-button { background: transparent; color: var(--lpc-navy-2); border: 1.5px solid var(--lpc-navy-2); }
.loma-h-btn-ghost .elementor-button:hover, .loma-h-btn-ghost .elementor-button:focus-visible { background: var(--lpc-navy-2); color: #fff; }
.elementor-button:focus-visible { outline: 3px solid var(--lpc-gold); outline-offset: 3px; }
.e-con.loma-h-row { --flex-direction: row; --flex-wrap: wrap; --gap: 12px; --justify-content: flex-start; --align-items: center; --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; }

/* Hero */
.e-con.loma-h-hero { position: relative; --min-height: 520px; --justify-content: center; --padding-top: 72px; --padding-bottom: 72px; --padding-left: 16px; --padding-right: 16px; --content-width: 1240px; --gap: 16px; --row-gap: 16px; background-color: var(--lpc-navy); background-size: cover; background-position: center; }
.e-con.loma-h-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6, 23, 36, .92) 0%, rgba(6, 23, 36, .72) 45%, rgba(6, 23, 36, .25) 100%); z-index: 0; }
[dir="rtl"] .e-con.loma-h-hero::before, .rtl .e-con.loma-h-hero::before { background: linear-gradient(260deg, rgba(6, 23, 36, .92) 0%, rgba(6, 23, 36, .72) 45%, rgba(6, 23, 36, .25) 100%); }
.e-con.loma-h-hero > * { position: relative; z-index: 1; }
@media (max-width: 767px) { .e-con.loma-h-hero { --min-height: 0; --padding-top: 44px; --padding-bottom: 40px; } .e-con.loma-h-hero::before { background: rgba(6, 23, 36, .8); } }
.loma-h-hero .loma-h-eyebrow .elementor-heading-title { color: var(--lpc-gold); }
.loma-h-h1 .elementor-heading-title { color: #fff; font-size: clamp(30px, 5vw, 54px); line-height: 1.12; font-weight: 800; max-width: 760px; }
.loma-h-hero .loma-h-sub, .loma-h-hero .loma-h-sub p { color: rgba(255, 255, 255, .9); font-size: 17.5px; }
.loma-h-hero .loma-h-btn-ghost .elementor-button { color: #fff; border-color: rgba(255, 255, 255, .8); }
.loma-h-hero .loma-h-btn-ghost .elementor-button:hover { background: #fff; color: var(--lpc-navy); }
.loma-h-trust ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: rgba(255, 255, 255, .88); font-size: 14.5px; }
.loma-h-trust li { display: inline-flex; align-items: center; gap: 8px; }
.loma-h-trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lpc-gold); flex: 0 0 auto; }

/* Privilege */
.e-con.loma-h-priv-wrap { --flex-direction: column; --gap: 28px; --align-items: center; }
@media (min-width: 900px) { .e-con.loma-h-priv-wrap { --flex-direction: row; } }
.loma-h-priv-img img { border-radius: var(--lpc-radius); max-width: 320px; width: 100%; height: auto; box-shadow: var(--lpc-shadow); }

/* Why choose */
.e-con.loma-h-why-grid { --flex-direction: row; --flex-wrap: wrap; --gap: 16px; --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; }
.loma-h-why { flex: 1 1 240px; background: #fff; border: 1px solid var(--lpc-line); border-radius: var(--lpc-radius); padding: 20px; }
.loma-h-why .elementor-icon-box-title { margin: 0 0 6px; color: var(--lpc-ink); font-size: 17px; font-weight: 700; }
.loma-h-why .elementor-icon-box-description { color: var(--lpc-muted); font-size: 15px; line-height: 1.55; margin: 0; }
.loma-h-why .elementor-icon-box-wrapper::before { content: ""; display: block; width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 12px; background: var(--lpc-gold) center / 22px no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1300' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* FAQ (Elementor accordion) */
.loma-h-faq .elementor-accordion .elementor-accordion-item { border: 1px solid var(--lpc-line); border-radius: 12px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.loma-h-faq .elementor-tab-title { padding: 16px 18px; font-size: 16px; font-weight: 700; color: var(--lpc-ink); }
.loma-h-faq .elementor-tab-title a { color: inherit; }
.loma-h-faq .elementor-tab-content { padding: 0 18px 16px; color: var(--lpc-muted); font-size: 15.5px; line-height: 1.6; border-top: 0; }

/* Final CTA */
.e-con.loma-h-cta { background: linear-gradient(135deg, var(--lpc-navy-2), var(--lpc-navy)); border-block-end: 3px solid var(--lpc-gold); --align-items: center; text-align: center; }
/* an offers section with no valid offer collapses entirely */
.e-con.loma-h-offers:not(:has(.lpc-card)), .e-con.loma-h-posts:not(:has(.lpc-post)) { display: none; }
.loma-h-cta .loma-h-title .elementor-heading-title { color: #fff; }
.loma-h-cta .loma-h-sub, .loma-h-cta .loma-h-sub p { color: rgba(255, 255, 255, .85); margin-inline: auto; }
.loma-h-cta .e-con.loma-h-row { --justify-content: center; }
.loma-h-cta .loma-h-btn-ghost .elementor-button { color: #fff; border-color: rgba(255, 255, 255, .8); }

/* Arabic typography */
/* fonts: the theme's Manrope (EN) and Cairo (AR) everywhere, never Elementor kit fonts */
body[class*="elementor-kit-"] { font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; }
html[dir="rtl"] body[class*="elementor-kit-"], body.rtl[class*="elementor-kit-"] { font-family: "Cairo", Tahoma, Arial, sans-serif; }
.lpc-card, .lpc-dest, .lpc-post, [class*="loma-h-"], [class*="loma-h-"] .elementor-heading-title, [class*="loma-h-"] .elementor-button, [class*="loma-h-"] .elementor-icon-box-title, [class*="loma-h-"] .elementor-tab-title, [class*="loma-h-"] .elementor-accordion-title, [class*="loma-h-"] .elementor-widget-text-editor { font-family: inherit; }
[dir="rtl"] .loma-h-eyebrow .elementor-heading-title { letter-spacing: 0; text-transform: none; }

@media (prefers-reduced-motion: reduce) { .lpc-card, .lpc-dest-tile img { transition: none; } }
/* phone numbers keep their left-to-right order inside Arabic pages */
[dir="rtl"] a[href^="tel:"] strong, [dir="rtl"] a[href^="tel:"]:not(:has(*)) { direction: ltr; unicode-bidi: isolate; }
