/**
 * TablDeals Public Styles
 *
 * Main stylesheet for all public-facing components
 */

/* ========================================
   SEARCH FORM STYLES
   ======================================== */
.td-search-form {
  max-width: 900px;
  margin: 0 auto;
}

.td-search-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.td-search-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.td-search-form .td-field {
  display: flex;
  flex-direction: column;
}

.td-search-form .td-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.td-search-form .td-field-zip {
  flex: 0 0 auto;
}

.td-search-form .td-field-zip input {
  width: 110px;
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  text-align: center;
  font-weight: 500;
}

.td-search-form .td-field-zip input:focus {
  outline: none;
  border-color: #2baa6d;
}

.td-search-form .td-field-zip input:invalid:not(:placeholder-shown) {
  border-color: #ff6b6b;
}

/* Or Divider */
.td-or-divider {
  display: flex;
  align-items: center;
  padding-bottom: 8px;
}

.td-or-divider span {
  color: #999;
  font-size: 13px;
  font-weight: 500;
  text-transform: lowercase;
}

/* Location Button */
.td-field-location {
  flex: 0 0 auto;
}

.td-use-location-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.td-use-location-btn:hover {
  background: linear-gradient(135deg, #333 0%, #444 100%);
  transform: translateY(-1px);
}

.td-use-location-btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.td-use-location-btn.td-location-set {
  background: linear-gradient(135deg, #2baa6d 0%, #239b5e 100%);
}

.td-use-location-btn svg {
  flex-shrink: 0;
}

/* Radius Field */
.td-field-radius {
  flex: 0 0 auto;
}

.td-field-radius select {
  padding: 12px 36px 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E")
    no-repeat right 12px center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  min-width: 130px;
}

.td-field-radius select:focus {
  outline: none;
  border-color: #2baa6d;
}

/* Search Button */
.td-search-btn {
  padding: 12px 28px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.td-search-btn:hover {
  background: #2baa6d;
}

/* Location Status */
.td-location-status {
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
  min-height: 20px;
}

.td-location-status:empty {
  display: none;
}

.td-location-status .td-loading {
  color: #666;
}

.td-location-status .td-success {
  color: #2baa6d;
  font-weight: 500;
}

.td-location-status .td-error {
  color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
  .td-search-box {
    padding: 16px;
  }

  .td-search-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .td-search-form .td-field-zip {
    flex: 1;
    min-width: 100px;
  }

  .td-search-form .td-field-zip input {
    width: 100%;
  }

  .td-or-divider {
    padding-bottom: 0;
  }

  .td-field-location {
    flex: 1;
  }

  .td-use-location-btn {
    width: 100%;
  }

  .td-field-radius {
    flex: 1;
    min-width: 120px;
  }

  .td-field-radius select {
    width: 100%;
  }

  .td-search-btn {
    width: 100%;
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .td-search-row {
    flex-direction: column;
  }

  .td-or-divider {
    width: 100%;
    justify-content: center;
    padding: 4px 0;
  }

  .td-search-form .td-field {
    width: 100%;
  }

  .td-location-text {
    display: inline;
  }
}

/* ========================================
   SEARCH RESULTS STYLES
   ======================================== */
.td-search-summary {
  margin: 2rem auto;
}

.td-search-summary h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.td-results-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 800px !important;
}

/* Restaurant Card */
.td-restaurant-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.td-restaurant-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.td-card-link {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  flex-direction: column;
}

.td-card-link:hover {
  text-decoration: none;
  color: inherit;
}

/* Image Section */
.td-card-image-wrapper {
  position: relative;
  flex-shrink: 0;
  text-align: center;
}

.td-card-image {
  width: 220px;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
  margin: auto;
}

.td-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.td-card-image.td-default-logo img {
  object-fit: contain;
  padding: 1.5rem;
}

/* Content Section */
.td-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.td-restaurant-name {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: #1a1a1a;
  line-height: 1.2;
  flex: 1;
  margin-block: 12px !important;
}

.td-restaurant-distance {
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  padding: 8px;
  border-radius: 8px;
  background: #10b981;
  display: inline-block;
  margin-top: 16px;
}

/* Restaurant Info */
.td-restaurant-info {
  display: flex;
  /* align-items: center; */
  gap: 1.5rem;
  flex-wrap: wrap;
  color: #666;
  font-size: 1rem;
  justify-content: center;
}

.td-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.td-info-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #999;
}

.td-info-description {
  color: #666;
  flex: 1 0 100%;
  margin-top: -0.5rem;
}

/* Days/Dates Row */
.td-dates-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
}

.td-dates-row::-webkit-scrollbar {
  height: 6px;
}

.td-dates-row::-webkit-scrollbar-track {
  background: transparent;
}

.td-dates-row::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

.td-date-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.td-date-item:hover {
  border-color: #2baa6d;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(43, 170, 109, 0.2);
}

.td-date-day {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.td-date-number {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0.25rem 0;
}

.td-date-discount {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 0.25rem;
}

.td-time-range {
  display: block;
  background: #1e3a5f;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-top: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.td-time-range:hover {
  background: #2a4d7a;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.td-capacity-info {
  margin-top: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: #f0f9ff;
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
}

.td-capacity-label {
  color: #666;
  font-weight: 500;
}

.td-capacity-number {
  color: #10b981;
  font-weight: 700;
  font-size: 14px;
}

.td-no-deals-message,
.td-no-deal-day {
  padding: 16px;
  background: #f5f5f5;
  color: #999;
  border-radius: 6px;
  font-size: 15px;
  text-align: center;
}

/* ========================================
   BOOKING FORM STYLES
   ======================================== */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.td-booking-wrapper {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.td-booking-summary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.td-booking-summary h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.td-summary-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.td-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.td-summary-row:last-child {
  border-bottom: none;
}

.td-label {
  font-weight: 500;
  opacity: 0.9;
}

.td-value {
  font-weight: 700;
  font-size: 18px;
}

.td-coupon-code {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-family: monospace;
  letter-spacing: 1px;
}

.td-low-availability {
  color: #ffeb3b;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.td-deal-details {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.td-deal-details .td-value {
  font-weight: 400;
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
}

.td-booking-form {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.td-booking-form h3 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  color: #1a1a1a;
}

.td-form-row {
  margin-bottom: 1.5rem;
}

.td-form-row label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.required {
  color: #ff6b6b;
}

.td-form-row input[type="date"],
.td-form-row input[type="text"],
.td-form-row input[type="email"],
.td-form-row input[type="tel"],
.td-form-row input[type="number"],
.td-form-row input[type="time"],
.td-form-row input[type="file"],
.td-form-row select,
.td-form-row textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
  font-family: inherit;
}

.td-form-row input:focus,
.td-form-row select:focus,
.td-form-row textarea:focus {
  outline: none;
  border-color: #667eea;
}

.td-payment-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.td-payment-section h3 {
  margin: 0 0 1.5rem;
  font-size: 22px;
}

.td-payment-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.td-payment-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.td-payment-option:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.td-payment-option input[type="radio"] {
  margin-top: 0.25rem;
  margin-right: 1rem;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.td-payment-option input[type="radio"]:checked {
  accent-color: #667eea;
}

.td-option-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.td-option-badge {
  display: inline-block;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  margin-bottom: 0.5rem;
}

.td-option-title {
  font-weight: 700;
  font-size: 16px;
  color: #1a1a1a;
}

.td-option-price {
  font-weight: 700;
  font-size: 20px;
  color: #667eea;
  margin: 0.25rem 0;
}

.td-option-description {
  font-size: 16px;
  color: #777;
}

.td-option-featured {
  border-color: #667eea;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
}

.td-form-actions {
  margin-top: 2rem;
}

.td-book-now-btn,
.td-submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.td-book-now-btn:hover:not(:disabled),
.td-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  text-decoration: none;
}

.td-book-now-btn:disabled,
.td-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.td-booking-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  display: none;
}

.td-booking-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.td-booking-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

.td-booking-login-required {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #e8e8e8;
  border-radius: 16px;
  margin: 3rem auto;
  max-width: 550px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.td-booking-login-required h3 {
  margin: 0 0 1.5rem;
  color: #1a1a1a;
  font-size: 2rem;
  font-weight: 700;
}

.td-booking-login-required p {
  font-size: 18px !important;
  color: #555;
  line-height: 1.6;
  margin: 0 0 2rem;
}

.td-booking-login-required a {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  margin: 0 0.5rem;
  transition: all 0.3s;
}

.td-booking-login-required a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  text-decoration: none;
}

/* ========================================
   MY BOOKINGS STYLES
   ======================================== */
.td-my-bookings-wrapper {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.td-my-bookings-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.td-bookings-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.td-booking-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.td-booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e8e8e8;
}

.td-booking-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.td-status-badge {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.td-status-badge.confirmed {
  background: #d4edda;
  color: #155724;
}

.td-status-badge.pending {
  background: #fff3cd;
  color: #856404;
}

.td-booking-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.td-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  gap: 1rem;
}

.td-detail-row .td-label {
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 120px;
}

.td-detail-row .td-value {
  text-align: right;
  word-break: break-word;
}

.td-confirmation-code {
  font-family: monospace;
  font-weight: 700;
  color: #667eea;
}

.td-no-bookings {
  text-align: center;
  padding: 3rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.td-browse-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #667eea;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.td-browse-btn:hover {
  background: #764ba2;
  text-decoration: none;
}

/* ========================================
   LOGIN REQUIRED / ERROR MESSAGES
   ======================================== */
.td-login-required,
.td-error,
.td-no-restaurant {
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  margin: 2rem auto;
  max-width: 500px;
}

.td-login-required h3,
.td-error h3,
.td-no-restaurant h3 {
  margin: 0 0 1rem;
  color: #1a1a1a;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 968px) {
  .td-restaurant-card {
    flex-direction: column;
  }

  .td-card-image-wrapper {
    width: 100%;
  }

  .td-card-image {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 640px) {
  .td-restaurant-top {
    flex-direction: column !important;
  }

  .td-restaurant-card {
    padding: 1rem;
  }

  .td-restaurant-name {
    font-size: 1.4rem;
  }

  .td-search-summary h2 {
    font-size: 1.5rem;
  }

  .td-restaurant-distance {
    margin-top: 0;
  }

  .td-restaurant-info {
    font-size: 0.95rem;
    gap: 1rem;
  }

  .td-card-image {
    height: 180px;
  }

  .td-booking-wrapper {
    padding: 0 0.5rem;
  }

  .td-booking-form {
    padding: 1.5rem;
  }
}

/* ========================================
   REGISTRATION & LOGIN FORM STYLES
   ======================================== */
.td-register-wrapper,
.td-login-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;

}

.td-register-container,
.td-login-container {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.td-register-container h2,
.td-login-container h2 {
  margin: 0 0 2rem;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
}

.td-reg-success,
.td-reg-error,
.td-login-info,
.td-login-error,
.td-login-success {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 16px;
}

.td-reg-success,
.td-login-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  text-align: center;
}

.td-reg-error,
.td-login-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.td-login-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.td-register-form,
.td-login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.td-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.td-form-field label {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.td-form-field input {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
  font-family: inherit;
}

.td-form-field input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.td-form-field input:invalid:not(:placeholder-shown) {
  border-color: #ff6b6b;
}

.td-form-field small {
  font-size: 14px;
  color: #666;
}

.td-remember-me {
  margin: -0.5rem 0 0 0;
}

.td-remember-me label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500 !important;
}

.td-remember-me input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: #667eea;
}

