:root {
  --brand-primary: #067fc3;
  --brand-primary-hover: #0569a3;
  --brand-primary-active: #045880;
  --calendar-view-color-light: #e6f4fa;
  --calendar-view-color-gray: #cce9f9;
}


body {
  font-family: "Onest", sans-serif;
}

/* Bootstrap overrides */
.btn-primary {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--brand-primary-hover) !important;
  /* Slightly darker shade for hover */
  border-color: var(--brand-primary-hover) !important;
}

.btn-primary:active {
  background-color: var(--brand-primary-active) !important;
  /* Even darker for active state */
  border-color: var(--brand-primary-active) !important;
}

.page-item.active .page-link {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #fff !important;
}

/* Hover */
.page-link:hover {
  background-color: #e6f4fa !important;
  /* light background on hover */
  color: var(--brand-primary) !important;
}

/* Default links */
.page-link {
  color: var(--brand-primary) !important;
  border: 1px solid #dee2e6;
  /* keep default border */
}


/* Styles for accessibility plugin */

body .accessibility-modal-header {
  background-color: var(--brand-primary) !important;
}

body .accessibility-trigger #accessibility_settings_toggle {
  background-color: var(--brand-primary) !important;
}

body .accessibility-statement-wrapper #aioa_statement_button {
  background-color: var(--brand-primary) !important;
}

body .accessibility-modal-footer .accessibility-footer-report-link {
  background-color: var(--brand-primary) !important;
}

body .accessibility-footer-left .accessibility-credit-text img,
body .accessibility-footer-right .accessibility-credit-logo img {
  display: none !important;
}

body .accessibility-switcher .custom-switcher .custom-switcher_inp:checked+.custom-switcher_body:before {
  background-color: var(--brand-primary) !important;
}

body .accessibility-footer-right {
  display: none !important;
  visibility: hidden !important;
}



body .accessibility-modal-footer .accessibility-footer-wrapper {
  padding: 0px !important;
}

body .accessibility-modal-button-bottom-group button:hover {
  background-color: var(--brand-primary-hover) !important;
}

/* body .accessibility-trigger button .aioa-trigger-button-tooltip {
  background-color: #1f2937 !important;
}


body .accessibility-trigger.aioa_bottom_right button .aioa-trigger-button-tooltip:before {
  border-color: transparent transparent transparent #1f2937 !important;
} */

body .accessibility-trigger button .aioa-trigger-button-tooltip {
  display: none !important;
}

.block-page-title-block {
  text-align: center !important;
}

.block-page-title-block h1 {
  font-size: calc(1rem + 1vw);
}


.accessibility-section .accessibility-control-wrapper>button[aria-pressed=true] {
  background-color: var(--brand-primary) !important;
}

.accessibility-section .accessibility-control-wrapper>button[aria-pressed=true]:hover {
  background-color: var(--brand-primary-hover) !important;
}

.block-page-title-block {
  margin: 1.5rem 0;
}

.map-container {
  width: 100%;
  /* Make the container take up the full width of its parent */
  max-width: 680px;
  /* Optional: Set a max-width to prevent it from becoming huge on large desktops */
  margin: 4rem auto;
  /* Optional: Center the map container with some vertical spacing */
}

/* 2. The SVG element itself */
.map-container svg {
  width: 100%;
  /* Crucial: Tells the SVG to scale to the container's width */
  height: auto;
  /* Crucial: Tells the SVG to adjust its height automatically to maintain the aspect ratio */
  display: block;
  /* Removes any extra space below the SVG */
}

.map-container .land {
  fill: #067fc3;
  fill-opacity: 1;
  stroke: white;
  stroke-opacity: 1;
  stroke-width: 0.5;

}

.map-container .land:hover {
  fill: #2ba9f1;
}

#tooltip {
  position: absolute;
  background-color: #1f2937;
  color: #f9fafb;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  pointer-events: none;
}

#tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #1f2937 transparent transparent transparent;
}

#tooltip.visible {
  opacity: 1;
  visibility: visible;
}


