/* ========================================
   DODOMA BRANCH — Specific Styles
   ======================================== */

/* Hero with video background */
.dodoma-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
  contain: layout style;
}

.dodoma-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.dodoma-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

@keyframes slow-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.dodoma-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    rgba(7,7,13,0.3) 0%, 
    rgba(7,7,13,0.6) 50%, 
    var(--bg-primary) 100%);
  z-index: 1;
}

.dodoma-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 96px var(--container-padding) 64px;
  max-width: 900px;
}

.dodoma-hero .hero-badge,
.dodoma-hero .hero-title,
.dodoma-hero .hero-subtitle {
  opacity: 1;
}

.dodoma-hero .location-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(212, 168, 83, 0.15);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

/* ========================================
   TOUR SECTION (COMPREHENSIVE)
   ======================================== */
.tour-section {
  background: var(--bg-secondary);
  position: relative;
  contain: layout style;
}

.tour-layout {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.tour-featured {
  width: 100%;
}

.video-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}

.video-label {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold);
  border: 1px solid rgba(212, 168, 83, 0.3);
}

.tour-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.video-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-info {
  padding: 20px;
  background: var(--glass-bg);
}

.video-info h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--gold-light);
}

.video-info p {
  font-size: 0.9rem;
  color: var(--white-muted);
}

/* Tour Sample Gallery */
.tour-gallery {
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
}

.section-header-compact h3 {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  margin-bottom: 25px;
  text-align: center;
  color: var(--gold);
}

.tour-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tour-gallery-item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  transition: all 0.5s var(--ease-out-expo);
}

.tour-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.tour-gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-tag {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(0,0,0,0.7);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  color: var(--white);
  border-left: 2px solid var(--gold);
}

@media (max-width: 992px) {
  .tour-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tour-stats-grid {
    grid-template-columns: 1fr;
  }
  .tour-gallery-grid {
    grid-template-columns: 1fr;
  }
}




/* ========================================
   LOCATION MAP SECTION
   ======================================== */
.dodoma-location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.location-details .section-tag {
  justify-content: flex-start;
}

.location-details .section-title {
  text-align: left;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.location-details p {
  font-size: 1rem;
  color: var(--white-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.location-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.location-info-card {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
}

.location-info-card:hover {
  border-color: var(--glass-border-hover);
  background: var(--glass-bg-hover);
}

.location-info-card .icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.location-info-card .label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

.location-info-card .value {
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1.5;
}

.location-info-card .value a {
  color: var(--white);
}

.location-info-card .value a:hover {
  color: var(--gold-light);
}

.location-map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  aspect-ratio: 1/1;
}

.location-map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.4) brightness(0.85) contrast(1.1);
  transition: filter 0.5s ease;
}

.location-map-frame:hover iframe {
  filter: grayscale(0) brightness(1) contrast(1);
}

@media (max-width: 768px) {
  .dodoma-location {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .location-map-frame {
    aspect-ratio: 4/3;
  }
}

/* ========================================
   ROOM EXPLORER (FUTURISTIC REDESIGN)
   ======================================== */
.room-explorer {
  background: var(--bg-primary);
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 1px 780px;
}

.tour-section,
#policies-dodoma,
#contact-dodoma,
#policies-mbeya,
#contact-mbeya,
#policies-dar,
#contact-dar {
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

.explorer-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  background: linear-gradient(145deg, rgba(15, 15, 25, 0.94), rgba(10, 10, 18, 0.96));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 100px rgba(212,168,83,0.03);
  contain: layout style;
}

/* Room Type Tabs */
.explorer-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--glass-border);
}

.explorer-tab {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  color: var(--white);
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  overflow: hidden;
  min-width: 120px;
}

.explorer-tab .tab-icon {
  font-size: 1.5rem;
  margin-bottom: 2px;
  transition: transform 0.4s var(--ease-out-expo);
}

.explorer-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-gold);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-out-expo);
}

.explorer-tab .tab-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.explorer-tab .tab-desc {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.78;
}

.explorer-tab:hover {
  background: rgba(212, 168, 83, 0.05);
  border-color: var(--gold-dark);
  transform: translateY(-3px);
}

.explorer-tab:hover .tab-icon {
  transform: scale(1.2);
}

.explorer-tab.active {
  background: rgba(212, 168, 83, 0.08);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 25px rgba(212,175,55,0.08);
}

.explorer-tab.active::after {
  transform: translateX(0);
}

.explorer-tab.active .tab-desc {
  color: var(--gold-light);
  opacity: 0.8;
}

.explorer-tab.active .tab-icon {
  transform: scale(1.3);
}

/* Main Display Grid */
.explorer-content {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.explorer-display {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 30px;
  align-items: start;
}

/* Visual Column */
.explorer-visual {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
}

/* Featured Hero Image */
.visual-hero {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
  background: #0a0a15;
}

.visual-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.6s ease;
}

.visual-hero:hover img {
  transform: scale(1.03);
}

.hero-overlay-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold-light);
  border: 1px solid rgba(212,168,83,0.2);
}

/* Hero Navigation Buttons */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  z-index: 5;
}

.visual-hero:hover .hero-nav,
.visual-hero:focus-within .hero-nav {
  opacity: 1;
}

.hero-nav:hover {
  background: rgba(212,168,83,0.3);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.1);
}

