/* =============================
   General body styling
============================= */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}

/* =============================
   Container
============================= */
.container {
    width: 95%;               /* wider for mobile */
    max-width: 1200px;        /* allow larger screens */
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
}

/* =============================
   Header
============================= */
.header-table {
    width: 100%;
    background-color: #000;
    border-collapse: collapse;
    margin-bottom: 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    overflow: hidden;
}

.header-table td {
    padding: 10px;
    vertical-align: middle;
    border: none;
}

.header-left {
    text-align: left;
    font-weight: bold;
    padding-left: 20px;
}

.header-right {
    text-align: right;
    font-weight: bold;
    padding-right: 20px;
}

.header-table a {
    color: #fff;
    text-decoration: none;
}

.header-table a:hover {
    color: #ff0000;
}

/* =============================
   Search bar (Desktop-like on all screens)
============================= */
.search-bar {
    margin: 20px 0;
    text-align: center;
    display: flex;              /* ✅ align input + button side by side */
    justify-content: center;    /* ✅ center horizontally */
    gap: 8px;                   /* ✅ space between input & button */
    flex-wrap: nowrap;          /* ✅ keep them inline */
}

.search-bar input {
    padding: 10px;
    width: 60%;                 /* fixed % width */
    max-width: 500px;
    border: 1px solid #aaa;
    border-radius: 4px;
    font-size: 14px;
}

.search-bar button {
    padding: 10px 16px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;        /* ✅ prevents text wrapping inside button */
}

.search-bar button:hover {
    background: #333;
}


/* =============================
   Tables (Responsive)
============================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    table-layout: fixed;        /* ✅ keeps table within screen */
    word-wrap: break-word;
}

th, td {
    border: 1px solid #aaa;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    word-break: break-word;
}

th {
    background-color: #000;
    color: #fff;
}

/* ✅ Responsive adjustments */
@media (max-width: 768px) {
    th, td {
        padding: 6px;
        font-size: 12px;
    }
    .search-bar input {
        width: 80%;
    }
}

@media (max-width: 480px) {
    th, td {
        padding: 4px;
        font-size: 11px;
    }
    .search-bar input {
        width: 100%;
    }
}

/* =============================
   Contact Page Styles
============================= */
.contact-info {
  text-align: center;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.contact-info a {
  color: #000;
  text-decoration: none;
}

.contact-info a:hover {
  color: #ff0000;
}

/* Contact Form */
.contact-form {
  margin: 30px auto;
  max-width: 600px;
}

.contact-form h2 {
  margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #aaa;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.contact-form button {
  padding: 10px 20px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.contact-form button:hover {
  background: #333;
}

/* Map section */
.map-container iframe {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  border: none;
}

.map-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.map-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .contact-info {
    font-size: 14px;
  }

  .contact-form {
    width: 90%;
  }

  .map-container iframe {
    height: 250px;
  }
}


/* =============================
   Footer
============================= */
footer {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    color: #000;
}

/* =============================
   Pagination bar
============================= */
.pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    font-size: 14px;
    flex-wrap: wrap;            /* ✅ wrap on small screens */
    white-space: nowrap;
}

.pagination-bar span,
.pagination-bar select {
    font-size: 14px;
    vertical-align: middle;
}

/* =============================
   Pagination buttons
============================= */
.pagination {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination button {
    background-color: #aaa;
    color: white;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
}

.pagination button.active {
    background-color: #000;
    font-weight: bold;
}

.pagination button:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}
