/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

/* ========== Global Styles ========== */
html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
  background-color: #f8f8f8;
  color: #393939;
  min-height: calc(100vh - 100px);
}

a {
  color: #007BFF;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

h1, h2, h3 {
  font-weight: 700;
  margin-bottom: 20px;
  word-break: break-word;
  overflow-wrap: break-word;
}

p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}

.center-text {
  text-align: center;
}

/* ========== Breadcrumbs ========== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 40px;
}
.breadcrumb a {
  color: #007BFF;
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb .separator {
  color: #999;
}
@media (max-width: 600px) {
  .breadcrumb {
    font-size: 13px;
    line-height: 1.4;
  }
  .breadcrumb a {
    display: inline-block;
    max-width: 100%;
  }
}

/* ========== Header & Footer ========== */
header, footer {
  background-color: #182334;
  color: #fff;
  padding: 20px;
  text-align: center;
}

footer {
  margin-top: 40px;
}

/* ========== Navbar ========== */
nav {
  margin: 30px 0 20px 10px;
  font-size: 14px;
}

/* ========== Container ========== */
.container {
  max-width: 1100px;
  min-height: 600px;
  margin: 0 auto;
  padding: 30px 15px;
}

/* ========== State Grid ========== */
.state-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px 15px;
  text-align: center;
}
.state-grid a {
  text-decoration: none;
}
@media (max-width: 768px) {
  .state-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== Listings Grid ========== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.listing-card {
  padding: 20px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 8px;
}
.listing-card h3 {
  margin-top: 0;
  font-size: 18px;
  color: #007BFF;
}

/* ========== Page Titles ========== */
.post-title {
  font-size: 20px;
  margin: 10px 0;
  line-height: 1.4;
}
.post-title a {
  color: #007BFF;
  text-decoration: none;
}
.post-title a:hover {
  text-decoration: underline;
}

/* ========== Map Styling ========== */
.google-map {
  margin: 20px 0;
  padding: 10px;
  border-radius: 6px;
  height: 350px;
  box-sizing: border-box;
}
.google-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========== Buttons ========== */
.button {
  display: inline-block;
  padding: 10px 20px;
  max-width: 100%;
  word-break: break-word;
  box-sizing: border-box;
  background-color: #FF5A09;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  margin: 10px 0;
}
.button:hover {
  background-color: #ec7f37;
}
@media (max-width: 768px) {
  .button {
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* ========== Forms ========== */
form input, form select, form textarea, form button {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  font-size: 16px;
}
form button {
  background-color: #182334;
  color: #fff;
  border: none;
  cursor: pointer;
}
form button:hover {
  background-color: #55b9ea;
}

/* ========== Admin Tables ========== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}
table th, table td {
  padding: 10px;
  border: 1px solid #ddd;
}
thead {
  background-color: #182334;
  color: #fff;
}

/* ========== Static Page Content ========== */
.static-page-content {
  line-height: 1.6;
  font-size: 16px;
  color: #333;
}
.static-page-content h1,
.static-page-content h2,
.static-page-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 700;
}
.static-page-content p,
.static-page-content ul,
.static-page-content ol {
  margin-bottom: 15px;
}
.static-page-content ul,
.static-page-content ol {
  margin-left: 20px;
}
.static-page-content li {
  margin-bottom: 8px;
}
.static-page-content a {
  color: #007BFF;
  text-decoration: underline;
}
.static-page-content a:hover {
  color: #0056b3;
}

/* ========== Footer Layout ========== */
.site-footer {
  background-color: #393939;
  color: #fff;
  padding: 40px 20px 20px;
  font-size: 14px;
  margin-top: 50px;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 20px;
}
.footer-column {
  flex: 1;
  min-width: 200px;
}
.footer-left {
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-logo img {
  height: 60px !important;
  width: auto !important;
  max-height: 60px !important;
  object-fit: contain;
  display: block !important;
}
.footer-center ul {
  list-style: none;
  padding: 0;
}
.footer-center li {
  margin-bottom: 8px;
}
.footer-right p {
  font-size: 14px;
}
.footer-center a,
.footer-right a {
  color: #fff;
  text-decoration: none;
}
.footer-center a:hover,
.footer-right a:hover {
  color: #ff5a09;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 13px;
  border-top: 1px solid #444;
  margin-top: 30px;
}
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-column {
    margin-bottom: 20px;
  }
  .footer-logo {
    margin: 0 auto;
  }
}

/* ========== Responsive Layout Helpers ========== */
@media (max-width: 1024px) {
  .grid-buttons {
    grid-template-columns: repeat(3, 1fr);
  }
  .listings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  .grid-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .grid-buttons {
    grid-template-columns: 1fr;
  }
}
