/* Airbik Item Details (myitem) - unified design (desktop + mobile)
   Only styles item details page via .itemd* classes to avoid site-wide impact. */

.itemd-wrap{ max-width: 1040px; }

/* Header */
.itemd-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.itemd-hero-left{
  display:flex;
  align-items:flex-start;
  gap:12px;
  min-width:0;
}

.itemd-avatar{
  width:56px;
  height:56px;
  border-radius: 999px;
  overflow:hidden;
  flex: 0 0 auto;
  border:1px solid #ddd;
  background:#f2f2f2;
}
.itemd-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.itemd-avatar-fallback{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  background:#6c757d; color:#fff; font-weight:800;
}

.itemd-hero-text{ min-width:0; }
.itemd-title{
  margin:0;
  font-weight:900;
  font-size:22px;
  letter-spacing:.2px;
  line-height:1.2;
}
.itemd-sub{
  margin-top:6px;
  color:#666;
  font-size:13px;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.itemd-host{ color:#111; font-weight:700; }
.itemd-dot{ color:#aaa; }
.itemd-reviewcount{ color:#777; margin-left:6px; }

.itemd-location{
  margin-top:6px;
  color:#666;
  font-size:13px;
  overflow-wrap:anywhere;
}
.itemd-location i{ color:#999; margin-right:6px; }

.itemd-hero-right{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.itemd-pill{
  font-size:11px;
  padding: 5px 10px;
  border-radius: 999px;
  border:1px solid #e3e3e3;
  color:#555;
  background:#fafafa;
}
.itemd-pill-solid{ background:#111; border-color:#111; color:#fff; }
.itemd-pill-outline{ background:#fff; }

.itemd-trust-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.itemd-trust-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  padding:6px 11px;
  font-size:12px;
  font-weight:700;
  border:1px solid transparent;
  line-height:1.3;
}

.itemd-trust-badge--verified{
  background:#fff4d9;
  border-color:#f4dfaa;
  color:#8f5c00;
}

.itemd-trust-badge--reliable{
  background:#eaf7ef;
  border-color:#cfe9d8;
  color:#17643a;
}

.itemd-trust-badge--clean{
  background:#eef4ff;
  border-color:#d7e3ff;
  color:#294f96;
}

.itemd-fit-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.itemd-fit-badge{
  display:inline-flex;
  align-items:center;
  gap:7px;
  max-width:100%;
  border-radius:999px;
  padding:7px 12px;
  font-size:12px;
  font-weight:700;
  line-height:1.4;
  border:1px solid transparent;
}

.itemd-fit-badge i{
  flex:0 0 auto;
  font-size:12px;
}

.itemd-fit-badge--strong{
  background:linear-gradient(180deg, #fff8f1, #fff2e9);
  border-color:#ffd7bf;
  color:#b14d16;
}

.itemd-fit-badge--soft{
  background:#f6f7f8;
  border-color:#e6e8eb;
  color:#5b6168;
}

/* Gallery */
.itemd-gallery{ margin-bottom: 14px; }
.itemd-photo-frame{
  width:100%;
  aspect-ratio: 4 / 3;
  overflow:hidden;
  border-radius: 16px;
  background:#f3f3f3;
}
.itemd-photo{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* Grid */
.itemd-grid{ margin-top: 8px; }

/* Booking card */
.itemd-bookcard{
  border:1px solid #e8e8e8;
  border-radius: 16px;
  background:#fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  padding: 14px;
  position: sticky;
  top: 84px; /* below header/nav */
}

.itemd-price-row{ display:flex; align-items:flex-end; justify-content:space-between; gap:10px; }
.itemd-price{
  font-size: 22px;
  font-weight: 900;
  color:#111;
}
.itemd-unit{
  font-size: 12px;
  color:#666;
  font-weight: 700;
  margin-left: 6px;
}

.itemd-fees{
  margin-top: 6px;
  color:#777;
  font-size: 12px;
}
.itemd-divider{
  height:1px;
  background:#f0f0f0;
  margin: 12px 0;
}

.itemd-cta{
  width:100%;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  margin-top: 10px;
}

.itemd-note{
  margin-top: 10px;
  color:#777;
  font-size: 12px;
  line-height: 1.35;
  text-align:center;
}

.itemd-loginbox{
  border: 1px solid #eee;
  background:#fbfbfb;
  border-radius: 14px;
  padding: 12px;
  text-align:center;
}
.itemd-logintext{ font-size: 13px; color:#555; margin-bottom: 10px; }
.itemd-loginbtn{ border-radius: 12px; }

/* Sections */
.itemd-section{
  border:1px solid #e8e8e8;
  border-radius: 16px;
  background:#fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  padding: 14px;
  margin-bottom: 12px;
}

.itemd-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom: 10px;
}
.itemd-section-note{
  color:#666;
  font-size:12px;
  line-height:1.5;
}
.itemd-h3{
  margin:0 0 10px;
  font-weight: 900;
  font-size: 15px;
  display:flex;
  align-items:center;
  gap:8px;
}
.itemd-h3 i{ color:#666; }

.itemd-bodytext{
  color:#444;
  font-size: 13px;
  line-height: 1.6;
}

.itemd-more-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}

.itemd-more-card{
  display:flex;
  flex-direction:column;
  border:1px solid #ececec;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
  text-decoration:none !important;
  color:inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.itemd-more-card:hover,
.itemd-more-card:focus{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(17,17,17,.08);
  border-color:#e2e2e2;
  color:inherit;
}

.itemd-more-thumb{
  aspect-ratio: 16 / 10;
  overflow:hidden;
  background:#f3f3f3;
}

.itemd-more-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.itemd-more-body{
  padding:12px;
}

.itemd-more-title{
  color:#111;
  font-size:14px;
  font-weight:800;
  line-height:1.35;
  margin-bottom:8px;
}

.itemd-more-sub{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  margin-bottom:8px;
}

.itemd-more-fit{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:8px;
}

.itemd-more-price{
  font-size:15px;
  font-weight:900;
  color:#111;
}

.itemd-more-location{
  color:#666;
  font-size:12px;
  line-height:1.5;
  margin-bottom:8px;
}

.itemd-more-location i{
  color:#999;
  margin-right:6px;
}

.itemd-more-meta{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  border:1px solid #f0f0f0;
  background:#fafafa;
  border-radius:10px;
  padding:8px 10px;
  color:#333;
  font-size:12px;
  line-height:1.5;
  margin-bottom:8px;
}

.itemd-more-meta-label{
  color:#666;
  font-weight:700;
  flex:0 0 auto;
}

.itemd-more-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:10px;
}

.itemd-more-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#666;
  font-size:12px;
  font-weight:700;
}

.itemd-more-rating i{
  color:#d98900;
  margin-right:4px;
}

.itemd-more-link{
  color:#111;
}

/* Key/Value grid */
.itemd-kv{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:10px;
}
.itemd-kv-row{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:8px;
  border:1px solid #f0f0f0;
  background:#fafafa;
  border-radius: 12px;
  padding: 10px 12px;
  min-height:100%;
}
.itemd-k{ color:#666; font-size:12px; font-weight:700; }
.itemd-v{ color:#111; font-size:12px; font-weight:800; overflow-wrap:anywhere; text-align:left; width:100%; }
.itemd-v--left{ text-align:left; }
.itemd-kv-row--wide{ grid-column: 1 / -1; }

.itemd-dimline{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}

.itemd-dimchip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid #e9edf2;
  background:#f8fafc;
  border-radius:999px;
  padding:3px 9px;
  font-size:12px;
  color:#1f2937;
  font-weight:700;
}

.itemd-dimchip strong{
  font-size:10px;
  color:#6b7280;
  letter-spacing:.2px;
}

.itemd-dimsep{
  color:#9aa1aa;
  font-weight:700;
}

.itemd-taglist{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.itemd-tag{
  font-size:11px;
  line-height:1.2;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  color:#374151;
  background:#f9fafb;
  font-weight:600;
}

.itemd-tag--suitable{
  background:#eef6ff;
  border-color:#d7e8ff;
  color:#244a73;
}

.itemd-tag--feature{
  background:#effaf2;
  border-color:#d7efdc;
  color:#205a2d;
}

.itemd-loadbtn{ border-radius: 12px; }
.itemd-sendbtn{ border-radius: 12px; }
.itemd-question-meta{
  margin-top: 6px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#6b7280;
  font-size:12px;
}

/* Mobile */
@media (max-width: 991px){
  .itemd-bookcard{ position: static; top:auto; }
}

@media (max-width: 767px){
  .itemd-more-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px){
  .itemd-title{ font-size: 19px; }
  .itemd-photo-frame{ border-radius: 14px; }
  .itemd-section, .itemd-bookcard{ border-radius: 14px; }
  .itemd-fit-badge{ font-size:11px; padding:6px 10px; gap:6px; }
  .itemd-kv-row{
    flex-direction:column;
    gap:6px;
  }
  .itemd-v{
    text-align:left;
  }
}



.calendar-anchor {
  position: relative;
  width: 100%;
}

.date-inputs.calendar-trigger {
  display: flex;
  justify-content: center;
}

#combined-box {
  min-width: 220px;
}

.itemd-bookcard {
  overflow: visible;
}

@media (min-width: 992px) {
  .col-md-4.col-md-push-8 {
    position: relative;
    z-index: 30;
  }

  .col-md-8.col-md-pull-4 {
    position: relative;
    z-index: 1;
  }

  #calendar-desktop.calendar-wrapper.desktop {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    z-index: 9999;
    margin: 0;
  }
}
