    :root{
      --brand:#C81E1E;
      --brand2:#9B1111;
      --bg:#F4F6FA;
      --card:#FFFFFF;
      --text:#0F172A;
      --muted:#64748B;
      --line:#E6EAF2;
      --shadow: 0 12px 28px rgba(15,23,42,.10);
      --r16:16px;
      --r20:20px;
      --appbar-h: 56px;
    }


.content{
  padding-top: calc(var(--appbar-h) + 12px);
}

    *{ box-sizing:border-box; }
    body{
      margin:0;
      font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
      background: var(--bg);
      color: var(--text);
      padding-bottom: 86px; /* bottom bar için */
    }
    .app{ max-width: 520px; margin:0 auto; }

    /* HEADER */
    .appbar{
      position: sticky;
      top:0;
      z-index: 1000;
      background: linear-gradient(180deg, var(--brand), var(--brand2));
      box-shadow: 0 10px 24px rgba(0,0,0,.18);
      padding-top: env(safe-area-inset-top);
    }

    .appbar-inner{
      height: 86px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding: 0 14px;
      gap: 10px;
    }

    .brand{
      display:flex; align-items:center; gap:10px; min-width:0;
      color:#fff; text-decoration:none;
    }
    .brand .logo{
      width:54px; height:54px; border-radius: 10px;
      display:flex; align-items:center; justify-content:center;
      flex: 0 0 auto;
      overflow:hidden;
    }
    .brand .logo img{ width:100%; height:100%; object-fit:cover; display:block; }
    .brand .txt{ min-width:0; }
    .brand .title{
      margin:0;
      font-weight: 900;
      font-size: 14px;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .brand .sub{
      margin:2px 0 0;
      font-size: 14px;
      opacity:.85;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }

    .appbar-right{
      display:flex;
      align-items:center;
      gap: 10px;
      flex: 0 0 auto;
    }


    /* HAMBURGER */
    .iconbtn{
      width:38px; height:38px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,.35);
      background: rgba(255,255,255,.12);
      color:#fff;
      display:flex; align-items:center; justify-content:center;
      cursor:pointer;
    }

    /* Drawer/Menu */
    .drawer-backdrop{
      position: fixed; inset:0;
      background: rgba(15,23,42,.45);
      display:none;
      z-index: 1200;
    }
    .drawer{
      position: fixed;
      top:0; right:0; bottom:0;
      width: 86%;
      max-width: 340px;
      background:#fff;
      z-index: 1300;
      transform: translateX(100%);
      transition: transform .22s ease;
      box-shadow: -20px 0 60px rgba(0,0,0,.25);
      padding-top: env(safe-area-inset-top);
    }
    .drawer.open{ transform: translateX(0); }
    .drawer-backdrop.open{ display:block; }

    .drawer-head{
      padding: 14px;
      border-bottom: 1px solid var(--line);
      display:flex; align-items:center; justify-content:space-between;
      gap: 10px;
    }
    .drawer-head .h{
      font-weight: 950;
      margin:0;
      font-size: 14px;
    }
    .drawer a{
      display:flex;
      align-items:center;
      gap: 10px;
      padding: 12px 14px;
      border-bottom: 1px solid var(--line);
      text-decoration:none;
      color: var(--text);
      font-weight: 800;
    }
    .drawer a .i{ width:22px; text-align:center; color: var(--brand); }
    .drawer small{ color: var(--muted); font-weight: 700; }

    /* Content spacing */
    .content{ padding: 14px; }
    .card{
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: var(--r20);
      box-shadow: var(--shadow);
        position: relative;
  z-index: 1;
    }

    
    
     .bottombar{
        position: fixed;
        left:0; right:0; bottom:0;
        z-index: 1100;
        background:#fff;
        border-top: 1px solid var(--line);
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
      }
      .bn{
        max-width: 520px;
        margin: 0 auto;
        display:grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
      }
      .bn a{
        text-decoration:none;
        color: var(--muted);
        font-weight: 900;
        font-size: 11px;
        padding: 8px 6px;
        border-radius: 14px;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap: 4px;
      }
      .bn a .ico{ font-size: 16px; line-height: 1; }
      .bn a.active{
        color: var(--brand);
        background: rgba(200,30,30,.08);
        border: 1px solid rgba(200,30,30,.16);
      }



  /* Home UI helpers (header/footer temasıyla uyumlu) */
  .home-wrap{ display:flex; flex-direction:column; gap:10px; }
  .soft-card{ border-radius: 18px; overflow:hidden; }
  .btn-3{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; }
  .btn-3 a{ border-radius:16px; padding:12px 10px; font-weight:900; }
  .quick-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .quick-tile{
    display:block; text-decoration:none;
    background:#fff; border:1px solid #E6EAF2; border-radius:18px;
    padding:14px 12px; box-shadow:0 8px 22px rgba(15,23,42,.06);
    color:#0F172A;
  }
  .quick-tile .h{ font-weight:950; margin:0; font-size:14px; }
  .quick-tile .s{ margin:4px 0 0; color:#64748B; font-size:12px; }
.sec-title{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#64748B;
  font-weight:950;

  /* NEGATIF MARGIN YOK */
  margin: 14px 2px 8px;

  /* Kartların altında kalmasın */
  position: relative;
  z-index: 5;
}

  .news-img{
    width:100%; height:180px; object-fit:cover; display:block;
  }
  .news-overlay{
    position:absolute; inset:0;
    background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.65));
  }
  .news-text{
    position:absolute; left:12px; right:12px; bottom:12px;
    color:#fff;
  }
  .news-text .t{ font-weight:950; font-size:15px; margin:0; }
  .news-text .s{ margin:4px 0 0; opacity:.9; font-size:12px; }
  .news-text .s{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
  /* Hospital Hero */
.hospital-hero{ position:relative; }

.hospital-imgwrap{ position:relative; }
.hospital-img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}
.hospital-overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.55) 100%);
  pointer-events:none;
}
.hospital-badge{
  position:absolute;
  left:12px; top:12px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  color:#fff;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 11px;
  display:flex;
  align-items:center;
  gap:8px;
  backdrop-filter: blur(10px);
}
.hospital-badge .dot{
  width:8px; height:8px; border-radius:999px;
  background: rgba(255,255,255,.9);
}