.td-newsletter-optin {
  margin: 0.5rem 0 1rem 0;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.15);
}

.td-newsletter-optin label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 400 !important;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

.td-newsletter-optin input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: #667eea;
}

.td-newsletter-optin span {
  flex: 1;
}

.td-register-btn,
.td-login-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.5rem;
}

.td-register-btn:hover,
.td-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.td-register-footer,
.td-login-footer {
  margin-top: 2rem;
  text-align: center;
  border-top: 1px solid #e8e8e8;
  padding-top: 1.5rem;
}

.td-register-footer p,
.td-login-footer p {
  margin: 0.5rem 0;
  color: #666;
  font-size: 15px;
}

.td-register-footer a,
.td-login-footer a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.td-register-footer a:hover,
.td-login-footer a:hover {
  text-decoration: underline;
}

.td-login-success h3 {
  margin: 0 0 1rem;
  color: #1a1a1a;
  font-size: 1.5rem;
}

.td-login-success p {
  margin: 0 0 1.5rem;
  color: #666;
}

.td-login-success .td-dashboard-btn,
.td-login-success .td-home-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  margin: 0.5rem 0.5rem 0;
  transition: all 0.3s;
}

.td-login-success .td-dashboard-btn:hover,
.td-login-success .td-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  text-decoration: none;
}

/* ========================================
   RESTAURANT OWNER LOGIN FORM STYLES
   ======================================== */
.td-restaurant-login-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;

}

.td-restaurant-login-container {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.td-restaurant-login-container h2 {
  margin: 0 0 2rem;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
}

.td-restaurant-login-error,
.td-restaurant-login-success {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 16px;
}

.td-restaurant-login-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.td-restaurant-login-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  text-align: center;
}

.td-restaurant-login-success h3 {
  margin: 0 0 1rem;
  color: #1a1a1a;
  font-size: 1.5rem;
}

.td-restaurant-login-success p {
  margin: 0 0 1.5rem;
  color: #666;
}

.td-restaurant-login-success .td-dashboard-btn,
.td-restaurant-login-success .td-home-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  margin: 0.5rem 0.5rem 0;
  transition: all 0.3s;
}

.td-restaurant-login-success .td-dashboard-btn:hover,
.td-restaurant-login-success .td-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  text-decoration: none;
}

.td-restaurant-login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.td-restaurant-login-form .td-form-field input {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
  font-family: inherit;
}

.td-restaurant-login-form .td-form-field input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.td-restaurant-login-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.5rem;
}

.td-restaurant-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.td-restaurant-login-footer {
  margin-top: 2rem;
  text-align: center;
  border-top: 1px solid #e8e8e8;
  padding-top: 1.5rem;
}

.td-restaurant-login-footer p {
  margin: 0.5rem 0;
  color: #666;
  font-size: 15px;
}

.td-restaurant-login-footer a {
  color: #10b981;
  text-decoration: none;
  font-weight: 600;
}

.td-restaurant-login-footer a:hover {
  text-decoration: underline;
}

/* Responsive styles for restaurant login */
@media (max-width: 640px) {
  .td-restaurant-login-container {
    padding: 2rem 1.5rem;
  }

  .td-restaurant-login-container h2 {
    font-size: 1.75rem;
  }
}

/* ========================================
   RESTAURANT APPLICATION FORM STYLES
   ======================================== */
.td-restaurant-application-wrapper {
  min-height: 80vh;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.td-application-header {
  text-align: center;
  margin-bottom: 3rem;
  color: #fff;
}

.td-application-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #fff;
}

.td-application-header p {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
}