.hero-prev { left: 12px; }
.hero-next { right: 12px; }

/* Fullscreen Button */
.hero-fullscreen {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  z-index: 5;
}

.visual-hero:hover .hero-fullscreen,
.visual-hero:focus-within .hero-fullscreen {
  opacity: 1;
}

@media (hover: none) {
  .hero-nav,
  .hero-fullscreen {
    opacity: 0.9;
  }
}

.hero-fullscreen:hover {
  background: rgba(212,168,83,0.3);
  border-color: var(--gold);
}

/* Thumbnail Strip */
.visual-thumbstrip {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(7,7,13,0.9);
  backdrop-filter: blur(10px);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) transparent;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.visual-thumbstrip::-webkit-scrollbar {
  height: 4px;
}

.visual-thumbstrip::-webkit-scrollbar-track {
  background: transparent;
}

.visual-thumbstrip::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}

.thumb-item {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  padding: 0;
  background: transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.65;
}

.thumb-item:hover {
  opacity: 0.85;
  border-color: rgba(255,255,255,0.2);
}

.thumb-item.active {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(212,168,83,0.3);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video Section */
.visual-video-section {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.video-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212,168,83,0.05);
}

/* Info Column */
.explorer-info {
  background: linear-gradient(145deg, rgba(20,20,35,0.95), rgba(12,12,22,0.98));
  border: 1px solid var(--glass-border);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.explorer-info::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212,175,55,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* Category Badge */
.room-category-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--gradient-gold);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
  width: fit-content;
}

.explorer-info h3 {
  font-family: var(--font-brand);
  font-size: 1.8rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
  color: var(--gold);
  position: relative;
}

.explorer-info p {
  color: var(--white-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* Room Features */
.room-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.room-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.room-feature:hover {
  border-color: rgba(212,168,83,0.2);
  background: rgba(212,168,83,0.04);
}

.room-feature .feature-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.room-feature .feature-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}

.room-feature .feature-detail {
  display: block;
  font-size: 0.7rem;
  color: var(--white-muted);
  letter-spacing: 0.5px;
}

/* Image/Video Count */
.room-image-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--white-muted);
  padding: 12px 0;
  margin-bottom: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.room-image-count svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* Book Button */
.room-book-btn {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE — Room Explorer
   ======================================== */
@media (max-width: 1024px) {
  .explorer-display {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dodoma-hero-bg img {
    animation: none !important;
  }
  .video-label,
  .explorer-container,
  .hero-nav,
  .hero-fullscreen,
  .explorer-info,
  .gallery-tag,
  .location-tag {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .explorer-container {
    padding: 20px;
  }
  .explorer-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 20px;
    gap: 8px;
  }
  .explorer-tab {
    min-width: 120px;
    flex-shrink: 0;
    padding: 10px 14px;
  }
  .explorer-tab .tab-icon {
    font-size: 1.2rem;
  }
  .explorer-tab .tab-label {
    font-size: 0.85rem;
  }
  .visual-hero {
    aspect-ratio: 16 / 11;
  }
  .thumb-item {
    width: 60px;
    height: 45px;
  }
  .explorer-info {
    padding: 24px 20px;
  }
  .room-features {
    grid-template-columns: 1fr;
  }
}



/* ========================================
   YOUTUBE BRANDING MINIMIZATION (STEALTH CROP)
   ======================================== */
.yt-responsive-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
}

/* Custom Overlays for "Original" Look */
.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 50; /* Ensure this is on top of everything */
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s var(--ease-out-expo);
}

.video-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle, rgba(7,7,12,0.2) 0%, rgba(7,7,12,0.6) 100%);
  transition: opacity 0.3s ease;
}

.video-overlay:hover::before {
  opacity: 0.8;
}

.play-icon-custom {
  width: 80px;
  height: 80px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.2rem;
  box-shadow: 0 0 30px rgba(212, 168, 83, 0.4);
  transform: scale(1);
  transition: all 0.4s var(--ease-out-expo);
  z-index: 51;
}

.video-overlay:hover .play-icon-custom {
  transform: scale(1.1);
  box-shadow: 0 0 50px rgba(212, 168, 83, 0.7);
}

.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
}

/* Room Explorer Specific Tweaks - TALL & UNIFIED */
.video-wrapper.yt-mode {
  position: relative;
  overflow: hidden; /* CRITICAL: Clips the hidden header */
  background: #10101a;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 320px; /* Modern Smartphone Vertical Width */
  margin: 0 auto;   /* Perfect Center Alignment */
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 45px rgba(0,0,0,0.6);
  z-index: 10;
}

/* Clean Full-Frame YouTube Embed Without Clipping Native Controls */
.video-wrapper.yt-mode .yt-responsive-wrap {
  padding-bottom: 177.77%; /* 9:16 Aspect Ratio */
  border: none;
  box-shadow: none;
  overflow: hidden;
}

.yt-responsive-wrap iframe,
.video-wrapper.yt-mode .yt-responsive-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out-expo);
  clip-path: none;
  pointer-events: none;
}

/* Universal Reveal Logic: Works if 'playing' is on the wrapper OR the parent */
.yt-responsive-wrap.playing iframe,
.video-wrapper.yt-mode.playing iframe {
  opacity: 1 !important;
  pointer-events: auto !important;
}