/* Table Booking Plugin – Golden Theme Styles */

/* Reset/Box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3 {
  color: #333;
  margin-bottom: 0.5em;
}
h2 {
  margin-top: 0;
}
p {
  color: #555;
  line-height: 1.5;
  margin-bottom: 1em;
}
label {
  font-weight: bold;
}

/* Buttons (Golden) */
.button,
.button-primary,
button {
  display: inline-block;
  background-color: #DAA520;
  color: #fff;
  text-decoration: none;
  padding: 0.75em 1.5em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  text-align: center;
  margin: 0.5em 0;
}
.button:hover,
.button-primary:hover,
button:hover {
  background-color: #c59819;
}
.button[disabled],
button[disabled] {
  background-color: #ccc;
  cursor: not-allowed;
}

/* ========== 1. Table Listing Page ========== */
.tbs-table-listings {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1em;
}
#tbs-mall-filter {
  border: 1px solid #ccc;
  border-radius: 4px;
	font-size: 30px;
   color: blue;
   padding: 20px;
}
.tbs-table-listings label, 
.tbs-table-listings #tbs-mall-filter {
  margin: 10px auto;
  display: block;
  text-align: center;
}
.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1em;
  margin-top: 1em;
}
.table-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.table-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.table-card h3 {
  font-size: 1.25em;
  margin: 0.75em;
}
.table-card p {
  font-size: 1em;
  margin: 0 0.75em 0.75em;
  color: #444;
}
.table-card p strong {
  font-weight: bold;
}
.table-card .button {
  margin: 0.75em;
  align-self: flex-start;
}

/* 4‑column layout override if needed */
@media (min-width: 1200px) {
  .tables-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========== 2. Table Detail Page ========== */
.tbs-detail-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1em;
  gap: 1em;
}
.tbs-detail-images {
  flex: 1 1 300px;
}
.tbs-detail-images .main-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.gallery-thumbs {
  margin-top: 0.5em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}
.gallery-thumbs a img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.tbs-detail-info {
  flex: 1 1 300px;
}
.tbs-detail-info h1 {
  margin-top: 0;
}
.short-desc {
  font-style: italic;
  color: #666;
  margin: 1em 0;
}
.price {
  margin: 0.5em 0;
}
.price strong {
  font-weight: 600;
}
#tbs-booking-form {
  margin-top: 1em;
}
#tbs-booking-form label {
  display: block;
  margin-top: 0.5em;
  font-weight: bold;
}
#tbs-booking-form input[type="text"] {
  width: 100%;
  padding: 0.5em;
  margin-top: 0.25em;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.feature-badge {
  display: inline-block;
  background-color: #DAA520;
  color: #fff;
  padding: 0.25em 0.5em;
  margin: 0.25em;
  border-radius: 3px;
  font-size: 0.9em;
}
.tbs-table-detail .button {
  margin-top: 1em;
  display: inline-block;
}

/* ========== 3. Booking Form (Confirmation) Page ========== */
#tbs-payment-form,
.tbs-confirm-card {
  max-width: 960px;
  margin: 2rem auto;
  padding: 1em;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
#tbs-payment-form {
  text-align: center;
}
#tbs-payment-form h2,
.tbs-confirm-card h2 {
  margin-top: 0;
  margin-bottom: 1em;
}
button.payment-method-btn {
  margin: 0.5em;
  width: calc(100% - 1em);
  max-width: 240px;
}
#stripe-element {
  margin-top: 1em;
  width: 100%;
}
#card-element {
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#card-errors {
  color: red;
  margin-top: 0.5em;
}
#stripe-submit {
  margin-top: 1em;
}

/* ========== 4. User Account Page ========== */
.create-account-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 1em;
  gap: 1em;
}
.registration-form,
.login-form {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 1.5em;
  flex: 1 1 45%;
}
.registration-form h2,
.login-form h2 {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 1.5em;
}
.registration-form input,
.login-form input,
.registration-form button,
.login-form button {
  width: 100%;
  margin-bottom: 1em;
  padding: 0.75em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}
.registration-form button,
.login-form button {
  background: #DAA520;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* ========== 5. User Bookings Table ========== */
table.widefat {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}
table.widefat th {
  background-color: #DAA520;
  color: #fff;
  padding: 0.75em;
  text-align: left;
}
table.widefat td {
  border: 1px solid #ddd;
  padding: 0.75em;
}
table.widefat tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* ========== Alerts & Confirmation Content ========== */
.updated {
  padding: 0.5em 1em;
  background-color: #daf5d4;
  border-left: 4px solid #68a225;
  margin-bottom: 1em;
}
.tbs-confirm-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.tbs-booking-info, .tbs-user-info {
  flex: 1 1 300px;
}
.tbs-confirm-action {
  text-align: center;
  margin-top: 2rem;
}
.tbs-confirm-action .button-primary {
  background-color: #DAA520 !important;
  border: none;
  color: #fff;
  padding: 0.75em 1.5em;
  font-size: 1rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
.tbs-confirm-action .button-primary:hover {
  background-color: #c89c1d;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .create-account-wrapper {
    flex-direction: column;
  }
  .registration-form,
  .login-form {
    flex: 1 1 100%;
  }
  .tbs-detail-container {
    flex-direction: column;
  }
  .tbs-detail-images,
  .tbs-detail-info {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .tables-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .tables-grid,
  .tbs-table-listings,
  .tbs-detail-container,
  .create-account-wrapper {
    padding: 0.5em;
  }
}

@media (max-width: 480px) {
  .tables-grid {
    grid-template-columns: 1fr;
  }
}



/* Form fields */
.tbs-detail-info input,
.tbs-detail-info select,
.tbs-detail-info textarea {
  width: 100%;
  max-width: 400px;
  padding: 8px;
  margin: 0.5em 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

/* Buttons */
.button {
  background-color: #0073AA;
  color: #fff;
  border: none;
  padding: 0.75em 1.5em;
  border-radius: 4px;
  cursor: pointer;
}
.button:hover {
  background-color: #005177;
}

/* Responsive layout for detail page */
.tbs-detail-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
}
.tbs-detail-images {
  flex: 1 1 250px;
}
.tbs-detail-info {
  flex: 2 1 300px;
}
@media (max-width: 600px) {
  .tbs-detail-container {
    flex-direction: column;
  }
}

/* Gallery thumbnails */
.gallery-thumbs a img {
  border: 1px solid #ccc;
  margin: 0.25em;
  width: 80px;
  height: auto;
  display: inline-block;
  border-radius: 3px;
}