.td-application-form {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.td-form-section {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.td-form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.td-form-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.td-form-section h3::before {
  content: "";
  width: 4px;
  height: 1.5rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 2px;
}

.td-application-form .td-form-row {
  margin-bottom: 1.5rem;
}

.td-application-form .td-form-row label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.td-application-form .td-form-row input[type="text"],
.td-application-form .td-form-row input[type="email"],
.td-application-form .td-form-row input[type="tel"],
.td-application-form .td-form-row input[type="file"],
.td-application-form .td-form-row textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s;
  font-family: inherit;
}

.td-application-form .td-form-row input:focus,
.td-application-form .td-form-row textarea:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.td-application-form .td-form-row input[type="file"] {
  padding: 0.75rem;
  cursor: pointer;
}

.td-application-form .td-form-row textarea {
  resize: vertical;
  min-height: 100px;
}

.td-form-actions {
  margin-top: 2.5rem;
  text-align: center;
}

.td-submit-btn {
  padding: 1rem 3rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}

.td-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.td-form-success {
  max-width: 600px;
  margin: 3rem auto;
  background: #fff;
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.td-form-success svg {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
}

.td-form-success h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #10b981;
  margin: 0 0 1rem;
}

.td-form-success p {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 2rem;
}

.td-back-home {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}

.td-back-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  text-decoration: none;
}

.td-form-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 16px;
}

.td-application-footer {
  max-width: 800px;
  margin: 2rem auto 0;
  text-align: center;
  padding: 1.5rem;
  color: #fff;
}

.td-application-footer p {
  margin: 0.5rem 0;
  font-size: 15px;
  opacity: 0.95;
}

.td-application-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  transition: all 0.3s;
}

.td-application-footer a:hover {
  border-bottom-color: #fff;
  opacity: 1;
}

/* Responsive styles for application form */
@media (max-width: 768px) {
  .td-application-header h2 {
    font-size: 2rem;
  }

  .td-application-header p {
    font-size: 1rem;
  }

  .td-application-form {
    padding: 2rem 1.5rem;
  }

  .td-form-section h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 640px) {
  .td-restaurant-application-wrapper {
    padding: 2rem 0.5rem;
  }

  .td-application-form {
    padding: 1.5rem 1rem;
    border-radius: 12px;
  }

  .td-application-header h2 {
    font-size: 1.75rem;
  }

  .td-submit-btn {
    width: 100%;
  }

  .td-form-success {
    padding: 2rem 1.5rem;
  }

  .td-form-success h3 {
    font-size: 1.5rem;
  }
}

/* ========================================
   TOAST NOTIFICATION STYLES
   ======================================== */
.td-toast {
  position: fixed;
  top: -100px;
  right: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 350px;
  max-width: 450px;
  z-index: 10000;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-left: 4px solid #10b981;
}

.td-toast-show {
  top: 20px;
}

.td-toast-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.td-toast-content {
  flex: 1;
}

.td-toast-content h4 {
  margin: 0 0 0.25rem;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.td-toast-content p {
  margin: 0;
  font-size: 15px;
  color: #666;
  line-height: 1.4;
}

.td-toast-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: all 0.2s;
}

.td-toast-close:hover {
  background: #f5f5f5;
  color: #333;
}

/* Toast responsive styles */
@media (max-width: 640px) {
  .td-toast {
    min-width: auto;
    max-width: calc(100% - 40px);
    right: 10px;
    left: 10px;
  }

  .td-toast-show {
    top: 10px;
  }

  .td-register-container,
  .td-login-container {
    padding: 2rem 1.5rem;
  }

  .td-register-container h2,
  .td-login-container h2 {
    font-size: 1.75rem;
  }
}

/* ========================================
   FILTER SIDEBAR STYLES
   ======================================== */
.td-filters-container {
  display: flex;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
  align-items: flex-start;
}

.td-filters-sidebar {
  flex: 0 0 280px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: sticky;
  top: 20px;
}

.td-filters-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.td-filters-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

.td-clear-filters {
  color: #667eea;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.td-clear-filters:hover {
  background: #fff;
  text-decoration: none;
}

.td-filter-group {
  border-bottom: 1px solid #e8e8e8;
}

.td-filter-group:last-of-type {
  border-bottom: none;
}

.td-filter-toggle {
  width: 100%;
  padding: 1rem 1.5rem;
  background: #fff;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}

.td-filter-toggle:hover {
  background: #f8f9fa;
}

.td-filter-toggle.active {
  background: #f0f4ff;
  color: #667eea;
}

.td-chevron {
  transition: transform 0.3s;
}

.td-filter-options {
  display: none;
  padding: 1rem 1.5rem;
  background: #fafbfc;
  max-height: 300px;
  overflow-y: auto;
}

.td-filter-options::-webkit-scrollbar {
  width: 6px;
}

.td-filter-options::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.td-filter-options::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.td-filter-options::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.td-checkbox-label {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: color 0.2s;
}

.td-checkbox-label:hover {
  color: #667eea;
}

.td-checkbox-label input[type="checkbox"] {
  margin-right: 0.75rem;
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: #667eea;
}

.td-checkbox-label span {
  font-size: 15px;
  color: #333;
}

.td-time-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.td-time-inputs label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.td-time-inputs label span {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.td-time-inputs input[type="time"] {
  padding: 0.5rem;
  border: 2px solid #e8e8e8;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.td-time-inputs input[type="time"]:focus {
  outline: none;
  border-color: #667eea;
}

.td-filter-actions {
  padding: 1.5rem;
  border-top: 1px solid #e8e8e8;
  background: #fff;
}

.td-apply-filters {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.td-apply-filters:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.td-results-wrapper {
  flex: 1;
  min-width: 0;
}

.td-mobile-filter-toggle {
  display: none;
  width: 100%;
  padding: 1rem;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Responsive Filter Styles */
@media (max-width: 768px) {
  .td-filters-container {
    flex-direction: column;
  }

  .td-filters-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  .td-filters-sidebar.active {
    left: 0;
  }

  .td-mobile-filter-toggle {
    display: flex;
  }

  .td-results-wrapper {
    width: 100%;
  }

  /* Overlay when filters are open */
  .td-filters-sidebar.active::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }
}

@media (max-width: 640px) {
  .td-filters-sidebar {
    width: 90%;
    max-width: 100%;
  }

  .td-filter-toggle {
    font-size: 15px;
    padding: 0.875rem 1rem;
  }

  .td-filter-options {
    padding: 0.875rem 1rem;
  }

  .td-checkbox-label span {
    font-size: 14px;
  }
}

/* ========================================
   NEW SEARCH RESULTS LAYOUT - FILTERS ON RIGHT
   ======================================== */

/* Main container with left results + right filters */
.td-search-container {
  display: flex !important;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1400px !important;
  padding: 0 1rem;
  align-items: flex-start;
  flex-wrap: nowrap;
}

/* Force proper structure */
.td-search-container > * {
  box-sizing: border-box;
}

/* Left side - search results */
.td-results-main {
  flex: 1;
  min-width: 0;
}

/* Results header with count */
.td-results-header {
  margin-bottom: 1.5rem;
}

.td-results-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

/* Results list container */
.td-results-list {
  display: flex !important;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

/* Individual restaurant item - vertical layout with full-width dates */
.td-restaurant-item {
  background: #fff;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid #f0f0f0;
  width: 100%;
  box-sizing: border-box;
}

.td-restaurant-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Top row: logo on left, info on right */
.td-restaurant-top {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  align-items: flex-start;
}

/* Restaurant image on left */
.td-restaurant-image {
  flex-shrink: 0 !important;
  width: 180px !important;
  min-width: 180px;
  max-width: 180px;
  border-radius: 8px;
  overflow: hidden;
}

 

.td-restaurant-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
  display: block;
}

.td-restaurant-image:hover img {
  transform: scale(1.05);
}

/* Restaurant info area (title, cuisine, description, meta) */
.td-restaurant-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Keep old class for backwards compatibility */
.td-restaurant-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Restaurant header with name and meta */
.td-restaurant-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.td-restaurant-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Cuisine badges */
.td-cuisine-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}

.td-cuisine-label {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  font-family: sans-serif;
}

.td-cuisine-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #f3f4f6;
  color: #374151;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  font-family: sans-serif;
}

.td-restaurant-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  flex: 1;

  margin-bottom: 0 !important;
}
 