/* Target the logo's link container in the admin toolbar */
.admin-toolbar_logo {
  background-image: url('../logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Hide the default inline SVG Druplicon */
.admin-toolbar_logo svg {
  display: none;
}

.region-sidebar-second {
  position: relative;
}


.region-selector select {
  appearance: none;
  /* Remove default styling */
  -webkit-appearance: none;
  /* For Safari */
  -moz-appearance: none;
  /* For Firefox */
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px 40px 10px 15px;
  /* Add space for the arrow */
  font-size: 1rem;
  border-radius: 0rem;
  cursor: pointer;
}


.region-sidebar-second .region-selector {
  position: absolute;
  inset: 0;
  top: 50vh;
  /* Pull the block upwards by half of its own height to perfectly center it */
  transform: translateY(-50%);
}


.region-content .region-selector {
  display: block;
  width: 380px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 2rem;
}

/* @media (max-width: 768px) {
  .map-container {
    margin-bottom: 2rem;
  }

  .region-sidebar-second .region-selector {
    display: none;
  }

  .region-content .region-selector {
    display: block;
  }
} */

.region-content .extended-region i {
  color: #067fc3;
  transition: color 0.2s ease;
}

.region-content .extended-region a:hover span {
  color: #067fc3;
  text-decoration: underline;
}


/*
 * Styling for the Region Landing Page Tabs Grid
 */
.region-tabs-grid .grid-tab-link {
  border: 1px solid #ccc;
  display: flex;
  /* Use flexbox */
  align-items: center;
  /* Vertical centering */
  justify-content: center;
  /* Horizontal centering */
  text-align: center;
  padding: 30px;
  color: #000;
  transition: .2s;
  min-height: 150px;
  /* Balanced height */
  font-family: "Open Sans", sans-serif;
  background: #fff;
  font-size: 24px;

  text-decoration: none !important;
  width: 100%;
  word-break: break-word;
  /* Prevent overflow */
}

.region-tabs-grid .grid-tab-link:hover,
.region-tabs-grid .grid-tab-link:focus {
  text-decoration: none !important;
  background-color: rgb(6, 127, 195);
  color: #fff;
}
.grid-tab-link:hover .grid-tab-icon {
  filter: brightness(0) invert(1);
}
.grid-tab-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.grid-tab-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

@media (max-width: 840px) {
  .region-tabs-grid .row>*:nth-child(3n + 1) {
    padding-left: 0 !important;
  }

  /* Last item in each row */
  .region-tabs-grid .row>*:nth-child(3n) {
    padding-right: 0 !important;
  }
}

@media (max-width: 576px) {
  .region-tabs-grid .row>* {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/*
 * Main container for the logo cloud
 */
/*
 * This is the main container for your grid of logos.
 * We make it a flex container to control alignment.
 */
.view-logo-cloud .views-view-grid {
  display: flex;
  flex-wrap: wrap;
  /* Allows logos to wrap to the next line on small screens */
  align-items: center;
  /* Vertically aligns all logo items */
  justify-content: center;
  /* Horizontally centers the group of logos */
  gap: 2rem;
  /* The space between each logo */
  border: none;
  /* Removes any default borders from the grid format */
}

/*
 * This is each individual column/logo item in your grid.
 */
.view-logo-cloud .views-col {
  /* It becomes a flex item, so we don't need to set a width */
  padding: 0;
  /* Removes default padding */
  border: none;
  /* Removes default borders */
}

/*
 * This targets the link that contains your logo and text.
 * We make it a flex container to align the image and text inside it.
 */
.view-logo-cloud .views-row a {
  display: flex;
  align-items: center;
  /* Vertically aligns the image with its text */
  justify-content: center;
  gap: 0.75rem;
  /* Sets the space between the image and the text */
  text-decoration: none;
  color: #067fc3;
  /* A standard link color */
  font-size: 0.9rem;
  line-height: 1.4;
}

.view-logo-cloud .views-col {
  text-align: center;
}

.view-logo-cloud .views-row a:hover {
  text-decoration: underline;
}

/*
 * This targets the logo image itself.
 */
.view-logo-cloud .views-row img {
  max-height: 100px;
  max-width: 100px;
}


/*
 * Final Styles for the Hero Banner Carousel
 */
.hero-carousel {
  /* margin-top: 2.5rem; */
  /* padding: 0px 0.75rem; */
  position: relative;
  color: #fff;
}

/* Overall slide container */
.hero-carousel .carousel-item {
  height: 400px;
  /* Adjust as needed */
  background-size: cover;
  background-position: center center;
}

/* Flex container for the left/right sections */
.hero-carousel .slide-container {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Left section (50% width) */
.hero-carousel .slide-content-left {
  flex: 0 0 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Right section (50% width), blue panel */
.hero-carousel .slide-content-right {
  flex: 0 0 50%;
  background-color: #0070b8;
  padding: 2rem;
  display: flex;
  align-items: center;
}

/* Caption text */
.hero-carousel .caption-text h2 {
  font-size: 1.7rem;
  font-weight: bold;
  margin: 0 0 1rem 0;
}

.hero-carousel .caption-text .btn {
  border-radius: 0;
  text-transform: uppercase;
  font-weight: bold;
}

/* Date overlay */
.hero-carousel .date-overlay {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  text-align: center;
  border-left: 5px solid #ffc107;
}

.hero-carousel .date-overlay .day {
  display: block;
  font-size: 3.5rem;
  font-weight: bold;
  line-height: 1;
}

.hero-carousel .date-overlay .month-year {
  display: block;
  font-size: 1.2rem;
  line-height: 1.2;
}

/* ---- GLOBAL ARROWS (outside slides) ---- */
.hero-carousel .carousel-side-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin: 0px 8px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
}

.hero-carousel:hover .carousel-side-arrow {
  opacity: 1;
  visibility: visible;
}

.hero-carousel .carousel-side-arrow:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.hero-carousel .carousel-side-arrow.prev {
  left: 15px;
}

.hero-carousel .carousel-side-arrow.next {
  right: 15px;
}

/* ---- INDICATORS (outside slides, bottom) ---- */
.hero-carousel .carousel-indicators-wrapper {
  position: absolute;
  bottom: 30px;
  right: 4px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;

}

.hero-carousel .carousel-indicators-wrapper button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #fff;
  border: none;
  opacity: 0.9;
  transition: opacity 0.2s ease-in-out, background-color 0.2s;
}

.hero-carousel .carousel-indicators-wrapper button.active {
  opacity: 1;
  background-color: #ffc107;
  /* Yellow for active dot */
}


/*
 * ========================================
 * Search Results Page Styles
 * ========================================
 */

/* Style the search form at the top of the page */
.search-form {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.search-form .search-help-link {
  margin-top: 0.5rem;
}

.search-form .form-type-search input[type="search"] {
  min-width: 180px;
  border-radius: 0px;
}

.search-form .btn {
  border-radius: 0px;
}

@media (max-width: 768px) {
  .search-form .btn {
    margin-top: 1rem;
    margin-bottom: 1rem;
    margin-left: 0px;
  }
}

/* Style the result count message */
.search-results__count {
  font-style: italic;
  color: #6c757d;
  margin-bottom: 2rem;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 1rem;
}

/* Style for each result card */
.search-result-card {
  border: 1px solid #dee2e6;
  transition: box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.search-result-card:hover {
  border-color: #adb5bd;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.07);
}

.search-result__title a {
  text-decoration: none;
}

/* Style the highlighted keywords within the snippet */
.search-result__snippet .search-highlight {
  background-color: #fff3cd;
  /* A subtle yellow highlight */
  padding: 0.1em 0.2em;
  border-radius: 3px;
  font-weight: bold;
}

/* Clean up the metadata display */
.search-result__info {
  margin-top: 1rem;
}

/*
 * ========================================
 * Search Help Page Styles
 * ========================================
 */

/* Use the unique body class to scope all our styles to the search help page */
.path-search-help .search-help-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  /* A responsive grid */
  gap: 1.5rem;
  /* Space between the help cards */
}

/* Create the "card header" from the h3 tags */
.path-search-help .search-help-main h3 {
  background-color: #f8f9fa;
  /* Light gray header */
  padding: 1rem 1.25rem;
  margin-bottom: 0;
  border: 1px solid #dee2e6;
  border-bottom: none;
  border-radius: 0.375rem 0.375rem 0 0;
  font-size: 1.1rem;
}

/* Create the "card body" from the lists that follow the headers */
.path-search-help .search-help-main .search-help__ dicas {
  background-color: white;
  padding: 1.25rem;
  margin-top: 0;
  border: 1px solid #dee2e6;
  border-radius: 0 0 0.375rem 0.375rem;
  list-style-position: inside;
}

/* Style the code/operator examples to make them stand out */
.path-search-help code {
  background-color: #e7f1ff;
  color: #0056b3;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-family: monospace;
}

/*
 * ========================================
 * Sidebar Admin (Councilor Details) Card Styles
 * ========================================
 */

/* Style the entire region/block wrapper */
.region-sidebar-second .block-views-blockregion-admin-card-block-1 {
  margin-top: 120px;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

@media (max-width: 840px) {
  .region-sidebar-second .block-views-blockregion-admin-card-block-1 {
    margin-top: 30px;
  }
}

.region-sidebar-second .block-views-blockregion-admin-card-block-1 h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 0.5rem;
}

/* The rounded picture */
.admin-card .views-field-user-picture img {
  border-radius: 50%;
  max-width: 100px;
  height: 100px;
  width: 100px;
  margin: 0 auto 1rem auto;
  border: 3px solid #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  object-fit: cover;
}

/* The admin's name */
.admin-card .views-field-field-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.25rem;
}

/* The opening hours section */
.admin-card .views-field-field-opening-hours-for-the-week {
  font-size: 0.9rem;
  color: #495057;
  text-align: left;
  /* Align the hours text to the left */
  border-top: 1px solid #dee2e6;
  padding-top: 1rem;
  margin-top: 1.5rem;
}

/* Style for lists inside the opening hours field */
.admin-card .views-field-field-opening-hours-for-the-week ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-card .views-field-field-opening-hours-for-the-week li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

/*
 * ========================================
 * Sidebar News Card Styles
 * ========================================
 */

/* Style the entire region/block wrapper */
.region-sidebar-second .block-views-blockregion-news-card-block-1 {
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0px;
  padding: 1.5rem;
}

.region-sidebar-second .block-views-blockregion-news-card-block-1 h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 0.5rem;
}

/* Remove the border from the last card */
.news-card .views-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.news-card .views-row {
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 0.5rem;
}

.news-card .views-field-title a {
  font-size: 1rem;
  font-weight: 600;
  color: #067fc3;
  text-decoration: none;
  text-overflow: ellipsis;
}

.news-card .views-field-title a:hover {
  text-decoration: underline;
}

/**
  * ========================================
  * Login page Styles
  * ========================================
*/

.user-login-form {
  max-width: 420px;
}

.user-login-form button,
.user-login-form input {
  border-radius: 0px;
}


/*
 styles for countdown timer
*/

.countdown-timer {
  max-width: 420px;
  margin-top: 32px !important;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e6e9ed, #ffffff);
  border-radius: 0.75rem;
  padding: 1rem;
  min-width: 80px;
  box-shadow: 5px 5px 15px #d1d4d8, -5px -5px 15px #ffffff;
}

.countdown-item .number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1.2;
}

.countdown-item .label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #767a7e;
  text-transform: uppercase;
  letter-spacing: 1px;
}


.countdown-timer .btn-view {
  text-decoration: none;
  color: var(--brand-primary);
}

.countdown-timer .btn-view:hover {
  text-decoration: underline;
}


/*
Calendar View Styles
*/

.calendar-view-table thead th {
  background: var(--brand-primary);
  color: #fff;
}

.calendar-view-table .calendar-view-day .calendar-view-day__number {
  background-color: var(--brand-primary);
  color: #fff;
}

.view-id-region-event-calendar .calendar-view-pager {
  margin-top: 32px;
  border: 1px solid #dee2e6;
  padding-left: 0px;
  flex-direction: row !important;
}

.view-id-region-event-calendar .calendar-view-pager .pager__item a {
  color: #067fc3;
}

.view-id-region-event-calendar .calendar-view-pager .pager__item.pager__next a::after {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: "\f061";
  margin-left: 8px;
}

.view-id-region-event-calendar .calendar-view-pager .pager__item.pager__previous a::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: "\f060";
  margin-right: 8px;
}

.calendar-view-table .calendar-view-day .calendar-view-day__row {
  position: relative;
}

.calendar-view-table .calendar-view-day .calendar-view-day__row a::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.post-block .post-image .field.field--name-field-image.field--type-image.field__item .item-image{
  object-fit: cover;
  max-height: 250px;
  overflow: hidden;
}
.lightgallery-wrapper ul.lightgallery li{
  padding: 8px;
  list-style: none !important;
  display: inline-block;
  width: 30%;
  border: 1px solid #c3c3c3;
  margin: 7px;
  box-shadow: 0px 0px 15px #fff;
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-transition: .3s ease-in-out;
  transition: .3s ease-in-out;
  border-radius:10px;
}
ul.lightgallery li {
  border: 5px solid transparent;
  box-sizing: border-box;
  width: 33.33%;
  float: left;
  position: relative;
  cursor: pointer;
}
.lightgallery .field-content {
  width: auto;
  height: 250px;
}
.lightgallery .field-content img {
  object-fit: cover;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  vertical-align: middle;
}
.path-frontpage .node__links{
  display:none;
}