/* Hotel Modal - Side Panel Design */

/* Tab Navigation */
.hotel-tab-nav {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 0 20px;
  gap: 4px;
}

.hotel-tab-btn {
  padding: 12px 14px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
}

.hotel-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(108, 92, 231, 0.05);
}

.hotel-tab-btn.active {
  color: #3e32d3;
  border-bottom-color: #5850ec;
  background: transparent;
  font-weight: 700;
}

/* Tab Content */
.hotel-tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background: #ffffff;
}

.hotel-tab-pane {
  display: none;
  padding: 20px;
  animation: fadeIn var(--transition-normal);
}

.hotel-tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hotel-side-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  width: min(896px, calc(100vw - 2rem));
  height: min(92vh, 900px);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
}

.hotel-side-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.hotel-side-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 27, 36, 0.4);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
}

.hotel-side-panel-overlay.open {
  display: block;
}

.hotel-side-panel-header {
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fcf8ff;
}

.hotel-side-panel-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.hotel-modal-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: #6b7280;
}

.hotel-side-panel-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.hotel-side-panel-close:hover {
  background: #e5e7eb;
  color: #111827;
}

.hotel-side-panel-body {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 0;
}


.hotel-form-grid-price {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0fr;
  gap: 16px;
  background: aliceblue;
  padding: 16px;
  border-radius: 10px;
}

.hotel-image-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.hotel-image-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.hotel-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hotel-image-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: 999px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.hotel-gallery-title {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #3e32d3;
}

.hotel-gallery-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hotel-dropzone {
  border: 2px dashed #c7c4d8;
  border-radius: 12px;
  background: #f0ecf9;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.hotel-dropzone .material-symbols-outlined {
  color: #4e44e2;
}

.hotel-dropzone span {
  font-size: 14px;
  color: #464555;
}

.hotel-dropzone small {
  font-size: 11px;
  color: #777587;
}

.hotel-gallery-add-url {
  margin-top: 8px;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #4e44e2;
  color: #fff;
  padding: 9px 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.hotel-gallery-preview-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #1b1b24;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hotel-gallery-add-tile {
  margin-top: 12px;
  width: 150px;
  height: 112px;
  border: 2px dashed #c7c4d8;
  border-radius: 12px;
  background: #f5f2ff;
  color: #4a4760;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  cursor: pointer;
}

.hotel-gallery-success {
  margin-top: 16px;
  border: 1px solid #6cf8bb;
  background: #dff6ea;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hotel-gallery-success__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #006c49;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hotel-gallery-success p {
  margin: 0;
  font-weight: 700;
  color: #006c49;
}

.hotel-gallery-success small {
  color: #00714d;
}
.hotel-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hotel-side-panel-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.hotel-side-panel-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.hotel-side-panel-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #1b1b24;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hotel-side-panel-section-title::before {
  content: '';
  width: 6px;
  height: 20px;
  border-radius: 999px;
  background: #5850ec;
}

.hotel-form-group {
  margin-bottom: 16px;
}

.hotel-form-group.full-width {
  grid-column: 1 / -1;
}

.hotel-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #1b1b24;
  margin-bottom: 8px;
}

.hotel-form-group input[type="text"],
.hotel-form-group input[type="email"],
.hotel-form-group input[type="url"],
.hotel-form-group input[type="number"],
.hotel-form-group input[type="tel"],
.hotel-form-group input[type="date"],
.hotel-form-group select,
.hotel-form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c7c4d8;
  border-radius: 8px;
  font-size: 14px;
  color: #111827;
  background: #f5f2ff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hotel-form-group input:focus,
.hotel-form-group select:focus,
.hotel-form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.hotel-form-group textarea {
  resize: vertical;
  min-height: 56px;
}

#hotelDescription {
  min-height: 52px;
}

#hotelAddress {
  min-height: 44px;
}

#hotelCountry[readonly] {
  background: #eae6f3;
  color: #5f5d70;
  cursor: not-allowed;
}

.hotel-checkbox-group {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hotel-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #464555;
  margin: 0;
  line-height: 1.2;
}

.hotel-checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #5850ec;
  margin: 0;
}

