/* Viewport değişkenleri */
:root {
  --app-h: 100dvh;
}
@supports not (height: 100dvh) {
  :root { --app-h: 100vh; }
}
/* Kök */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;          /* 100vw DEĞİL */
  height: var(--app-h); /* 100vh yerine */
  overflow-x: hidden;
}

/* Harita */
#map {
  /* width: 100vw;  -> yatay kaydırma sebebi */
  width: 100%;
  height: var(--app-h);
  position: absolute;
  inset: 0;             /* top:0; right:0; bottom:0; left:0; */
  overscroll-behavior: contain;
}

   
    /*** detailPanel*************************/
  /* Offcanvas panel (Bootstrap override) */
  #detailPanel {
    width: min(400px, 100%);     /* 100vw kullanma */
    max-width: 100%;
    height: var(--app-h);
    background: #fff;
    position: fixed; right: 0; top: 0; z-index: 9999;
    display: flex; flex-direction: column;
    box-shadow: -4px 0 18px rgba(0,0,0,.09);
    border-left: 1px solid #eee;
  }


/* Panel gövdesi ve alt buton yerleşimi */
.panel {
  display: flex;
  flex-direction: column;
  height: var(--app-h);   /* 100vh -> var(--app-h) */
  width: 100%;
  max-width: 100%;
  background: #fff;
  box-shadow: 0 3px 32px #1e406625;
  overflow: hidden;       /* Scroll sadece .panel-body’de */
  position: relative;
}


    .panel-head { display:flex; align-items:center; gap:8px; padding:20px 20px 8px 20px; }
    .panel-head h5 { flex:1; font-size:1.23rem; font-weight:700; margin:0; }
    .panel-head .btn-close { opacity:.7; }