.td-restaurant-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 22px !important;
}

.td-restaurant-title a:hover {
  color: #265682;
}

.td-arrow-icon {
  opacity: 0.5;
  transition: transform 0.2s, opacity 0.2s;
}

.td-restaurant-title a:hover .td-arrow-icon {
  opacity: 1;
  transform: translateX(4px);
}

/* Rating display */
.td-restaurant-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 14px;
  white-space: nowrap;
}

.td-rating-score {
  font-weight: 700;
  color: #1a1a1a;
}

.td-star-icon {
  flex-shrink: 0;
}

.td-review-count {
  color: #666;
  font-weight: 500;
}

.td-restaurant-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 14px;
  color: #666;
}

.td-restaurant-meta svg.td-icon {
  margin-right: 0.25rem;
  vertical-align: middle;
  color: #999;
}

.td-restaurant-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Location link styles */
.td-location-link-wrapper {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.td-location-label {
  font-weight: 600;
  color: #374151;
  margin-right: 0.25rem;
}

.td-location-address-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #667eea;
  text-decoration: none;
  transition: color 0.2s ease;
}

.td-location-address-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

.td-location-address-link .td-external-icon {
  opacity: 0.6;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.td-location-address-link:hover .td-external-icon {
  opacity: 1;
}

/* Restaurant description */
.td-restaurant-description {
  margin-top: 0.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid #f0f0f0;
}

.td-restaurant-description p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

/* Dates grid - horizontal dates with times */
.td-dates-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
  width: 100%;
}

/* Empty date styling */
.td-date-empty {
  opacity: 0.6;
  cursor: default;
}

.td-date-empty:hover {
  transform: none;
  box-shadow: none;
  border-color: #e8e8e8;
  background: #fff;
}

.td-date-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  min-width: 0;
  transition: all 0.2s;
}

.td-date-column:hover {
  background: #f0f4ff;
  transform: translateY(-2px);
}

.td-date-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.td-day-name {
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.td-time-slot {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Make entire deal box clickable */
a.td-time-slot-link {
  text-decoration: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px;
  margin: -6px;
  transition: all 0.2s ease;
}

a.td-time-slot-link:hover {
  background: rgba(16, 185, 129, 0.1);
  transform: scale(1.02);
  text-decoration: none;
}

a.td-time-slot-link:hover .td-deal-badge {
  background: #0d9668;
}

.td-time-link {
  display: block;
  background: #1e3a5f;
  color: #fff;
  padding: 0.5rem 0.25rem;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

a.td-time-slot-link:hover .td-time-link {
  background: #2a4d7a;
}

a .td-time-link:hover,
.td-time-link:hover {
  background: #2a4d7a;
  text-decoration: none;
  color: #fff;
}
 .td-coupon-name{
    display: inline-block;
    background: #FF9800;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.3px;
    white-space: normal;
    align-self: center;
    max-width: 140px;
    line-height: 1.3;
    margin-bottom: 4px;
}
.td-deal-badge {
  display: inline-block;
  background: #10b981;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.3px;
  white-space: normal;
  align-self: center;
  max-width: 140px;
  line-height: 1.3;
}

.td-seats-available {
  display: block;
  font-size: 14px;
  color: #666;
  font-weight: 600;
  margin-top: 4px;
  text-align: center;
}

.td-no-time {
        color: #d02d53;
    font-size: 13px;
    text-align: center;
}

.td-no-deals-message {
  background: #f8f9fa;
  border: 1px dashed #ddd;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  text-align: center;
  margin-top: 0.75rem;
      align-items: center;
    justify-content: center;
    display: flex;
}

.td-no-deals-message span {
  color: #888;
  font-size: 14px;
  font-weight: 500;
}

/* Update filters sidebar to be on right */
.td-filters-sidebar {
  flex: 0 0 300px !important;
  min-width: 300px;
  max-width: 300px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: sticky;
  top: 20px;
  display: flex !important;
  flex-direction: column;
  align-self: flex-start;
}

.td-restaurant-login-container input[type="checkbox"] {
  width: fit-content;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .td-dates-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 968px) {
  .td-search-container {
    flex-direction: column-reverse;
  }

  .td-filters-sidebar {
    flex: 0 0 auto;
    width: 100%;
    position: relative;
    top: 0;
    max-height: none;
  }

  .td-results-main {
    width: 100%;
  }

  .td-dates-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .td-search-container {
    padding: 0 0.5rem;
  }

  .td-results-header h2 {
    font-size: 1.25rem;
  }

  .td-restaurant-item {
    padding: 0.75rem !important;
  }

  .td-restaurant-top {
    gap: 0.75rem;
  }

 

  .td-restaurant-image a {
    height: 105px;
  }

  .td-restaurant-info {
    gap: 0.35rem;
  }

  .td-restaurant-title {
    font-size: 1.15rem !important;
    margin-top: 0 !important;
  }

  .td-cuisine-badges {
    gap: 0.35rem;
  }

  .td-cuisine-badge {
    font-size: 11px;
    padding: 3px 8px;
  }

  .td-restaurant-meta {
    font-size: 12px;
    gap: 0.75rem;
  }

  .td-restaurant-description {
    padding: 0.5rem 0;
  }

  .td-restaurant-description p {
    font-size: 13px;
    line-height: 1.5;
  }
.td-restaurant-top,.td-restaurant-header {
    align-items: anchor-center;
}

  .td-dates-grid {
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 0.4rem !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
  }

  .td-dates-grid::-webkit-scrollbar {
    height: 4px;
  }

  .td-dates-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
  }

  .td-date-column {
    padding: 0.5rem 0.3rem !important;
    min-width: 80px;
    background: #fff !important;
  }

  .td-date-header {
    margin-bottom: 0.4rem;
  }

  .td-day-name {
    font-size: 10px !important;
    line-height: 1.2;
    font-weight: 700 !important;
  }

  .td-time-slot {
    gap: 0.4rem;
  }

  .td-time-link {
    font-size: 10px !important;
    padding: 0.4rem 0.2rem !important;
    white-space: nowrap;
    line-height: 1.2;
  }

  .td-deal-badge {
    font-size: 10px !important;
    padding: 3px 6px !important;
    line-height: 1.2;
    max-width: 100px;
  }

  .td-seats-available {
    font-size: 10px !important;
    margin-top: 3px;
    line-height: 1.2;
  }

  .td-no-time {
    font-size: 16px;
    padding: 0.75rem 0;
  }
}

/* ========================================
   TIME RANGE SLIDER STYLES
   ======================================== */

/* Expanded filter group (always open) */
.td-filter-group-expanded {
  background: #f8f9fa;
}

.td-filter-toggle-static {
  padding: 1rem 1.5rem;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  background: #f8f9fa;
}

.td-filter-visible {
  display: block !important;
}

/* Time range slider container */
.td-time-range-slider {
  padding: 0.5rem 0;
}

.td-time-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.td-slider-container {
  position: relative;
  width: 100%;
  height: 40px;
}

.td-time-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: transparent;
  border-radius: 3px;
  outline: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.td-time-slider::-webkit-slider-runnable-track {
  background: #e8e8e8;
  height: 6px;
  border-radius: 3px;
}

.td-time-slider::-moz-range-track {
  background: #e8e8e8;
  height: 6px;
  border-radius: 3px;
}

.td-time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #265682;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  pointer-events: all;
}

.td-time-slider::-webkit-slider-thumb:hover {
  background: #1e4768;
  transform: scale(1.1);
}

.td-time-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #265682;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  pointer-events: all;
}