.hotel-amenity-card {
  min-height: 38px;
  border: 1px solid #c7c4d8;
  border-radius: 10px;
  background: #fcf8ff;
  padding: 8px 10px;
  cursor: pointer;
}

.hotel-amenity-card .material-symbols-outlined {
  font-size: 16px;
  color: #4a4760;
}

.hotel-amenity-card:has(input:checked) {
  border-color: #5850ec;
  background: #f0ecf9;
}

.hotel-facility-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.hotel-facility-heading .material-symbols-outlined {
  color: #4e44e2;
  font-size: 18px;
}

.hotel-facility-heading h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #464555;
}

.hotel-kitchen-hint {
  margin: 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 11px;
  color: #777587;
}

.hotel-kitchen-hint .material-symbols-outlined {
  font-size: 14px;
}

.hotel-interior-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #464555;
}

.hotel-interior-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hotel-interior-item {
  height: 102px;
  border-radius: 10px;
  overflow: hidden;
}

.hotel-interior-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hotel-upload-tile {
  height: 102px;
  border-radius: 10px;
  border: 2px dashed #c7c4d8;
  background: transparent;
  color: #777587;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

#hotelTab-facility .hotel-form-group label {
  margin-bottom: 10px;
}

#hotelTab-facility #hotelKitchenDiningSpace {
  min-height: 108px;
  resize: none;
  background: #f0ecf9;
}

.hotel-form-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.hotel-side-panel-footer {
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: #fcf8ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: static;
  bottom: auto;
  width: 100%;
}

.hotel-step-status {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.hotel-side-panel-footer__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hotel-side-panel-footer__actions[data-step="gallery"] {
  width: 100%;
}

.hotel-side-panel-footer__actions[data-step="gallery"] #hotelCancelBtn {
  margin-right: auto;
  order: 1;
}

.hotel-side-panel-footer__actions[data-step="gallery"] #hotelBackBtn {
  order: 2;
}

.hotel-side-panel-footer__actions[data-step="gallery"] #hotelSaveBtn {
  order: 3;
}

.hotel-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.hotel-btn-primary {
  background: #3b82f6;
  color: white;
}

.hotel-btn-primary:hover {
  background: #2563eb;
}

.hotel-btn-secondary {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
}

.hotel-btn-secondary:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.hotel-required {
  color: #ef4444;
  margin-left: 2px;
}

.hotel-info-icon {
  cursor: help;
  margin-left: 5px;
  font-size: 14px;
  color: #6b7280;
}

/* Hotel Card Styles */
.hotel-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.hotel-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

.hotel-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 8px;
}

.hotel-card-name {
  font-weight: 600;
  color: #111827;
  font-size: 16px;
}

.hotel-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #f59e0b;
}

.hotel-card-location {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

.hotel-card-details {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}

.hotel-card-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.hotel-status-active {
  background: #d1fae5;
  color: #065f46;
}

.hotel-status-inactive {
  background: #fee2e2;
  color: #991b1b;
}

.hotel-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.hotel-card-actions button {
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.hotel-btn-edit {
  background: #3b82f6;
  color: white;
  border: none;
}

.hotel-btn-edit:hover {
  background: #2563eb;
}

.hotel-btn-delete {
  background: #ef4444;
  color: white;
  border: none;
}

.hotel-btn-delete:hover {
  background: #dc2626;
}

/* City Group Styles */
.hotel-city-group {
  margin-bottom: 24px;
}

.hotel-city-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

.hotel-city-count {
  font-size: 14px;
  color: #6b7280;
  font-weight: 400;
  margin-left: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .hotel-side-panel {
    width: calc(100vw - 1rem);
    height: 96vh;
    border-radius: 12px;
  }
  
  .hotel-side-panel-footer {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hotel-side-panel-footer__actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  
  .hotel-form-grid {
    grid-template-columns: 1fr;
  }

  .hotel-checkbox-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hotel-interior-grid {
    grid-template-columns: 1fr;
  }

  .hotel-gallery-upload-grid {
    grid-template-columns: 1fr;
  }

  .hotel-image-preview {
    grid-template-columns: 1fr 1fr;
  }
}
