* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  color: #2c3e50;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

/*#colors img {*/
/*  width: 100%;*/
/*  height: 200px;*/
/*  object-fit: cover;*/
/*  cursor: pointer;*/
/*  border-radius: 12px;*/
/*  box-shadow: 0 4px 8px rgba(0,0,0,0.1);*/
/*  transition: transform 0.3s ease, box-shadow 0.3s ease;*/
/*}*/

/*#colors img:hover {*/
/*  transform: translateY(-5px);*/
/*  box-shadow: 0 8px 16px rgba(0,0,0,0.2);*/
/*}*/
.color-item-wrapper {
  background: transparent;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.color-item-wrapper:hover {
  transform: translateY(-5px);
}

.color-item-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: block;
  transition: box-shadow 0.3s ease;
}

.color-item-wrapper:hover img {
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.color-title-overlay {
  /*margin-top: 10px;*/
  /*text-align: center;*/
  /*font-weight: 600;*/
  /*font-size: 15px;*/
  /*color: #333;*/
  /*opacity: 0;*/
  /*visibility: hidden;*/
  /*transition: opacity 0.3s ease, visibility 0.3s ease;*/
      border-radius: 2px;
    text-align: center;
    padding: 4px;
    background: whitesmoke;
    position: absolute;
    margin-top: -30px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.color-item-wrapper:hover .color-title-overlay {
  opacity: 1;
  visibility: visible;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  display: flex;
  width: 100%;
  height: 100vh;
  background: #fff;
  position: relative;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e74c3c;
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}

.close-btn:hover {
  background: #c0392b;
}

/* LEFT: Image Area */
.modal-left {
  flex: 0 0 60%;
  /*background: #e8e8e8;*/
   background: rgba(33,33,33,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.modal-left img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Navigation Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.nav-arrow:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow span {
  font-size: 28px;
  color: #333;
  font-weight: bold;
}

.nav-arrow-left {
  left: 30px;
}

.nav-arrow-right {
  right: 30px;
}

.nav-arrow.show {
  display: flex;
}

/* Image Counter */
.image-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: none;
}

.image-counter.show {
  display: block;
}

/* Real Size Indicator */
.modal-left::after {
  content: '';
  white-space: pre;
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* RIGHT: Sidebar */
.modal-right {
  flex: 0 0 40%;
  /*background: #3a3a3a;*/
  /*color: #fff;*/
  background: #ffffff;
  color: #333;
  padding: 40px 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-right::-webkit-scrollbar {
  width: 8px;
}

.modal-right::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* Modal Header */
.modal-header {
  margin-bottom: 30px;
}

.modal-header h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: #333;
}

.desc {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

/* Menu Section */
.menu-section {
  /* margin-bottom: 30px; */
}

.menu-item {
  
  display: flex;
  align-items: center;
  padding: 15px 20px;
 background: #f9f9f9;
  color: #333;
  margin-bottom: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #eee;
}

.menu-item:hover {
  background: #f0f0f0;
  transform: translateX(5px);
}

.menu-item.active {
  background: #fff;
  border-color: #e74c3c;
}

.menu-icon {
  margin-right: 15px;
  font-size: 12px;
}

.menu-item.active .menu-icon {
  color: #e74c3c;
}

.menu-label {
  font-size: 15px;
  font-weight: 500;
}

/* Image Sidebar (Dynamic Images) */
.image-sidebar {
  margin-bottom: 30px;
}

.sidebar-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 15px;
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.sidebar-image:hover {
  border-color: #e74c3c;
  transform: scale(1.05);
}

.sidebar-image.active {
  border-color: #e74c3c;
}

/* Region Section */
.region-section {
  margin-bottom: 30px;
}

.region-section h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.region-map {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.region-info p {
  font-size: 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  line-height: 1.5;
}

.indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}

.indicator.red {
  background: #e74c3c;
}

.indicator.gray {
  background: #95a5a6;
}

/* Action Buttons */
.actions {
  margin-top: auto;
  padding-top: 20px;
}

.actions button {
  width: 100%;
  padding: 15px;
  margin-bottom: 12px;
  border: none;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #000;
  color: #fff;
}

.btn-primary:hover {
  background: #333;
}

.btn-secondary {
  background: #fff;
  color: #000;
  border: 2px solid #000;
}

.btn-secondary:hover {
  background: #f0f0f0;
}

/* Footer Note */
.footer-note {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #555;
}

.footer-note p {
  font-size: 11px;
  color: #999;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
  }
  
  .modal-left, .modal-right {
    flex: 1 1 auto;
  }
  
  .modal-left {
    min-height: 300px;
  }
}