.td-time-slider::-moz-range-thumb:hover {
  background: #1e4768;
  transform: scale(1.1);
}

/* Stack the sliders for dual range effect */
.td-slider-container input[type="range"]:first-child {
  z-index: 4;
}

.td-slider-container input[type="range"]:last-child {
  z-index: 3;
}

/* Bring hovered, active, or focused slider to front */
.td-slider-container input[type="range"]:hover,
.td-slider-container input[type="range"]:focus,
.td-slider-container input[type="range"]:active {
  z-index: 10 !important;
}

/* Improve date column styling */
.td-date-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8f9fa;
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  min-width: 0;
  transition: all 0.2s;
  justify-content: center;
}

.td-date-column:hover {
  background: #f8f9fa;
  border-color: #265682;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(38, 86, 130, 0.1);
}

/* ========================================
   TOP FILTER DROPDOWNS STYLES
   ======================================== */

/* Top filters container */
.td-top-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Individual filter item wrapper */
.td-top-filter-item {
  position: relative;
}

/* Filter button */
.td-top-filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.td-top-filter-btn:hover {
  border-color: #265682;
  background: #f8f9fa;
}

.td-top-filter-btn.active {
  border-color: #265682;
  background: #265682;
  color: #fff;
}

/* Icons inside filter button */
.td-top-filter-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Dropdown arrow icon */
.td-dropdown-arrow {
  transition: transform 0.2s;
}

.td-top-filter-btn.active .td-dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown menu */
.td-top-filter-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: #fff;
  border: 2px solid #265682;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  max-width: 320px;
  z-index: 1000;
  overflow: hidden;
}

.td-top-filter-dropdown.active {
  display: block;
}

/* Filter option with checkbox */
.td-filter-option {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.td-filter-option:last-child {
  border-bottom: none;
}

.td-filter-option:hover {
  background: #f8f9fa;
}

.td-filter-option input[type="checkbox"],
.td-filter-option input[type="radio"] {
  margin-right: 0.75rem;
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: #265682;
}

.td-filter-option input[type="checkbox"]:checked,
.td-filter-option input[type="radio"]:checked {
  accent-color: #265682;
}

.td-filter-option span {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

.td-filter-option:has(input[type="checkbox"]:checked),
.td-filter-option:has(input[type="radio"]:checked) {
  background: #f0f4ff;
}

.td-filter-option:has(input[type="checkbox"]:checked) span,
.td-filter-option:has(input[type="radio"]:checked) span {
  color: #265682;
  font-weight: 600;
}

/* Search input wrapper for location filter */
.td-search-input-wrapper {
  padding: 0.75rem;
  border-bottom: 2px solid #e8e8e8;
  background: #fafbfc;
}

.td-location-search {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 2px solid #e8e8e8;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.td-location-search:focus {
  outline: none;
  border-color: #265682;
  box-shadow: 0 0 0 3px rgba(38, 86, 130, 0.1);
}

.td-location-search::placeholder {
  color: #999;
}

/* Location list container */
.td-location-list {
  max-height: 280px;
  overflow-y: auto;
}

.td-location-list::-webkit-scrollbar {
  width: 6px;
}

.td-location-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.td-location-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.td-location-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Hide location options during search */
.td-location-item.hidden {
  display: none;
}

/* Responsive styles for top filters */

@media (max-width: 640px) {
  .td-top-filters {
    gap: 0.75rem;
  }

  .td-top-filter-btn {
    padding: 0.625rem 1rem;
    font-size: 14px;
  }

  .td-top-filter-dropdown {
    min-width: 200px;
    max-width: calc(100vw - 2rem);
  }
}

/* ========================================
   USER MENU STYLES
   ======================================== */

/* User greeting in menu */
.td-user-menu-item .td-user-greeting {
  color: #2baa6d;
  font-weight: 600;
  padding: 0.5rem 1rem;
  display: inline-block;
}

.td-user-menu-item a {
  cursor: default !important;
  pointer-events: none;
}

/* Dashboard and My Bookings menu items */
.td-dashboard-menu-item a,
.td-bookings-menu-item a {
  color: #333;
  transition: color 0.2s ease;
}

.td-dashboard-menu-item a:hover,
.td-bookings-menu-item a:hover {
  color: #2baa6d;
}

/* Logout link */
.td-logout-menu-item a {
  color: #dc3545;
  transition: color 0.2s ease;
}

.td-logout-menu-item a:hover {
  color: #c82333;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .td-user-menu-item .td-user-greeting {
    padding: 0.75rem 1rem;
    font-size: 15px;
  }
}

/* ========================================
   RESTAURANT DASHBOARD STYLES
   ======================================== */

.td-dashboard-wrapper {
  max-width: 1200px !important;
  margin: 40px auto;
  padding: 0 20px;
}

.td-restaurant-section {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.td-restaurant-section .td-restaurant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.td-restaurant-section .td-restaurant-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.td-view-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #265682;
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}

.td-view-page-btn:hover {
  background: #1e4563;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 86, 130, 0.3);
}

/* Stats Grid */
.td-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.td-stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  transition: transform 0.3s;
}

.td-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.td-stat-value {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.td-stat-label {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 500;
}

/* Deals Management Section */
.td-deals-management {
  margin-top: 30px;
}

.td-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.td-section-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.td-create-deal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #10b981;
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.td-create-deal-btn:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Coupons List */
.td-coupons-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.td-coupon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.3s;
}

.td-coupon-item:hover {
  background: #fff;
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.td-coupon-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.td-coupon-info h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.td-coupon-discount {
  display: inline-block;
  padding: 6px 12px;
  background: #fbbf24;
  color: #78350f;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
}

.td-coupon-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
}

.td-coupon-status.publish {
  background: #d1fae5;
  color: #065f46;
}

.td-coupon-status.draft {
  background: #e5e7eb;
  color: #374151;
}

.td-coupon-status.pending {
  background: #fed7aa;
  color: #92400e;
}

.td-coupon-actions {
  display: flex;
  gap: 10px;
}

.td-btn-edit,
.td-btn-delete {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.td-btn-edit {
  background: #3b82f6;
  color: #fff !important;
}

.td-btn-edit:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.td-btn-delete {
  background: #ef4444;
  color: #fff !important;
}

.td-btn-delete:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.td-no-coupons {
  text-align: center;
  padding: 40px 20px;
  background: #f9fafb;
  border-radius: 8px;
  border: 2px dashed #d1d5db;
}

.td-no-coupons p {
  color: #6b7280;
  font-size: 16px;
  margin: 0;
}

/* Bookings Section */
.td-bookings-section {
  margin-top: 40px;
}

.td-bookings-section h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.td-bookings-table {
  overflow-x: auto;
}

.td-bookings-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.td-bookings-table th {
  background: #f9fafb;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e5e7eb;
}

.td-bookings-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
  font-size: 15px;
}

.td-bookings-table tbody tr:hover {
  background: #f9fafb;
}

.td-bookings-table tbody tr:last-child td {
  border-bottom: none;
}

