@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================
   "3lb7r.com" (ع البحر) ESCAPE TO THE SEA Design System
   Coastal Blush Mist #FDEAE3 • Midnight Slate #181A20 • Sunset Coral #E58869
   ========================================================== */

:root {
  --bg-sand: #FAF7F4;
  --bg-blush: #FDEAE3;
  --bg-blush-soft: #FFF5F1;
  --border-blush: #F5DCD3;
  --surface-card: #FFFFFF;
  --border-card: #EFE8E2;
  --primary-dark: #181A20;
  --primary-teal: #0E4C5A;
  --primary-teal-light: #1A6B7C;
  --primary-teal-soft: #FDEAE3;
  --accent-terracotta: #E58869;
  --accent-terracotta-hover: #D47556;
  --text-dark: #181A20;
  --text-muted: #555861;
  --badge-instant: #10B981;
  --badge-verified: #0EA5E9;
  --badge-superhost: #E58869;
}

*, ::before, ::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-width: 0;
  border-style: solid;
  border-color: #EAE8E3;
}

html {
  font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-sand);
  color: var(--text-dark);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* RTL Typography & Direction overrides */
[dir="rtl"] {
  font-family: 'IBM Plex Sans Arabic', 'Alexandria', -apple-system, BlinkMacSystemFont, sans-serif;
  text-align: right;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-sand);
  color: var(--text-dark);
  line-height: 1.5;
}

/* Ambient Diffused Shadows */
.shadow-ambient {
  box-shadow: 0 12px 36px -4px rgba(14, 76, 90, 0.06), 0 4px 16px -2px rgba(0, 0, 0, 0.02);
}
.shadow-ambient-hover:hover {
  box-shadow: 0 20px 45px -8px rgba(14, 76, 90, 0.12), 0 10px 24px -4px rgba(232, 159, 101, 0.08);
  transform: translateY(-2px);
}
.shadow-capsule {
  box-shadow: 0 16px 40px -8px rgba(14, 76, 90, 0.10), 0 0 1px rgba(14, 76, 90, 0.2);
}
.shadow-modal {
  box-shadow: 0 25px 60px -15px rgba(14, 76, 90, 0.25);
}

/* Micro-transitions */
.transition-luxury {
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 4:3 Image Aspect Container */
.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

/* Bento Grid Utilities */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

/* Leaflet Custom Price Marker Pins */
.price-marker-pin {
  background: white;
  border: 1.5px solid #0E4C5A;
  color: #0E4C5A;
  font-weight: 700;
  font-size: 0.825rem;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 6px 16px rgba(14, 76, 90, 0.18);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.price-marker-pin:hover, .price-marker-pin.active {
  background: #0E4C5A;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(14, 76, 90, 0.3);
  z-index: 1000 !important;
}

/* 5-Photo Mosaic Layout */
.mosaic-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 0.75rem;
  border-radius: 1.5rem;
  overflow: hidden;
}
@media (max-width: 768px) {
  .mosaic-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 280px;
  }
  .mosaic-gallery .mosaic-sub {
    display: none;
  }
}
.mosaic-main {
  grid-row: span 2;
  height: 100%;
}
.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.mosaic-item:hover img {
  transform: scale(1.03);
}

/* Custom Scrollbar for Smooth Feel */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F5F4F0;
}
::-webkit-scrollbar-thumb {
  background: #D8D5CC;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B8B3A4;
}

/* Interactive Ripple or Click Scale */
.btn-press:active {
  transform: scale(0.97);
}

/* ==========================================================
   Content Security & Anti-Theft Protection Rules
   - Disables text selection and dragging
   - Blocks print saving
   - Privacy blur shield for screenshot/snipping protection
   ========================================================== */
html, body {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}

img, video {
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
  -webkit-touch-callout: none !important;
}

@media print {
  html, body, main, header, footer, div {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
  }
}

body.privacy-shield-active {
  overflow: hidden !important;
}

body.privacy-shield-active main,
body.privacy-shield-active header,
body.privacy-shield-active footer,
body.privacy-shield-active div:not(#screenshotProtectionOverlay):not(#screenshotProtectionOverlay *) {
  opacity: 0 !important;
  visibility: hidden !important;
  filter: blur(60px) brightness(0) !important;
  pointer-events: none !important;
}

#screenshotProtectionOverlay {
  display: none;
  opacity: 0;
  z-index: 2147483647 !important;
}

body.privacy-shield-active #screenshotProtectionOverlay {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
