/* ==========================================
   INSPIRATION GALLERY - EXACT REPLICA
   ========================================== */

/* Gallery Section */
.inspiration-gallery-section {
  background: #ffffff;
  padding: 60px 0 80px;
}

.inspiration-gallery-section .container-fluid {
  max-width: 1400px;
  padding: 0 30px;
}

/* Gallery Header */
.gallery-header {
  text-align: center;
  margin-bottom: 30px;
}

.gallery-title {
  font-size: 36px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.gallery-description {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}

/* Search Bar */
.gallery-search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding: 0 20px;
}

.search-wrapper {
  position: relative;
  flex: 0 0 400px;
  max-width: 400px;
}

.gallery-search-input {
  width: 100%;
  padding: 10px 45px 10px 15px;
  border: 1px solid #d1d5db;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
}

.gallery-search-input:focus {
  border-color: #1a1a1a;
  outline: none;
}

.search-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 16px;
  border-radius: 20px;
  padding: 5px 10px;
  transition: all 0.2s;
}

.search-button:hover {
  background: #f3f4f6;
  color: #1a1a1a;
}

.share-button {
  padding: 10px 20px;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.share-button:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Filter Tabs */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 30px;
  border-bottom: 1px solid #e5e7eb;
  overflow-x: auto;
}

.filter-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px 25px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-tab:hover {
  border-bottom-color: #d1d5db;
}

.filter-tab:focus {
  outline: none;
}

.filter-tab.active {
  border-bottom-color: #1a1a1a;
  color: #1a1a1a;
}

.filter-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 4px;
}

.filter-tab.active .filter-icon {
  background: #e5e7eb;
  color: #1a1a1a;
}

.filter-icon i {
  font-size: 18px;
}

.filter-tab span {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

/* Room Type Selector */
.room-type-selector {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.room-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 120px;
}

.room-type-btn:hover {
  border-color: #0066cc;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.room-type-btn.active {
  border-color: #0066cc;
  background: #f0f9ff;
}

.room-icon-box {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border-radius: 8px;
}

.room-type-btn.active .room-icon-box {
  background: #e0f2fe;
  color: #0066cc;
}

.room-icon-box i {
  font-size: 24px;
}

.room-type-btn span {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-align: center;
}

/* Results Info */
.results-info {
  text-align: center;
  margin-bottom: 30px;
}

.results-count {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

/* Photo Gallery Grid - Clean 4 Column */
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery-photo-item {
  position: relative;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.gallery-photo-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.photo-link {
  display: block;
  position: relative;
  overflow: hidden;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  background: #f5f5f5;
}

.photo-link img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s;
}

.gallery-photo-item:hover .photo-link img {
  transform: scale(1.05);
}

/* Hidden items */
.gallery-photo-item.hidden {
  display: none !important;
}

/* Lazy Loading */
.gallery-img {
  opacity: 1;
  transition: opacity 0.3s;
}

/* Responsive Design */
@media (min-width: 1600px) {
  .photo-gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1200px) {
  .photo-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-title {
    font-size: 32px;
  }
}

@media (max-width: 992px) {
  .photo-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .room-type-selector {
    gap: 15px;
  }
  
  .room-type-btn {
    min-width: 100px;
    padding: 12px 15px;
  }
}

@media (max-width: 768px) {
  .inspiration-gallery-section .container-fluid {
    padding: 0 20px;
  }
  
  .gallery-title {
    font-size: 28px;
  }
  
  .gallery-description {
    font-size: 13px;
  }
  
  .photo-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .filter-tab {
    padding: 12px 15px;
  }
  
  .filter-tab span {
    font-size: 12px;
  }
  
  .room-type-selector {
    gap: 10px;
  }
  
  .room-type-btn span {
    font-size: 11px;
  }
}

@media (max-width: 576px) {
  .gallery-search-bar {
    flex-direction: column;
  }
  
  .search-wrapper {
    flex: 1;
    max-width: 100%;
  }
  
  .photo-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .photo-link {
    padding-bottom: 85%; /* Slightly taller on mobile for better viewing */
  }
  
  .filter-icon {
    width: 35px;
    height: 35px;
    background: #f3f4f6;
  }
  
  .filter-icon i {
    font-size: 16px;
    color: #1a1a1a;
  }
  
  .filter-tab.active .filter-icon {
    background: #e5e7eb;
  }
  
  .filter-tab.active .filter-icon i {
    color: #1a1a1a;
  }
}
