
:root {
  --sbd-red: #C2311D;
  --sbd-orange: #E26A1E;
  --sbd-soft-orange: #F39D58;
  --sbd-black: #010101;
  --sbd-white: #FFFFFF;

  --sbd-bg-light: #FFF;
  --sbd-border: #E2D4C8;
}

html {
    scroll-behavior: smooth;
}


body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--sbd-bg-light);
  color: var(--sbd-black);
  margin: 0;
  padding: 0;
}

h1, h2, h3, .menu-link, .category-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
a {
  color: var(--sbd-red);
  text-decoration: none;
}
a:hover {
  color: var(--sbd-orange);
}

/* Main header wrapper */
#main-header {
  position: relative;
  top: 0;
  z-index: 999;
  background: var(--sbd-black);
  transition: padding 0.3s ease, background 0.3s ease;
}

/* Header container layout */
.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Flex layout for logo + nav bar */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.toplogo {
  transform-origin: top center;
  transition: transform 0.3s ease, margin-bottom 0.3s ease;
  margin-bottom: -20px; /* Overlap effect */
}

.toplogo img {
  height: 260px;
  max-height: 100%;
  transition: transform 0.3s ease;
}

/* Shrinked state */
#main-header.shrink .toplogo {
  transform: scale(0.6);
  margin-bottom: -130px;
}

#main-header.shrink .toplogo img {
  transform: scale(1); /* Keep scaling consistent via .toplogo */
}

/* Navigation styling */
.nav {
  flex: 1;
  text-align: center;
  margin-top: 1rem;
}

.nav ul.menu-bar {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.nav .menu-link {
  color: var(--sbd-white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav .menu-link:hover {
  color: var(--sbd-soft-orange);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .header-flex {
    flex-direction: column;
  }

  .nav {
    width: 100%;
    text-align: center;
  }

  .toplogo {
    margin-bottom: -40px;
  }

  #main-header.shrink .toplogo {
    margin-bottom: -100px;
  }
}


.container {
  padding: 2rem;
  max-width: 1440px;
  margin: 20px auto !important;
}

h2.textcenter {
  text-align: center;
  color: var(--sbd-red);
  border-bottom: 2px solid var(--sbd-orange);
  padding-bottom: 0.5rem;
}

.category-container ul.category {
  padding: 0;
  list-style: none;
}

.maincategory > a {
  font-weight: bold;
  color: var(--sbd-orange);
  display: block;
  padding: 0.5rem 0;
}

.subcategories li a {
  color: var(--sbd-black);
  padding-left: 1rem;
  display: block;
}

.subcategories li a:hover {
  color: var(--sbd-soft-orange);
}

footer {
  background-color: var(--sbd-white);
  color: var(--sbd-black);
  padding: 0.05rem;
  text-align: center;
  font-size: 0.8em;
}

footer a {
  color: var(--sbd-soft-orange);
  margin: 0 0.1rem;
}

/* BACK TO TOP */
#button {
  display: inline-block;
  background-color: var(--sbd-red);
  width: 50px;
  height: 50px;
  text-align: center;
  border-radius: 4px;
  position: fixed;
  bottom: 30px;
  right: 30px;
  transition: background-color 0.3s, opacity 0.5s, visibility 0.5s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

#button::after {
  content: "\f35b"; /* fa-circle-up */
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* Solid style */
  font-style: normal;
  font-size: 2em;
  line-height: 50px;
  color: var(--sbd-white);
}

#button:hover {
  cursor: pointer;
  background-color: var(--sbd-orange);
}

#button:active {
  background-color: var(--sbd-black);
}

#button.show {
  opacity: 1;
  visibility: visible;
  animation: bounceUp 1s ease-in-out infinite;
}