/* No Restaurant Found */
.td-no-restaurant {
  max-width: 600px;
  margin: 60px auto;
  text-align: center;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.td-no-restaurant h3 {
  font-size: 24px;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.td-no-restaurant p {
  color: #6b7280;
  font-size: 16px;
  margin-bottom: 25px;
}

.td-apply-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #10b981;
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}

.td-apply-btn:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ========================================
   COUPON/DEAL FORM STYLES
   ======================================== */

.td-coupon-form-wrapper {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.td-coupon-form-container {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.td-coupon-form-container h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 30px 0;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.td-coupon-form .td-form-row {
  margin-bottom: 25px;
}

.td-coupon-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 15px;
}

.td-coupon-form label .required {
  color: #ef4444;
  margin-left: 3px;
}

.td-coupon-form input[type="text"],
.td-coupon-form input[type="number"],
.td-coupon-form input[type="date"],
.td-coupon-form input[type="time"],
.td-coupon-form select,
.td-coupon-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  color: #1f2937;
  transition: all 0.3s;
}

.td-coupon-form input:focus,
.td-coupon-form select:focus,
.td-coupon-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.td-coupon-form small {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
}

.td-form-actions {
  display: flex;
  gap: 15px;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 2px solid #f0f0f0;
}

.td-submit-btn,
.td-cancel-btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.td-submit-btn {
  background: #10b981;
  color: #fff;
  flex: 1;
}

.td-submit-btn:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.td-cancel-btn {
  background: #6b7280;
  color: #fff !important;
}

.td-cancel-btn:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

/* Success/Error Messages for Forms */
.td-form-success,
.td-form-error {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-size: 15px;
  font-weight: 500;
}

.td-form-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.td-form-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
  .td-restaurant-section .td-restaurant-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .td-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .td-coupon-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .td-coupon-actions {
    width: 100%;
  }

  .td-btn-edit,
  .td-btn-delete {
    flex: 1;
    text-align: center;
  }

  .td-form-actions {
    flex-direction: column;
  }

  .td-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   SIMPLIFIED TOP FILTERS BAR
   ======================================== */

/* Main container - no sidebar - override flex layout */
.td-search-container.td-no-sidebar {
  display: block !important;
  max-width: 1000px !important;
  margin: 2rem auto !important;
  padding: 0 1rem !important;
  float: none !important;
  clear: both !important;
}

/* Force all direct children to be block-level and full width */
.td-search-container.td-no-sidebar > * {
  display: block !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
}

.td-search-container.td-no-sidebar .td-results-header {
  width: 100% !important;
  margin-bottom: 0 !important;
  display: block !important;
}

.td-search-container.td-no-sidebar .td-results-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.5rem 0;
}

.td-search-container.td-no-sidebar .td-results-main {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  display: block !important;
  float: none !important;
  clear: both !important;
}

.td-search-container.td-no-sidebar .td-results-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  width: 100% !important;
}

/* Restaurant cards - full width stacked */
.td-search-container.td-no-sidebar .td-restaurant-item {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  margin: 0 !important;
  float: none !important;
}

/* Top filters bar */
.td-top-filters-bar {
  width: 100% !important;
  display: block !important;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.td-filters-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.td-filters-label {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  margin-right: 0.25rem;
}

/* Filter dropdown wrapper */
.td-filter-dropdown-wrapper {
  position: relative;
}

/* Filter button */
.td-filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: #f8f9fa;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.td-filter-btn:hover {
  border-color: #265682;
  background: #fff;
}

.td-filter-btn.has-selection {
  background: #265682;
  border-color: #265682;
  color: #fff;
}

.td-filter-btn.has-selection .td-filter-icon,
.td-filter-btn.has-selection .td-dropdown-arrow {
  stroke: #fff;
}

.td-filter-dropdown-wrapper.open .td-filter-btn {
  border-color: #265682;
  box-shadow: 0 0 0 3px rgba(38, 86, 130, 0.1);
}

.td-filter-dropdown-wrapper.open .td-dropdown-arrow {
  transform: rotate(180deg);
}

/* Filter icons */
.td-filter-icon {
  flex-shrink: 0;
}

.td-filter-label {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.td-dropdown-arrow {
  flex-shrink: 0;
  transition: transform 0.2s;
}

/* Dropdown menu */
.td-filter-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: #fff;
  border: 2px solid #265682;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 240px;
  z-index: 1000;
  overflow: hidden;
}

.td-filter-dropdown-wrapper.open .td-filter-dropdown {
  display: block;
}

.td-filter-dropdown-scrollable .td-dropdown-content {
  max-height: 300px;
  overflow-y: auto;
}

.td-dropdown-content {
  padding: 0.5rem 0;
}

/* Checkbox filter option */
.td-filter-checkbox {
  display: flex;
  align-items: center;
  padding: 0.625rem 1rem;
  cursor: pointer;
  transition: background-color 0.15s;
  gap: 0.75rem;
}

.td-filter-checkbox:hover {
  background: #f8f9fa;
}

.td-filter-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #265682;
  cursor: pointer;
  flex-shrink: 0;
}

.td-checkbox-mark {
  display: none;
}

.td-checkbox-text {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.td-filter-checkbox:has(input:checked) {
  background: #f0f4ff;
}

.td-filter-checkbox:has(input:checked) .td-checkbox-text {
  color: #265682;
  font-weight: 600;
}

/* Time range in dropdown */
.td-filter-dropdown .td-time-range-slider {
  padding: 1rem;
}

.td-filter-dropdown .td-time-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.td-time-separator {
  color: #999;
  font-weight: 400;
}
.td-subscriber-profile .td-profile-grid {
  grid-template-columns: auto;
}

.td-filter-dropdown .td-slider-container {
  position: relative;
  height: 40px;
  margin: 0 0.5rem;
}

/* Apply button */
.td-apply-filters-btn {
  padding: 0.625rem 1.5rem;
  background: linear-gradient(135deg, #265682 0%, #1e4563 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.td-apply-filters-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(38, 86, 130, 0.3);
}

/* Clear filters link */
.td-clear-filters-link {
  color: #dc3545;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem;
  transition: color 0.2s;
}

.td-clear-filters-link:hover {
  color: #c82333;
  text-decoration: underline;
}

/* No results message */
.td-no-results {
  text-align: center;
  padding: 3rem;
  color: #666;
  font-size: 16px;
  background: #f8f9fa;
  border-radius: 10px;
  margin-top: 1rem;
}

/* Responsive styles for top filters bar */
@media (max-width: 768px) {
  .td-top-filters-bar {
    padding: 0.75rem 1rem;
  }

  .td-filters-row {
    gap: 0.75rem;
  }

  .td-filter-btn {
    padding: 0.5rem 0.75rem;
    font-size: 13px;
  }

  .td-filter-label {
    max-width: 80px;
  }

  .td-apply-filters-btn {
    padding: 0.5rem 1rem;
    font-size: 13px;
  }

  .td-filter-dropdown {
    min-width: 200px;
    max-width: calc(100vw - 2rem);
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .td-filters-row {
    justify-content: center;
  }

  .td-filters-label {
    width: 100%;
    text-align: center;
    margin-bottom: 0.25rem;
  }

  .td-filter-btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
  }

  .td-filter-label {
    max-width: none;
  }

  .td-apply-filters-btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  .td-clear-filters-link {
    width: 100%;
    text-align: center;
    display: block;
  }
}

/* ========================================
   MODERN RESTAURANT DASHBOARD
   ======================================== */

/* Dashboard Wrapper */
.td-dashboard-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 2rem;
  background: #f8fafc;
  min-height: 100vh;
}

/* Dashboard Header */
.td-dash-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.15);
}

.td-dash-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.td-dash-welcome h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.td-dash-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px !important;
  margin: 0;
}

.td-dash-header-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.td-dash-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.td-dash-btn svg {
  flex-shrink: 0;
}

.td-dash-btn-primary {
  background: #fff;
  color: #1e3a5f;
}

.td-dash-btn-primary:hover {
  background: #f0f4f8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.td-dash-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.td-dash-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Stats Cards */
.td-dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.td-dash-stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.td-dash-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.td-dash-stat-icon {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.td-dash-stat-icon svg {
  width: 32px;
  height: 32px;
}

.td-stat-deals .td-dash-stat-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.td-stat-bookings .td-dash-stat-icon {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: #fff;
}

.td-stat-views .td-dash-stat-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
}

.td-dash-stat-content {
  display: flex;
  flex-direction: column;
}

.td-dash-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.2;
}

