/* DEYNU 17.0.3.07 | Mobile property detail / Android WebView / installed PWA
   Loaded ONLY by property detail pages; desktop remains unchanged. */
.deynu360-title-tour{gap:6px}
.deynu360-gallery-cta{display:none}
@media (max-width:760px){
  /* Preserve readable title hierarchy; prevent large action buttons shrinking the title. */
  main.container:has(> .property-detail-page){margin-top:8px!important;padding-inline:12px!important;max-width:100%!important}
  .property-detail-page{min-width:0!important;padding-bottom:158px!important}
  .property-detail-page.has-site-bottom-nav{padding-bottom:158px!important}
  .property-titlebar{margin:0 0 14px!important;padding:0!important}
  .property-breadcrumb{font-size:10.5px!important;line-height:1.5!important;gap:5px!important;margin:0 0 9px!important;opacity:.86}
  .property-title-row{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:9px!important}
  .property-title-copy{max-width:100%!important;min-width:0!important;width:100%!important}
  .property-title-copy h1{font-size:clamp(20px,5.25vw,23px)!important;line-height:1.48!important;letter-spacing:0!important;font-weight:800!important;max-width:100%;text-wrap:pretty;overflow-wrap:break-word}
  .property-title-meta{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;align-items:center!important;gap:4px 7px!important;font-size:11px!important;line-height:1.55!important;margin:6px 0 1px!important;color:#64776d!important}
  .property-rating-link{font-size:11px!important;font-weight:650!important}
  .property-title-actions{width:100%!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;flex-wrap:nowrap!important;margin:0!important}
  .property-title-actions .deynu360-title-tour{display:none!important}
  .property-title-actions .property-save-form{width:auto!important;flex:none!important;display:block!important;margin:0!important}
  .property-title-actions .property-title-action:not(.deynu360-title-tour){box-sizing:border-box!important;min-height:40px!important;max-height:42px!important;min-width:40px!important;width:auto!important;padding:7px 12px!important;border-radius:12px!important;background:#fff!important;border:1px solid #dce7e2!important;box-shadow:0 2px 7px rgba(24,66,51,.035)!important;color:#205b4a!important;font-weight:750!important;line-height:1.2!important;white-space:nowrap!important}
  .property-title-actions [data-property-share]{font-size:0!important;gap:6px!important}
  .property-title-actions [data-property-share] span{font-size:18px!important;line-height:1!important}
  .property-title-actions [data-property-share]::after{content:'اشتراک';font-size:11px!important;line-height:1.2}
  .property-title-actions .property-title-action.deynu-property-detail-save{font-size:0!important;gap:6px!important}
  .property-title-actions .deynu-property-detail-save [data-favorite-label]{font-size:11px!important;line-height:1.2!important}
  .property-title-actions .deynu-favorite-icon,.property-title-actions .deynu-favorite-icon svg{width:19px!important;height:19px!important;flex:none!important}
  .property-title-actions .deynu-property-detail-save.is-saved{background:#fff3f4!important;border-color:#e9bcc4!important;color:#b04459!important}
  /* Gallery retains horizontal swipe and photography layout. The tour CTA is separate from image-tile buttons. */
  .property-boutique-gallery{margin-top:0!important;margin-bottom:11px!important;position:relative!important}
  .property-boutique-gallery-grid{height:clamp(260px,83vw,348px)!important;min-height:0!important;border-radius:18px!important;scroll-snap-type:x mandatory!important}
  .property-boutique-gallery-grid .property-gallery-tile{height:100%!important;min-height:0!important;border-radius:17px!important;overflow:hidden!important}
  .property-boutique-gallery-grid .property-gallery-tile img{width:100%!important;height:100%!important;object-fit:cover!important}
  .deynu360-gallery-cta{position:absolute;right:13px;top:13px;z-index:25;display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:43px;max-width:calc(100% - 26px);padding:8px 13px;border:1px solid rgba(255,255,255,.65);border-radius:999px;background:rgba(15,77,68,.95);color:#fff!important;text-decoration:none;font-size:12px;font-weight:800;white-space:nowrap;line-height:1.2;box-shadow:0 5px 18px rgba(0,34,28,.25);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);touch-action:manipulation}
  .deynu360-gallery-cta:focus-visible{outline:3px solid #fff;outline-offset:2px}
  .deynu360-gallery-cta b{font-size:13px;letter-spacing:.01em;direction:ltr;unicode-bidi:isolate}
  .deynu360-gallery-cta-icon{width:23px;height:23px;display:inline-grid;place-items:center;flex:none;border-radius:50%;background:rgba(255,255,255,.18);font-size:15px;line-height:1}
  .property-gallery-mobile-hint{margin:7px 3px 0!important;font-size:10.5px!important;color:#72817a!important}
  .property-gallery-all{border-radius:999px!important;min-height:39px!important;padding:7px 10px!important;font-size:11px!important}
  /* The booking bar sits immediately above a compact 5-tab nav. No overlapping content. */
  .property-detail-page .property-mobile-booking-bar,
  .property-detail-page .property-mobile-booking-bar.has-bottom-nav{
    display:grid!important;grid-template-columns:minmax(0,1fr) minmax(132px,1fr)!important;
    position:fixed!important;z-index:245!important;left:9px!important;right:9px!important;
    bottom:calc(65px + env(safe-area-inset-bottom,0px))!important;
    min-height:65px!important;max-height:78px!important;gap:8px!important;padding:8px 10px!important;
    border-radius:17px!important;background:rgba(255,255,255,.98)!important;
    box-shadow:0 7px 24px rgba(26,54,43,.13)!important;border:1px solid #dce6df!important;
  }
  .property-detail-page .property-mobile-booking-price{padding-inline:2px!important;min-width:0!important;line-height:1.25!important}
  .property-detail-page .property-mobile-booking-price small{font-size:10px!important;line-height:1.3!important;margin:0!important}
  .property-detail-page .property-mobile-booking-price strong{font-size:clamp(14px,4vw,18px)!important;font-weight:850!important;white-space:nowrap!important}
  .property-detail-page .property-mobile-booking-price strong span{font-size:10px!important}
  .property-detail-page .property-mobile-booking-cta{min-height:44px!important;padding:9px 11px!important;border-radius:12px!important;font-size:12px!important;font-weight:800!important;white-space:nowrap!important;text-align:center!important}
  /* Existing bottom nav: preserve actual five links and 44px hit targets. */
  .mobile-bottom-nav{box-sizing:border-box!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:260!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:start!important;height:calc(59px + env(safe-area-inset-bottom,0px))!important;min-height:59px!important;padding:4px 5px max(4px,env(safe-area-inset-bottom,0px))!important;margin:0!important;border-top:1px solid #e2e9e4!important;background:rgba(255,255,255,.985)!important;box-shadow:0 -3px 15px rgba(20,47,38,.045)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
  .mobile-bottom-nav a{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:1px!important;height:49px!important;min-height:49px!important;padding:3px 1px!important;margin:0!important;border-radius:10px!important;font-size:10.5px!important;font-weight:650!important;line-height:1.1!important;color:#64746c!important;text-decoration:none!important;white-space:nowrap!important;touch-action:manipulation}
  .mobile-bottom-nav a::before{content:'';display:block;width:21px;height:21px;flex:none;background-repeat:no-repeat;background-size:contain;background-position:center;opacity:.9}
  .mobile-bottom-nav a:nth-child(1)::before{background-image:url('/public/assets/deynu-nav-home-170307.svg')}
  .mobile-bottom-nav a:nth-child(2)::before{background-image:url('/public/assets/deynu-nav-discover-170307.svg')}
  .mobile-bottom-nav a:nth-child(3)::before{background-image:url('/public/assets/deynu-nav-bookings-170307.svg')}
  .mobile-bottom-nav a:nth-child(4)::before{background-image:url('/public/assets/deynu-nav-wallet-170307.svg')}
  .mobile-bottom-nav a:nth-child(5)::before{background-image:url('/public/assets/deynu-nav-profile-170307.svg')}
  .mobile-bottom-nav a:focus-visible{outline:2px solid #0b917a!important;outline-offset:-1px!important}
  .mobile-bottom-nav a:active,.mobile-bottom-nav a.is-active{background:#e9f4ee!important;color:#145e47!important}
  /* Keep mobile site header clear and balanced without changing desktop/nav logic. */
  .site-header{min-height:65px!important;padding-block:9px!important}
  .site-header .brand{font-size:21px!important}
  .site-header .header-icon-link,.site-header .site-menu-toggle{min-width:40px!important;min-height:40px!important;padding:7px!important;border-radius:12px!important}
}
@media (max-width:370px){
  .property-title-copy h1{font-size:20px!important}
  .property-boutique-gallery-grid{height:262px!important}
  .deynu360-gallery-cta{font-size:11px;padding:7px 10px}
  .property-mobile-booking-bar{gap:6px!important}
  .property-detail-page .property-mobile-booking-cta{font-size:11px!important;padding-inline:7px!important}
}
@media (prefers-reduced-motion:reduce){
  .deynu360-gallery-cta,.mobile-bottom-nav a,.property-title-action{transition:none!important;animation:none!important}
}