@keyframes bounceUp {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Generic list container */
ul.listing-list,
ul.category {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.listing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center; /* This centers the items */
  list-style: none;
  padding: 0;
  margin: 0 auto; /* Optional for horizontal centering of the list */
}


/* Each list item becomes a column item */
ul.listing-list li,
ul.category li {
  width: calc(25% - 1.5rem); /* 4 columns */
  background: #fff;
  border-radius: 4px;
  padding: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

ul.listing-list li:hover,
ul.category li:hover {
  transform: translateY(-3px);
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
  ul.listing-list li,
  ul.category li {
    width: calc(33.333% - 1rem); /* 3 columns */
  }
}
@media (max-width: 768px) {
  ul.listing-list li,
  ul.category li {
    width: calc(50% - 1rem); /* 2 columns */
  }
}
@media (max-width: 480px) {
  ul.listing-list li,
  ul.category li {
    width: 100%; /* 1 column */
  }
}
/* Main container for categories */
.category-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}

/* Each main category block */
.category-container > ul.category {
  flex: 1 1 calc(25% - 2rem); /* 4 columns, adjust as needed */
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  min-width: 220px;
    text-align: center;
}

/* Main category title */
ul.category > li.maincategory > a.category-link {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--sbd-orange);
  margin-bottom: 0.5rem;
  display: inline-block;
}

/* Subcategory list */
ul.subcategories {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

ul.subcategories li {
  margin: 0.2rem 0;
  width:100%;
    text-align: center;
}

ul.subcategories li a {
  display: inline-block;
  color: #222;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: normal;           /* allows natural wrapping */
  word-break: normal;            /* prevents awkward breaking */
  overflow-wrap: anywhere;       /* fallback if needed */
  max-width: 100%;
width:100%;
  padding: 0.2rem 0;
}


ul.subcategories li a:hover {
  color: var(--sbd-soft-orange);
}

/* Responsive columns */
@media (max-width: 1024px) {
  .category-container > ul.category {
    flex: 1 1 calc(33.333% - 2rem); /* 3 columns */
  }
}
@media (max-width: 768px) {
  .category-container > ul.category {
    flex: 1 1 calc(50% - 2rem); /* 2 columns */
  }
}
@media (max-width: 480px) {
  .category-container > ul.category {
    flex: 1 1 100%; /* 1 column */
  }
}

.town-heading {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--sbd-orange);
  border-bottom: 2px solid var(--sbd-soft-orange);
  padding-bottom: 0.3rem;
    text-align: center;
}

.listing-card-horizontal {
  display: flex;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s;
  padding: 1rem;
  gap: 1rem;
  margin-bottom: 1.5rem;
    text-align: center;
}

.listing-card-horizontal:hover {
  transform: translateY(-3px);
}

.listing-image-horizontal img {
  width: 180px;
  height: auto;
  max-height: 140px;
  object-fit: cover;
  border-radius: 4px;
}