.td-dash-stat-label {
  font-size: 16px;
  color: #64748b;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Main Content Grid */
.td-dash-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}

/* Dashboard Cards */
.td-dash-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.td-dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.td-dash-card-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.td-dash-card-title svg {
  color: #64748b;
  width: 22px;
  height: 22px;
}

.td-dash-card-title h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
  margin: 0 !important;
}

.td-dash-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: #fff;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.td-dash-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(17, 153, 142, 0.4);
  color: #fff;
}

.td-dash-card-body {
  padding: 1.5rem 1.75rem;
}

/* Deals List */
.td-dash-deals-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.td-dash-deal-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.td-dash-deal-item:hover {
  border-color: #667eea;
  background: #fafbff;
}

.td-dash-deal-badge {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.td-dash-deal-badge.bogo {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  font-size: 0.75rem;
}

.td-dash-deal-content {
  flex: 1;
  min-width: 0;
}

.td-dash-deal-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 0.5rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.td-dash-deal-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.td-dash-deal-date {
  display: inlin-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #64748b;
}

.td-dash-deal-date svg {
  color: #94a3b8;
}

.td-dash-deal-type {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 15px;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.td-dash-deal-type svg {
  width: 14px;
  height: 14px;
}

.td-type-recurring {
  background: #f0f9ff;
  color: #0369a1;
}

.td-type-recurring svg {
  color: #0ea5e9;
}

.td-type-onetime {
  background: #fef3c7;
  color: #92400e;
}

.td-type-onetime svg {
  color: #f59e0b;
}

.td-dash-deal-time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 15px;
  color: #64748b;
}

.td-dash-deal-status {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.td-dash-deal-status.publish {
  background: #dcfce7;
  color: #166534;
}

.td-dash-deal-status.draft {
  background: #fef3c7;
  color: #92400e;
}

.td-dash-deal-status.pending {
  background: #dbeafe;
  color: #1e40af;
}

.td-dash-deal-actions {
  display: flex;
  gap: 0.6rem;
}

.td-dash-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.td-dash-action-btn svg {
  width: 18px;
  height: 18px;
}

.td-action-edit {
  background: #eff6ff;
  color: #3b82f6;
}

.td-action-edit:hover {
  background: #3b82f6;
  color: #fff;
}

.td-action-delete {
  background: #fef2f2;
  color: #ef4444;
}

.td-action-delete:hover {
  background: #ef4444;
  color: #fff;
}

/* Bookings List */
.td-dash-bookings-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.td-dash-booking-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.td-dash-booking-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.td-dash-booking-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.td-dash-booking-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a202c;
}

.td-dash-booking-details {
  font-size: 14px;
  color: #64748b;
}

.td-dash-booking-status {
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  text-transform: capitalize;
}

.td-dash-booking-status.confirmed,
.td-dash-booking-status.completed {
  background: #dcfce7;
  color: #166534;
}

.td-dash-booking-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.td-dash-booking-status.cancelled {
  background: #fef2f2;
  color: #dc2626;
}

/* Empty State */
.td-dash-empty-state {
  text-align: center;
  padding: 3rem 2rem;
}

.td-dash-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #94a3b8;
}

.td-dash-empty-state h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 0.5rem;
}

.td-dash-empty-state p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 1.5rem;
}

.td-dash-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.td-dash-empty-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  color: #fff;
}

/* Dashboard Responsive */
@media (max-width: 1024px) {
  .td-dash-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .td-dashboard-wrapper {
    padding: 1rem;
  }

  .td-dash-header {
    padding: 1.5rem;
  }

  .td-dash-header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .td-dash-welcome h1 {
    font-size: 1.5rem;
  }

  .td-dash-header-actions {
    width: 100%;
  }

  .td-dash-btn {
    flex: 1;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }

  .td-dash-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .td-dash-stat-card {
    padding: 1.5rem;
  }

  .td-dash-stat-icon {
    width: 60px;
    height: 60px;
  }

  .td-dash-stat-value {
    font-size: 2rem;
  }

  .td-dash-stat-label {
    font-size: 0.95rem;
  }

  .td-dash-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }

  .td-dash-card-body {
    padding: 1.25rem;
  }

  .td-dash-add-btn {
    width: 100%;
    justify-content: center;
  }

  .td-dash-deal-item {
    flex-wrap: wrap;
  }

  .td-dash-deal-content {
    flex: 1 1 calc(100% - 66px);
  }

  .td-dash-deal-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
  }
}

@media (max-width: 480px) {
  .td-dash-stat-icon {
    width: 56px;
    height: 56px;
  }

  .td-dash-stat-icon svg {
    width: 26px;
    height: 26px;
  }

  .td-dash-stat-value {
    font-size: 1.75rem;
  }

  .td-dash-deal-badge {
    width: 50px;
    height: 50px;
    font-size: 0.8rem;
  }

  .td-dash-deal-content h4 {
    font-size: 1rem;
  }

  .td-dash-booking-item {
    flex-wrap: wrap;
  }

  .td-dash-booking-avatar {
    width: 44px;
    height: 44px;
  }

  .td-dash-booking-status {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* =====================================================
   USER PROFILE PAGE STYLES
   ===================================================== */

/* Modern Profile Page Styles */
.td-profile-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}
.td-profile-page.td-owner-profile {
  max-width: 1200px !important;
  width: 100% !important;
}

/* Profile Header */
.td-profile-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  color: #fff;
}

.td-profile-header-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.td-profile-avatar {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.td-profile-header-info {
  flex: 1;
  min-width: 200px;
}

.td-profile-header-info h1 {
  margin: 0 0 0.25rem;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.td-profile-email {
  margin: 0 0 0.5rem;
  opacity: 0.9;
  font-size: 17px;
}

.td-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 500;
}

.td-profile-dash-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  margin-left: auto;
}

.td-profile-dash-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

/* Profile Form */
.td-profile-form-modern {
  margin: 0;
}

/* Profile Grid */
.td-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Profile Cards */
.td-profile-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.td-profile-card.td-card-full {
  grid-column: 1 / -1;
}

.td-profile-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  background: #fafbfc;
}

.td-profile-card-header h3 {
  margin: 0 !important;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.td-profile-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.td-profile-card-icon svg {
  width: 20px;
  height: 20px;
}

.td-icon-user {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.td-icon-restaurant {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
}

.td-icon-location {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: #fff;
}

.td-icon-cuisine {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: #fff;
}

.td-icon-security {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: #fff;
}

.td-profile-card-body {
  padding: 1.5rem;
}

/* Form Fields */
.td-field-group {
  margin-bottom: 1.25rem;
}

.td-field-group:last-child {
  margin-bottom: 0;
}

.td-field-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 16px;
  color: #444;
}

.td-required {
  color: #e74c3c;
}

.td-field-group input[type="text"],
.td-field-group input[type="email"],
.td-field-group input[type="tel"],
.td-field-group input[type="url"],
.td-field-group input[type="password"],
.td-field-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 17px;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.2s;
  background: #fff;
}

.td-field-group textarea {
  resize: vertical;
  min-height: 80px;
}

.td-field-group input:focus,
.td-field-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.td-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.td-field-row:last-child {
  margin-bottom: 0;
}

.td-field-row .td-field-group {
  margin-bottom: 0;
}

.td-field-wide {
  grid-column: span 1;
}

/* 3-column row for City, State, ZIP */
.td-field-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* Select field styling */
.td-field-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 17px;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.2s;
  background: #fff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.td-field-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Location saved message */