/* İçerik sadece burada scroll olur */
.panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 10px 0 10px;
  background: #fff;

  /* Alttaki sabit booking butonuna yer aç */
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}


    .video-box { position:relative; width:100%; aspect-ratio:16/9; margin-bottom:8px; }
    .video-box img { width:100%; height:100%; object-fit:cover; border-radius:12px;}
    .video-play-btn {
      position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
      background:rgba(50,76,232,0.90); color:#fff; border-radius:50%; width:64px; height:64px;
      display:flex; align-items:center; justify-content:center; font-size:2.3rem;
      box-shadow:0 2px 10px rgba(0,0,0,0.09); border:none; cursor:pointer; transition:.14s;
    }
    .video-label {
      position:absolute; left:12px; bottom:12px; background:rgba(0,0,0,0.68);
      color:#fff; font-size:.99em; border-radius:7px; padding:1px 11px 2px 9px; font-weight:500;
      letter-spacing:.01em;
    }
    /* ANA AKSİYON SİMGELERİ */
    .panel-actions { display:flex; gap:10px; margin:13px 0 8px 0; justify-content:left;}
    .panel-actions .icon-btn {
      width:40px; height:40px; border-radius:10px; border:1.6px solid #e6e6ea; background:#fff;
      display:flex; align-items:center; justify-content:center; font-size:1.22rem; color:#24334a;
      transition:.16s; cursor:pointer; position:relative; text-decoration:none;
    }
    .panel-actions .icon-btn.active,
    .panel-actions .icon-btn:hover {
      border-color:#357dfa; color:#357dfa; background:#f2f7ff;
    }
    .panel-actions .icon-btn .fa-street-view {color:#0ab5d6;}
    .panel-actions .icon-btn .fa-route {color:#357dfa;}
    .panel-actions .icon-btn .fa-bookmark {color:#5e6987;}
    .panel-actions .icon-btn .fa-info {color:#ae881f;}

    /* Hap bilgi */
    .info-badges .info-chip {
      background: #f4f8fc;
      color: #24334a;
      border-radius: 9px;
      padding: 11px 13px 11px 13px;
      font-size: 1.03em;
      margin-bottom: 8px;
      display: flex; align-items: center; font-weight: 500;
      box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    }
    .info-badges .info-chip i { margin-right:8px; font-size:1.18em;} 
    /* Sekmeler */
    .nav-tabs { border-bottom:1.5px solid #eee; margin-bottom:14px;}
    .nav-tabs .nav-link { border:none; font-weight:600; color:#24334a; font-size:1.03em; }
    .nav-tabs .nav-link.active { color:#357dfa; background:transparent; border-bottom:2.5px solid #357dfa; }
    .booknow-tab {
      background: #22a761 !important;
      color: #fff !important;


      border: none !important;
      display: flex;
      align-items: center;
      transition: background .13s;
    }
    .booknow-tab i {
      margin-right: 6px;

    }
    .booknow-tab:hover,
    .booknow-tab:focus {
      background: #18894d !important;
      color: #fff !important;
    }


    /* Paylaşım */
    .share-row {margin-top:8px;}
    .share-row a {margin-right:8px; font-size:1.19em;}
    /* Uyarı/İpucu */
    .alert-info { font-size:.99em; border-radius:8px; }
    @media (max-width:480px) {
      #placePanel {width:100vw !important; border-radius:0; border-left:none;}
      .info-badges .info-chip { font-size:1.05em; }
    }
       
/* Alt sabit buton */
.book-now-btn {
  position: sticky;       /* panel içindeyken hep görünür */
  bottom: 0;
  left: 0; right: 0;

  display: flex;
  align-items: center; justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;       /* bir tık yükselttim, rahat dokunma */
  background: #22a761;
  color: #fff;
  font-size: 1.09em; font-weight: 700;
  border: none; border-radius: 0;
  box-shadow: 0 -1.5px 10px #21c97c12;
  text-decoration: none;
  margin: 0; padding: 0;

  /* iPhone alt çentik için */
  padding-bottom: env(safe-area-inset-bottom, 0px);

  transition: background .12s;
  cursor: pointer;
}

    .book-now-btn i {
      font-size: 1.10em;
      vertical-align: middle;
      margin-right: 7px;
    }
.book-now-btn:hover,
.book-now-btn:focus { background: #18894d; color: #fff; }

/* Başlık ve sekmeler aynı kalsın; ufak mobil düzeltmesi */
@media (max-width: 480px) {
  /* id seçici #placePanel yazmışsın; seninki #detailPanel.
     Genişlik kontrolünü zaten yukarıda çözdük, bunu silebilirsin. */
  .info-badges .info-chip { font-size: 1.05em; }
}

/* Yatay taşma sebebi olabilecek yaygın kaynaklar */
img, video, canvas { max-width: 100%; height: auto; }

#tab-booknow .btn-booknow {
  background: #34a853;
  border: none;
  color: #fff;
  font-weight: 500; /* daha ince */
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 10px rgba(52, 168, 83, 0.15);
  transition: all 0.15s ease;
}

#tab-booknow .btn-booknow i {
  font-size: 18px;
}

#tab-booknow .btn-booknow:hover {
  background: #2d8e47;
  transform: translateY(-1px);
}

#tab-booknow .btn-booknow:active {
  transform: translateY(0);
}

#tab-booknow .btn-hotels {
  background: #fff;
  color: #34a853;
  border: 1px solid #34a853;
  box-shadow: none;
}

#tab-booknow .btn-hotels:hover {
  background: #eaf6ed;
}




    /************************************************************** */ yan panel bitiş */
      .leaflet-popup-content-wrapper {
        border-radius: 15px !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
        padding:0px;
        background: none !important;
      }
      .leaflet-popup-content {
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: auto;
      }
      .leaflet-popup-content-wrapper,
      .leaflet-popup-tip,
      .leaflet-popup-tip-container {
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        display: block !important;
      }
      .leaflet-popup-tip,
      .leaflet-popup-tip-container {
        display: none !important;
      }

    
        .card-custom {
            width: 220px; /* Yeni genişlik */
      
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* Daha belirgin gölge */
            position: relative;
            background-color: #fff; /* Beyaz kart arka planı */
            border: none; /* Kenarlık yok */
        }
        .card-img-top-custom {
            height: 110px; /* Genişliğe göre ayarlanmış yükseklik */
            object-fit: cover;
            position: relative;
            width: 100%; /* Resmin kart genişliğini kaplaması için */
            display: block; /* Altında boşluk olmaması için */
            margin:0px;
        }
        .icon-overlay {
            position: absolute;
            top: 6px; /* Görüntüye göre ayarlandı */
            left: 6px; /* Görüntüye göre ayarlandı */
            background-color: rgba(255, 255, 255, 0.9); /* Daha opak arka plan */
            border-radius: 50%;
            width: 24px; /* Boyut ayarı */
            height: 24px; /* Boyut ayarı */
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1rem;
            color: #333;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Hafif gölge */
        }
        .icon-overlay i {
            color: #555; /* Icon rengi */
        }
        .top-right-icons {
            position: absolute;
            top: 6px; /* Görüntüye göre ayarlandı */
            right: 6px; /* Görüntüye göre ayarlandı */
            display: flex;
            gap: 8px; /* İkonlar arası boşluk */
        }
        .top-right-icons .icon {
            background-color: rgba(255, 255, 255, 0.9); /* Daha opak arka plan */
            border-radius: 50%;
            width: 24px; /* Boyut ayarı */
            height: 24px; /* Boyut ayarı */
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1rem;
            color: #333;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Hafif gölge */
        }
        .top-right-icons .icon i {
             color: #555; /* Icon rengi */
             cursor:pointer;
        }
        /* Özel icon dönüşleri veya stilleri */
        .top-right-icons .icon.toggle i {
            transform: rotate(90deg); /* Toggle icon için dönüş */
            font-size: 1rem; /* Boyut ayarı */
        }
        .top-right-icons .icon.share i {
             font-size: 1rem; /* Boyut ayarı */
        }
        .top-right-icons .icon.check-mark i {
             font-size: 1rem; /* Boyut ayarı */
             color: #0d6efd; /* Mavi tik rengi */
        }
       .top-right-icons .icon.toggle {
            transform: rotate(90deg); /* Adjust for the toggle icon's appearance */
        }   
        .direction-button {
            position: absolute;
            top: -26px; /* Kart gövdesine göre yukarıya doğru kaydırıldı */
            right: 5px; /* Sağdan boşluk */
            width: 40px; /* Boyut ayarı */
            height: 40px; /* Boyut ayarı */
            border-radius: 50%;
            background-color: #0d6efd; /* Bootstrap primary blue */
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 3px 6px rgba(0,0,0,0.25); /* Daha belirgin gölge */
            color: white;
            font-size: 1.4rem; /* Icon boyutu */
        }
        .direction-button a{color: white;}
        .card-body-custom {
            padding: 7px; /* Varsayılan padding */
            padding-top: 10px; /* Yön butonu için üstten boşluk */
            position: relative;
        }
        .card-title{margin:0px;}
        .card-title-custom {
            font-size: 0.8rem; /* Başlık boyutu */
            font-weight: 600; /* Daha kalın font */
            color: #212529; /* Daha koyu başlık rengi */
            margin-bottom: 10px;
        }
        .card-body p{margin:0px;}
        .card-subtitle-custom {
            font-size: 0.7rem; /* Alt başlık boyutu */
            color: #6c757d;
            display: flex;
            align-items: center;
            white-space: nowrap; /* Metni tek satırda tut */

        }
        .status-closed {
            color: #dc3545; /* Kırmızı renk */
            font-weight: 500;
            margin-right: 5px;
        }
        .status-opened {
            color: #28a745; /* Yeşil */
            font-weight: 500;
            margin-right: 5px;
        }        
        .dot-separator {
            width: 4px;
            height: 4px;
            background-color: #6c757d;
            border-radius: 50%;
            margin: 0 6px; /* Nokta ayırıcı etrafındaki boşluk */
        }
        .time-info {
            color: #6c757d;
            white-space: normal; /* Kırılmaya izin ver */
            word-break: break-word; /* Gerekirse kelime ortasından kır */
            display: inline-block; /* Satır yapısını korur */
        }
        .btn-show-info {
            width: 100%;
            padding: 5px; /* Buton paddingi */
            font-size: 0.7rem; /* Buton font boyutu */
            font-weight: bold;
            border-radius: 5px; /* Daha yuvarlak köşe */
            margin-top: 0px; /* Üst boşluk */
            background-color: #28a745; /* Yeşil renk */
            border-color: #28a745; /* Yeşil kenarlık */
            color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Hafif buton gölgesi */
        }
        .btn-show-info:hover {
            background-color: #218838; /* Hover rengi */
            border-color: #1e7e34;
        }


    
    @media (max-width: 768px) {
      .leaflet-popup-content-wrapper {
        display: none;
      }
    }

    /*yeniler**/

        .search-bar-custom {
      position: absolute;
      top: 16px;
      left: 16px;
      right: 16px;           /* Sağdan da boşluk bırakarak responsive yapıyoruz */
      z-index: 1030; /* Panelin altında kalsın! */
      display: flex;
      align-items: center;
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      padding: 2px 8px; /* azaltıldı */
      gap: 8px;
      width: auto;
      max-width: 420px;
      min-height: 36px; /* istersen sabitle, ör: 32-36px */
    }

    .search-bar-custom .icon,
    .search-bar-custom .icon-btn {
      color: #888;
      font-size: 1.06rem;
      padding: 4px 4px;
    }

    .search-bar-custom .search-input {
      border: none;
      outline: none;
      font-size: 1rem;
      background: transparent;
      flex: 1 1 60px;
      min-width: 0;
      padding: 8px 4px;
    }

    .search-bar-custom .icon-btn {
      background: none;
      border: none;
      outline: none;
      color: #888;
      font-size: 1.3rem;
      padding: 6px 8px;
      border-radius: 6px;
      transition: background 0.15s;
      cursor: pointer;
      flex: 0 0 auto;
    }

    .search-bar-custom .icon-btn:hover {
      background: #f0f0f0;
      color: #333;
    }

    @media (max-width: 600px) {
      .search-bar-custom {
        top: 10px;
        left: 6px;
        right: 6px;
        max-width: none;
        padding: 2px 4px;
        gap: 4px;
      }
      .search-bar-custom .icon {
        font-size: 1.1rem;
      }
      .search-bar-custom .search-input {
        font-size: 0.97rem;
        padding: 6px 2px;
      }
      .search-bar-custom .icon-btn {
        font-size: 1.1rem;
        padding: 4px 4px;
      }
      .offcanvas {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        border-radius: 0 !important;
      }    
    }

    .search-dropdown, .filter-dropdown {
      position: absolute;
      top: 58px; /* aralığı zevkine göre değiştir */
      left: 16px;
      right: 16px;
      max-width: 420px;
      background: #fff;
      border-bottom-left-radius: 12px;
      border-bottom-right-radius: 12px;
      border-top-left-radius: 0;
      border-top-right-radius: 0;
      box-shadow: none;                /* gölgeyi kaldır */
      border: 1px solid #e1e4ea;
      border-top: none;                /* üst çizgi border'dan gelmesin */
      border-bottom: 1px solid #e1e4ea;
      border-left: 1px solid #e1e4ea;
      border-right: 1px solid #e1e4ea;
      z-index: 2000;
      padding: 4px 0;
      margin-top: 0;
      display: none;
      /* üst çizgi eklemek için aşağıya bak */
    }

    .search-dropdown::before,
    .filter-dropdown::before {
      content: "";
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      height: 1px;           /* çizgi kalınlığı */
      width: 100%;
      background: #e1e4ea;   /* çizgi rengi */
      border-radius: 0 0 2px 2px;
    }

    .search-dropdown .search-result-item, .search-dropdown .search-result-empty {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 5px 13px 5px 13px; /* satır yüksekliğini azaltmak için */
      cursor: pointer;
      transition: background 0.13s;
      font-size: 0.95rem;
    }

    .search-dropdown .search-result-item:hover {
      background: #f6f6f6;
    }

    .search-dropdown .result-icon {
      width: 18px;
      height: 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
    }

    .filter-dropdown label {
      display: flex;
      justify-content: space-between;
      align-items: center;
      min-width: 0;
      gap: 0;
      font-size: 0.95rem;            /* Daha küçük font */
      padding: 5px 13px 5px 13px;    /* Satır yüksekliği az */
      cursor: pointer;
      user-select: none;
      transition: background 0.15s;
    }
    .filter-dropdown label:hover {
      background: #f3f3f3;           /* Hover efekti */
    }

    .filter-dropdown .cat-name {
      flex-grow: 1;
      margin-left: 8px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .filter-dropdown .cat-count {
      font-size: 0.92em;
      color: #888;
      background: #f6f6f6;
      padding: 2px 9px;
      border-radius: 12px;
      margin-left: 12px;
      min-width: 22px;
      text-align: right;
      font-variant-numeric: tabular-nums;
      font-weight: 500;
      letter-spacing: 0.01em;
      box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    }

    .filter-dropdown input[type="checkbox"] {
      margin-right: 7px;
      accent-color: #4072fa;
    }
    .filter-dropdown .filter-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      padding: 2px 13px 3px 13px; /* üst-alt ve yan boşluklar az */
    }
    .filter-dropdown .filter-action-btn {
      background: #f6f8fa;
      border: 1px solid #e1e4ea;
      color: #4884ff;
      font-size: 0.86rem;       /* Daha küçük font */
      font-weight: 500;
      padding: 2px 9px;
      border-radius: 7px;
      cursor: pointer;
      transition: background 0.15s, border 0.15s;
      box-shadow: none;
      line-height: 1.2;
      margin-bottom: 2px;
      margin-top: 1px;
    }
    .filter-dropdown .filter-action-btn:hover {
      background: #eaf1ff;
      border-color: #b4c7e7;
    }

    @media (max-width:600px) {
      .search-dropdown, .filter-dropdown {
        left: 6px;
        right: 6px;
        max-width: none;
        top: 40px;
      }
    }



    /*dil*/
    .lang-btn {
      position: relative;
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 1.1rem;
      padding: 4px 8px;
      border-radius: 7px;
      border: none;
      background: none;
      color: #357dfa;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.14s;
    }

    .lang-btn:hover, .lang-btn.active {
      background: #f2f6ff;
    }

    .lang-code {
      font-size: 1.01em;
      font-weight: 700;
      color: #357dfa;
      letter-spacing: 0.02em;
    }

    .lang-dropdown {
      position: absolute;
      top: 44px;    /* bar yüksekliğinden biraz fazla */
      right: 0;     /* barın sağından açılır */
      min-width: 230px;
      background: #fff;
      border: 1px solid #e1e4ea;
      border-bottom-left-radius: 12px;
      border-bottom-right-radius: 12px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.10);
      z-index: 2000;
      padding: 14px 20px;
      display: none;
    }

    .lang-dropdown .lang-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px 15px;
    }
    .lang-dropdown .lang-option {
      cursor: pointer;
      font-size: 1.01em;
      color: #333;
      padding: 3px 2px 3px 10px;
      border-radius: 4px;
      text-align: left;
      transition: background 0.12s, color 0.12s;
      font-weight: 500;
    }
    .lang-dropdown .lang-option:hover, .lang-dropdown .active {
      background: #f0f3ff;
      color: #357dfa;
    }

    @media (max-width: 600px) {
      .lang-dropdown {
        left: 0 !important;
        right: 0 !important;
        min-width: unset !important;
        width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box;
        padding: 12px 6px !important;
        font-size: 1.02em;
      }
      
    }

    /*---------- CITY SELECT--------------*/
    .city-pin-marker {
      width: 24px;
      height: 24px;
      background: #357dfa;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 1.5px 6px rgba(33,125,250,0.13);
      border: 1.7px solid #fff;
      font-size: 1em;     /* simge de daha küçük */
      color: #fff;
      cursor: pointer;
      transition: box-shadow .12s;
    }
    .city-pin-marker:hover {
      box-shadow: 0 4px 22px rgba(33,125,250,0.30);
    }
    .city-pin-tooltip {
      position: absolute;
      z-index: 9999;
      min-width: 168px;
      background: #fff;
      border-radius: 14px;
      box-shadow: 0 4px 32px rgba(30,45,90,0.15);
      overflow: hidden;
      pointer-events: none;
      opacity: 0;
      transition: opacity .17s;
    }
    .city-pin-tooltip.active {
      pointer-events: auto;
      opacity: 1;
    }
    .city-tooltip-img {
      width: 100%;
      height: 66px;
      object-fit: cover;
      background: #ddd;
      display: block;
    }
    .city-tooltip-content {
      padding: 10px 14px 9px 14px;
      text-align: center;
    }
    .city-tooltip-title {
      font-weight: 700;
      font-size: 1.04em;
      margin-bottom: 2px;
      color: #1c324e;
    }
    .city-tooltip-count {
      font-size: .96em;
      color: #7d8595;
    }
    /*------------------*/