.listing-info-horizontal {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.listing-info-horizontal h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.listing-info-horizontal small {
  color: #666;
  margin-bottom: 0.3rem;
}

.listing-info-horizontal .town {
  color: var(--sbd-orange);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.listing-info-horizontal .contact p {
  font-size: 0.9rem;
  margin: 0.2rem 0;
}

.listing-info-horizontal .contact i {
  margin-right: 6px;
  color: var(--sbd-red);
  min-width: 18px;
  display: inline-block;
}

.listing-info-horizontal .social a {
  font-size: 1.2rem;
  margin-right: 0.5rem;
  color: var(--sbd-red);
  transition: color 0.3s ease;
}

.listing-info-horizontal .social a:hover {
  color: var(--sbd-soft-orange);
}

.listing-info-horizontal .description {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #444;
}

.contact-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}


.contact-icons a {
  font-size: 1.1rem;
  color: var(--sbd-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-icons a:hover {
  color: var(--sbd-soft-orange);
}

.modal {
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 8px;
  max-width: 700px;
  width: 90%;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1rem;
    width: 95%;
  }
}

.view-more-btn {
  background-color: var(--sbd-red);
  color: var(--sbd-white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.view-more-btn:hover {
  background-color: var(--sbd-soft-orange);
  transform: translateY(-2px);
}

.modal-listing {
  text-align: left;
  padding: 1rem;
}

.modal-listing img.modal-image {
  max-width: 100%;
  max-height: 200px;
  display: block;
  margin: 1rem auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.modal-contact p,
.modal-description {
  margin: 0.5rem 0;
  font-size: 0.95rem;
    margin-bottom: 10px;
}

.modal-social {
  margin-top: 1rem;
}

.modal-social a {
  margin-right: 0.7rem;
  font-size: 1.2rem;
  color: var(--sbd-red);
}

.modal-social a:hover {
  color: var(--sbd-soft-orange);
}
.modal-content h1,
.modal-content h2,
.modal-content h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #222;
}

.modal-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #444;
}

.modal-content a {
  color: var(--sbd-orange);
  text-decoration: none;
}

.modal-content a:hover {
  text-decoration: underline;
}

.modal-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}

.breadcrumb{text-align: center;}

.boxsubcat {
  display: inline-block;
  background-color: #fff8f0;
  color: #c65306;
  border: 1px solid #f4d5bd;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  margin: 0.3rem 0.5rem 0.3rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.boxsubcat a {
  text-decoration: none;
  color: inherit;
}

.boxsubcat:hover {
  background-color: #ffe8d5;
  transform: translateY(-2px);
  cursor: pointer;
}

.no-results {
  text-align: center;
  font-size: 1.2rem;
  color: #777;
  margin: 3rem auto;
  padding: 2rem;
  border: 1px dashed #ccc;
  border-radius: 8px;
  background: #fefefe;
}
/* Style for modal list items */
.modal-content ul {
    padding-left: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
 
.modal-content ul li {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #000;
    position: relative;
    padding-left: 20px;
}

.modal-content ul li::before {
    position: absolute;
    left: 0;
    color: #B30000;
    font-size: 1.2rem;
    line-height: 1;
}

.smalllogo{max-width: 60%; margin: 0 auto; border-radius: 10px;}

.subcat-index, .town-index {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; /* Optional: controls spacing between buttons */
    margin-top: 20px;
}

/*LOCATION*/    
.boxcontainer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between; /* Optional: space evenly */
  margin-top: 20px;
}

.boxcon {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  flex: 1 1 calc(33.333% - 20px); /* 3 columns with 20px gap */
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  box-sizing: border-box;
}


.boxcon h4 {
  margin-top: 0;
  color: #b64b1a;
    text-align: center;
}

.boxcon p {
margin-top: 10px;
  margin-bottom: 10px;  
}

.boxcon ul {
  padding-left: 20px;
}

.emerno a {
  font-size: 2em;
  color: #c0392b;
  font-weight: bold;
  text-decoration: none;
}

.accordion-item {
  border-bottom: 1px solid #ddd;
  margin-top: 20px;
}

.accordion-header h4 {
  cursor: pointer;
  background: #f7f7f7;
  padding: 15px 20px;
  margin: 0;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.accordion-header h4:hover {
  background: #f0f0f0;
}

.accordion-content {
  display: none;
  padding: 15px 20px;
  background: #fff;
}

.accordion-content.open {
  display: block;
}

.accordion-body p{
  margin-top: 10px;
  margin-bottom: 10px;  
}
.accordion-body ul {
  padding-left: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
  list-style-type: disc;
}

.accordion-body ul li {
  margin-bottom: 8px;
  line-height: 1.6;
  font-size: 1rem;
  color: #444;
}


img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

iframe {
  border: 0;
  border-radius: 4px;
  margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
  .boxcontainer {
    flex-direction: column;
    gap: 15px;
  }

  .boxcon {
    flex: 1 1 100%;
  }

  .accordion-header h4 {
    font-size: 1.1em;
  }
}

.boxcontainer ul {
  padding-left: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
  list-style-type: disc;
}

.boxcontainer ul li {
  margin-bottom: 8px;
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
}

.listing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 20px 0;
    text-align: center;
    font-family: sans-serif;
}

.listing-table td {
    padding: 10px;
    border: 0px solid #ccc;
}

.listing-header {
    background-color: #CD0003;
    color: #fff;
    font-weight: bold;
}

.x {
    font-weight: bold;
}