/* Title area */
.hospital-title{
  font-weight: 950;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hospital-sub{
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.hospital-phone{
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}
.hospital-phone:active{ opacity:.8; }

.hospital-mini{
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight: 900;
}

/* Actions */
.hospital-actions{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:10px;
}
.action-btn{
  border-radius: 16px;
  padding: 12px 10px;
  font-weight: 950;
  font-size: 13px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height: 46px; /* dokunma alanı */
}
.action-primary{
  box-shadow: 0 10px 22px rgba(200,30,30,.22);
}
.hospital-note{
  color: var(--muted);
  font-size: 12px;
}

.action-btn i{
  font-size: 15px;
}

.action-btn:active{
  transform: scale(0.97);
}


/* SHELL (ana kart - şeffaf, profesyonel) */
.ecz-shell{
  border-radius: 20px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(230,234,242,.75);
  box-shadow: 0 14px 34px rgba(15,23,42,.10);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.ecz-loading{
  padding: 16px;
  color: #64748B;
  font-weight: 900;
}

/* HEADER */
.ecz-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 14px 10px 14px;
}
.ecz-head-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.ecz-logo{
  width:42px;height:42px;
  border-radius:14px;
  background: rgba(200,30,30,.10);
  border: 1px solid rgba(200,30,30,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}
.ecz-logo i{ color:#C81E1E; font-size:18px; }
.ecz-title{
  margin:0;
  font-weight: 950;
  font-size: 15px;
  color:#0F172A;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.ecz-sub{
  margin:2px 0 0;
  font-size:12px;
  color:#64748B;
  font-weight:800;
}

.ecz-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 7px 10px;
  border-radius:999px;
  background: rgba(200,30,30,.10);
  border: 1px solid rgba(200,30,30,.18);
  color:#C81E1E;
  font-weight: 950;
  font-size: 12px;
  white-space:nowrap;
}
.ecz-dot{ width:8px;height:8px;border-radius:99px;background:#C81E1E; }

/* LIST */
.ecz-list{
  padding: 0 14px 14px 14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* ITEM CARD */
.ecz-item{
  background:#fff;
  border: 1px solid #E6EAF2;
  border-radius:18px;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  overflow:hidden;
}

/* ITEM BODY */
.ecz-body{
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ecz-item-name{
  font-weight: 950;
  font-size: 15px;
  color:#0F172A;
  margin:0;
  letter-spacing:.2px;
}

.ecz-row{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:#0F172A;
  font-size: 13px;
  line-height: 1.35;
}
.ecz-row i{
  color:#C81E1E;
  margin-top: 2px;
  flex: 0 0 auto;
}
.ecz-row a{
  color: inherit;
  text-decoration:none;
}
.ecz-row a:hover{ text-decoration: underline; }

.ecz-muted{
  color:#64748B;
  font-weight:800;
  font-size:12px;
}

/* ITEM ACTIONS */
.ecz-actions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  padding: 12px 14px 14px 14px;
  border-top: 1px solid #E6EAF2;
  background: #fff;
}
.ecz-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 12px;
  border-radius:14px;
  font-weight: 950;
  font-size: 13px;
  text-decoration:none;
  border: 1px solid transparent;
  user-select:none;
}
.ecz-btn.primary{
  background: #C81E1E;
  border-color:#C81E1E;
  color:#fff;
  box-shadow: 0 10px 18px rgba(200,30,30,.18);
}
.ecz-btn.outline{
  background: #fff;
  border-color: rgba(200,30,30,.35);
  color:#C81E1E;
}
.ecz-btn i{ font-size:14px; }

/* Responsive touch */
@media (max-width: 380px){
  .ecz-actions{ grid-template-columns: 1fr; }
}



.docGroupTitle{
  font-size:12px; letter-spacing:.12em; text-transform:uppercase;
  color:#64748B; font-weight:950; margin:14px 2px 8px;
}
.docGrid{ display:grid; grid-template-columns:1fr; gap:12px; }
@media(min-width:480px){ .docGrid{ grid-template-columns:1fr 1fr; } }

.docCard{
  background:#fff; border:1px solid #E6EAF2; border-radius:18px;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
  overflow:hidden;
  display:flex; gap:12px; align-items:center;
  padding:12px;
  text-decoration:none; color:#0F172A;
}
.docPhoto{
  width:54px; height:54px; border-radius:16px;
  background:#F4F6FA; border:1px solid #E6EAF2;
  overflow:hidden; flex:0 0 auto;
  display:flex; align-items:center; justify-content:center;
}
.docPhoto img{ width:100%; height:100%; object-fit:cover; display:block; }
.docMeta{ min-width:0; flex:1 1 auto; }
.docName{ margin:0; font-weight:950; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.docRole{ margin:3px 0 0; color:#64748B; font-size:12px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.docGo{
  width:40px;height:40px;border-radius:14px;
  background: rgba(200,30,30,.08);
  border:1px solid rgba(200,30,30,.16);
  display:flex; align-items:center; justify-content:center;
  color:#C81E1E; flex:0 0 auto;
}

.dHero{
  border-radius:18px; border:1px solid #E6EAF2; overflow:hidden; position:relative; background:#F4F6FA;
}
.dHero img{ width:100%; height:240px; object-fit:cover; display:block; }
.dHero .ov{ position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.55)); }
.dHero .txt{ position:absolute; left:12px; right:12px; bottom:12px; color:#fff; }
.dHero .n{ margin:0; font-weight:950; font-size:18px; }
.dHero .s{ margin:4px 0 0; opacity:.92; font-weight:800; font-size:12px; }

.dInfo{
  margin-top:12px;
  border-radius:18px; border:1px solid #E6EAF2; background:#fff; padding:12px;
}
.dRow{ display:flex; gap:10px; }
.dIco{
  width:40px;height:40px;border-radius:14px;
  background: rgba(200,30,30,.08);
  border:1px solid rgba(200,30,30,.16);
  display:flex;align-items:center;justify-content:center;
  color:var(--brand); flex:0 0 auto;
}
.dK{ margin:0; font-size:11px; letter-spacing:.10em; text-transform:uppercase; color:#64748B; font-weight:950; }
.dV{ margin:2px 0 0; font-size:14px; font-weight:950; color:#0F172A; }

.dActions{ margin-top:12px; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.dActions a{ border-radius:14px; font-weight:950; padding:12px; }
@media (max-width:380px){ .dActions{ grid-template-columns:1fr; } }

.ecz-btn.disabled{opacity:.45; pointer-events:none;}


.deptGrid{ display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.deptCard{
  display:flex; align-items:center; gap:12px;
  background:#fff; border:1px solid #E6EAF2; border-radius:18px;
  padding:12px 12px; box-shadow:0 8px 22px rgba(15,23,42,.06);
  text-decoration:none; color:inherit;
}
.deptIco{
  width:46px; height:46px; border-radius:16px;
  background: rgba(200,30,30,.08);
  border: 1px solid rgba(200,30,30,.18);
  display:flex; align-items:center; justify-content:center;
  flex:0 0 auto;
  color:#C81E1E; font-size:18px;
}
.deptName{ font-weight:950; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.deptDesc{ color:#64748B; font-size:12px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:2px; }
.deptGo{ margin-left:auto; color:#94A3B8; }


/* === Tıbbi Birimler Liste UI (dept) === */


/* Grid */
.deptGrid{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:8px;
}

/* Kart (link) */
.deptCard{
  display:flex;
  align-items:center;
  gap:12px;

  padding:12px 12px;
  border-radius:18px;

  background: rgba(255,255,255,.92);
  border:1px solid #E6EAF2;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);

  text-decoration:none !important;
  color: #0F172A !important;

  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

/* Hover/active */
.deptCard:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15,23,42,.10);
  border-color: rgba(200,30,30,.22);
}
.deptCard:active{
  transform: translateY(0px);
  box-shadow: 0 10px 20px rgba(15,23,42,.08);
}

/* Sol ikon kutusu */
.deptIco{
  width:44px;
  height:44px;
  border-radius:16px;

  background: rgba(200,30,30,.08);
  border: 1px solid rgba(200,30,30,.18);

  display:flex;
  align-items:center;
  justify-content:center;

  flex: 0 0 auto;
  color: #C81E1E;
  font-size:18px;
}

/* Ortadaki metin kapsayıcı */
.deptCard > div{
  min-width:0; /* ellipsis için şart */
  flex:1 1 auto;
}

/* Başlık */
.deptName{
  font-weight:950;
  font-size:14px;
  line-height:1.2;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;

  color:#0F172A;
}

/* Açıklama */
.deptDesc{
  margin-top:3px;
  color:#64748B;
  font-size:12px;
  font-weight:800;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Sağ ok */
.deptGo{
  flex: 0 0 auto;
  margin-left:auto;

  width:34px;
  height:34px;
  border-radius:12px;

  display:flex;
  align-items:center;
  justify-content:center;

  color:#94A3B8;
  background:#F4F6FA;
  border:1px solid #E6EAF2;
}

/* Kart içinde linklerin mavi olmasını engelle (bazı temalarda olur) */
.deptCard *{
  color: inherit !important;
}
.deptCard .deptDesc{
  color:#64748B !important;
}
.deptCard .deptGo{
  color:#94A3B8 !important;
}

/* Mobilde daha derli toplu */
@media (max-width: 420px){
  .deptCard{ padding:11px 11px; }
  .deptIco{ width:42px; height:42px; border-radius:15px; }
  .deptGo{ width:32px; height:32px; border-radius:11px; }
}


 .sm-mini{
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 8px 18px rgba(2,6,23,.06);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  }
  .sm-mini:hover{
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(2,6,23,.10);
    border-color: rgba(15,23,42,.18);
  }
  .sm-ico{
    width: 34px; height: 34px;
    border-radius: 11px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    flex: 0 0 auto;
    font-size: 14px;
  }
  .sm-fb{ background:#1877F2; }
  .sm-ig{ background: linear-gradient(135deg,#F58529,#DD2A7B,#8134AF); }
  .sm-ig2{ background: linear-gradient(135deg,#FD1D1D,#F56040,#FCAF45); }
  .sm-x{ background:#111827; }

  .sm-title{
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
  }
  .sm-sub{
    font-size: 11.5px;
    color: rgba(15,23,42,.62);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sm-go{
    color: rgba(15,23,42,.35);
    font-size: 12px;
  }
  .to-top{
  position: fixed;
  right: 14px;
  bottom: 90px;              /* bottom nav varsa çakışmasın */
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.18);
  background: #fff;
  color: #0F172A;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 26px rgba(2,6,23,.12);
  z-index: 99999;            /* çoğu çakışmayı çözer */

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .2s ease, color .2s ease;
}

.to-top.show{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:active{
  transform: translateY(0) scale(.98);
}



/* Panorama Butonları Stili */
        .pano-btn {
            width: 100%;
            margin-bottom: 15px;
            padding: 15px;
            text-align: left;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* TAM EKRAN MODAL STİLLERİ */
        .modal-fullscreen-pano {
            padding: 0 !important;
        }
        .modal-fullscreen-pano .modal-dialog {
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            max-width: none;
        }
        .modal-fullscreen-pano .modal-content {
            height: 100%;
            border: 0;
            border-radius: 0;
            background-color: black;
        }
        
        /* Panorama Konteyneri */
        #panorama-container {
            width: 100%;
            height: 100%;
        }

        /* Özel Kapatma Butonu (Sağ Üstte Sabit) */
        .close-pano-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 9999; /* En üstte kalması için */
            background-color: rgba(255, 0, 0, 0.7); /* Kırmızımsı saydam */
            color: white;
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            font-size: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.5);
            cursor: pointer;
            transition: background-color 0.3s;
        }
        .close-pano-btn:hover {
            background-color: rgba(255, 0, 0, 1);
        }
        
        /* Pannellum'un kendi kontrol butonlarını gizle (Özel kapatma kullanıyoruz) */
        .pnlm-fullscreen-ctrl, .pnlm-orientation-ctrl { display: none !important; }
        
        /* Panorama Modalı Tüm Sayfanın En Üstünde Olsun */
#panoModal {
    z-index: 99999 !important; /* En yüksek değerlerden biri */
}


/* Kapatma Butonu Modal İçinde de En Üstte */
.close-pano-btn {
    position: fixed; /* Absolute yerine Fixed yaparak ekrana çiviliyoruz */
    top: 25px;
    right: 25px;
    z-index: 100000 !important; /* Modal içeriğinden de üstte */
    background-color: rgba(220, 53, 69, 0.9); /* Bootstrap Red (Danger) rengi */
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px; /* Mobilde kolay tıklanması için biraz büyüttüm */
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    cursor: pointer;
    -webkit-appearance: none; /* iOS buton stili düzeltme */
}

/* Panorama Konteyneri Full Screen */
.modal-fullscreen-pano .modal-content {
    background: #000;
    border: none;
}

#panorama-container {
    width: 100vw;
    height: 100vh;
}