/* General Styling */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5dc;
  color: #5c4033;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Profile Header */
.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.profile-info {
  flex: 1;
}

.profile-info h1 {
  margin: 0;
  font-size: 2rem;
  color: #d4a373;
}

.profile-info p {
  margin: 0.5rem 0;
  color: #5c4033;
}

.profile-info #braider-location {
  display: inline-block;
  margin-left: 1rem;
  font-size: 1rem;
  color: #666;
}

/* Buttons */
.profile-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.profile-buttons button,
.profile-buttons .profile-button {
  padding: 0.75rem 1.5rem;
  background-color: #d4a373;
  color: #ffffff;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.profile-buttons button:hover,
.profile-buttons .profile-button:hover {
  background-color: #b22222;
}

.profile-buttons button.active {
  background-color: #b22222;
}

/* Calendar and Booking Form */
.calendar-booking-container {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.calendar-container {
  flex: 2;
}

#calendar {
  width: 100%;
  height: 600px; /* Adjust height as needed */
}

.booking-form-container {
  flex: 1;
}

.booking-form {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Gallery Section */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-container img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.thumbnail {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.thumbnail:hover {
  transform: scale(1.05);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Photo Viewer */
.photo-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  align-items: center;
}

.main-photo {
  position: relative;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-photo img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.close-viewer {
  position: absolute;
  top: -40px;
  right: -40px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.nav-buttons {
  display: flex;
  gap: 1rem;
}

.nav-button {
  padding: 0.75rem 1.5rem;
  background-color: #d4a373;
  color: #ffffff;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.nav-button:hover {
  background-color: #b22222;
}

.no-photos {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .thumbnail-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .nav-button {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
  }

  .nav-button.prev {
    left: 10px;
  }

  .nav-button.next {
    right: 10px;
  }

  .close-viewer {
    top: 10px;
    right: 10px;
  }
}

.recommendation-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}
.recommendation-count {
  font-size: 0.95rem;
  color: #5c4033;
}
.recommend-btn {
  background: #d4a373;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.recommend-btn:hover {
  background: #b5834f;
}
.recommend-btn.active {
  background: #5c4033;
}

.time-input-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.time-input-container input[type="date"],
.time-input-container select {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  min-width: 0;
}

.time-input-container select {
  background-color: white;
  cursor: pointer;
}

.time-input-container input[type="date"]:focus,
.time-input-container select:focus {
  border-color: #d4a373;
  outline: none;
}

.braider-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5c4033;
  font-size: 0.95rem;
  margin: 5px 0;
}
.braider-phone i {
  color: #d4a373;
}
.external-booking-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #d4a373;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin: 10px 0;
  transition: background 0.2s;
}
.external-booking-btn:hover {
  background: #b5834f;
}

/* Claim Banner */
.claim-banner {
  background: linear-gradient(135deg, #f0ebe4, #e8ddd3);
  border: 2px dashed #d4a373;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin: 16px 0;
}
.claim-banner h3 {
  color: #2c1810;
  margin: 0 0 8px;
}
.claim-banner p {
  color: #5c4033;
  margin: 0 0 14px;
  font-size: 0.92rem;
}
.claim-btn {
  background: #d4a373;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.claim-btn:hover { background: #b5834f; }
.claim-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.claim-modal-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  position: relative;
}
.claim-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}
.claim-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  margin: 8px 0 12px;
  box-sizing: border-box;
}
.claim-error {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 4px;
}

.ext-platform-links {
  display: flex;
  gap: 12px;
  margin: 6px 0;
}
.ext-platform-link {
  font-size: 0.75rem;
  color: #aaa;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid #ddd;
  border-radius: 14px;
  transition: color 0.2s;
}
.ext-platform-link:hover {
  color: #888;
  border-color: #bbb;
}