.td-location-saved {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(
    135deg,
    rgba(67, 233, 123, 0.1) 0%,
    rgba(56, 249, 215, 0.1) 100%
  );
  border: 1px solid rgba(67, 233, 123, 0.3);
  border-radius: 8px;
  color: #0d7a3c;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.td-location-saved svg {
  color: #0d7a3c;
  flex-shrink: 0;
}

/* Input with icon */
.td-input-icon {
  position: relative;
}

.td-input-icon svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

.td-input-icon input {
  padding-left: 2.75rem !important;
}

/* Read-only input */
.td-input-readonly {
  position: relative;
}

.td-input-readonly svg:first-child {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

.td-input-readonly input {
  padding-left: 2.75rem !important;
  padding-right: 2.5rem !important;
  background: #f5f5f5 !important;
  color: #666 !important;
  cursor: not-allowed;
}

.td-lock-icon {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}

/* Selection sections for chips */
.td-selection-section {
  margin-bottom: 1.5rem;
}

.td-selection-section:last-child {
  margin-bottom: 0;
}

.td-selection-section h4 {
  margin: 0 0 0.35rem;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 10px 0px 5px !important;
}

.td-selection-desc {
  margin: 0 0 1rem;
  font-size: 16px;
  color: #666;
}

/* Chip grid */
.td-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.td-chip-label {
  display: inline-block;
  cursor: pointer;
}

.td-chip-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.td-chip {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  background: #f0f2f5;
  border: 2px solid transparent;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  color: #555;
  transition: all 0.2s;
}

.td-chip:hover {
  background: #e4e6eb;
}

.td-chip-label input:checked + .td-chip {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
}

/* Security note */
.td-security-note {
  background: #f8f9fa;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 16px;
  color: #666;
  margin-bottom: 1.25rem;
  border-left: 3px solid #667eea;
}

/* Logo Upload */
.td-logo-upload-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  border: 2px dashed #e0e0e0;
}

.td-logo-preview {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #e0e0e0;
}

.td-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.td-logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: #aaa;
}

.td-logo-placeholder span {
  font-size: 0.75rem;
}

.td-logo-upload-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.td-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: fit-content;
}

.td-upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.td-upload-hint {
  margin: 0;
  font-size: 14px;
  color: #888;
}

/* Profile Actions */
.td-profile-actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.td-profile-message {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 16px;
  display: none;
}

.td-profile-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.td-profile-message.error {
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f5c6cb;
  display: block;
}

.td-save-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 1rem 2.25rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-left: auto;
}

.td-save-profile-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.td-save-profile-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.td-save-profile-btn .btn-loader {
  display: none;
}

/* Subscriber Profile Styles - Use this class for subscriber-specific styling */
.td-subscriber-profile {
  /* Custom styles for subscriber/food lover profiles */
}

.td-subscriber-profile .td-profile-header {
  /* Override header gradient for subscribers if needed */
}

.td-subscriber-profile .td-profile-card {
  /* Card customizations for subscribers */
}

/* Profile Page Responsive */
@media (max-width: 900px) {
  .td-profile-grid {
    grid-template-columns: 1fr;
  }

  .td-profile-card.td-card-full {
    grid-column: 1;
  }
}

@media (max-width: 600px) {
  .td-profile-header {
    padding: 1.5rem;
  }

  .td-profile-header-content {
    flex-direction: column;
    text-align: center;
  }

  .td-profile-header-info {
    text-align: center;
  }

  .td-profile-dash-btn {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .td-field-row,
  .td-field-row-3 {
    grid-template-columns: 1fr;
  }

  .td-profile-actions {
    flex-direction: column;
  }

  .td-save-profile-btn {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .td-profile-message {
    width: 100%;
  }

  .td-chip {
    padding: 0.45rem 0.9rem;
    font-size: 0.95rem;
  }

  .td-logo-upload-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .td-logo-upload-controls {
    align-items: center;
  }

  .td-upload-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   RESTAURANT GALLERY SLIDER
   ========================================  border: 1px solid gainsboro; */
.td-gallery-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
 
}

.td-gallery-track {
  display: flex;
  transition: transform 0.8s ease;
}

.td-gallery-slide {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.td-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery navigation arrows */
.td-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  z-index: 10;
}

.td-gallery-nav:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.td-gallery-nav svg {
  width: 18px;
  height: 18px;
  stroke: #333;
}

.td-gallery-prev {
  left: 8px;
}

.td-gallery-next {
  right: 8px;
}

.td-gallery-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.td-gallery-nav:disabled:hover {
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Gallery dots/indicators */
.td-gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.td-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.td-gallery-dot.active {
  background: #fff;
  transform: scale(1.2);
}

.td-gallery-dot:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Image counter badge */
.td-gallery-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
}

/* Search results gallery - smaller version */
.td-restaurant-item .td-gallery-slider {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  height: 135px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.td-restaurant-item .td-gallery-slide {
  width: 180px;
  height: 135px;
  aspect-ratio: auto;
}

.td-restaurant-item .td-gallery-nav {
  width: 28px;
  height: 28px;
}

.td-restaurant-item .td-gallery-nav svg {
  width: 14px;
  height: 14px;
}

.td-restaurant-item .td-gallery-prev {
  left: 1px;
}

.td-restaurant-item .td-gallery-next {
  right: 1px;
}

.td-restaurant-item .td-gallery-dots {
  bottom: 6px;
}

.td-restaurant-item .td-gallery-dot {
  width: 6px;
  height: 6px;
}

.td-restaurant-item .td-gallery-counter {
  top: 6px;
  right: 6px;
  padding: 2px 6px;
  font-size: 10px;
}

/* Single restaurant page gallery - larger version */
.restaurant-single .td-gallery-slider {
  max-width: 500px;
  border-radius: 12px;
}

.restaurant-single .td-gallery-slide {
  height: 350px;
  aspect-ratio: auto;
}

/* Gallery in restaurant header */
.restaurant-header-gallery {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.restaurant-header-gallery .td-gallery-slider {
  flex: 0 0 400px;
  max-width: 400px;
}

/* Gallery upload section in profile */
.td-gallery-upload-section {
  margin-top: 1.5rem;
}

.td-gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.td-gallery-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.td-gallery-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.td-gallery-preview-item .td-remove-image {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(220, 38, 38, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s ease;
}

.td-gallery-preview-item .td-remove-image:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.td-gallery-upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fafafa;
}

.td-gallery-upload-area:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.td-gallery-upload-area svg {
  width: 40px;
  height: 40px;
  stroke: #9ca3af;
  margin-bottom: 0.75rem;
}

.td-gallery-upload-area p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.td-gallery-upload-area .td-upload-hint {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 0.5rem;
}

/* Responsive gallery */
@media (max-width: 768px) {
 

  .td-restaurant-item .td-gallery-nav {
   width: 12px;
    height: 12px
  }

 
  .restaurant-header-gallery {
    flex-direction: column;
  }

  .restaurant-header-gallery .td-gallery-slider {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }

  .restaurant-single .td-gallery-slide {
    height: 250px;
  }

  .td-gallery-preview {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}

@media (max-width: 480px) {
 
  .restaurant-single .td-gallery-slide {
    height: 200px;
  }
}

/* Gallery styles for user profile page */
.td-profile-card .td-icon-gallery {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
}

.td-profile-card .td-gallery-desc {
  color: #666;
  font-size: 14px;
  margin-bottom: 1.5rem;
}

.td-profile-card .td-gallery-preview {
  margin-bottom: 1.5rem;
}

.td-gallery-upload-area.td-dragover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.td-progress-bar-container {
  background: #e5e7eb;
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}

.td-progress-bar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.td-progress-text {
  font-size: 13px;
  color: #666;
  margin-top: 0.5rem;
}

#td-gallery-upload-progress {
  margin-top: 1rem;
}
