/**
 * Elementor Widgets Styles
 * SPZServis Custom Features Plugin
 */

/* ============================================
   GLOBAL BUTTON STYLES - High Specificity
   ============================================ */

/* Red Buttons (Primary Actions) */
.stk-back-link,
.municipal-office-back-link,
.filter-apply-btn,
.listing-item-link,
.pagination-link.pagination-active,
.marker-popup .popup-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 20px !important;
    background: #DA3432 !important;
    background-color: #DA3432 !important;
    color: #ffffff !important;
    border: 2px solid #DA3432 !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}

.pagination-link.pagination-active {
    padding: 4px 10px !important;
}

.stk-back-link:hover,
.stk-back-link:focus,
.municipal-office-back-link:hover,
.municipal-office-back-link:focus,
.filter-apply-btn:hover,
.filter-apply-btn:focus,
.listing-item-link:hover,
.listing-item-link:focus,
.pagination-link.pagination-active:hover,
.pagination-link.pagination-active:focus,
.marker-popup .popup-link:hover,
.marker-popup .popup-link:focus {
    background: #c02a28 !important;
    background-color: #c02a28 !important;
    color: #ffffff !important;
    border-color: #c02a28 !important;
    text-decoration: none !important;
    outline: none !important;
}

.stk-back-link:active,
.municipal-office-back-link:active,
.filter-apply-btn:active,
.listing-item-link:active,
.pagination-link.pagination-active:active,
.marker-popup .popup-link:active {
    background: #a82321 !important;
    background-color: #a82321 !important;
    border-color: #a82321 !important;
    transform: translateY(1px) !important;
}

/* Anthracite/Gray Buttons (Secondary Actions) */
.filter-reset-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 20px !important;
    background: #232323 !important;
    background-color: #232323 !important;
    color: #ffffff !important;
    border: 2px solid #232323 !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}

.filter-reset-btn:hover,
.filter-reset-btn:focus {
    background: #000000 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    text-decoration: none !important;
    outline: none !important;
}

.filter-reset-btn:active {
    background: #0a0a0a !important;
    background-color: #0a0a0a !important;
    border-color: #0a0a0a !important;
    transform: translateY(1px) !important;
}

/* Pagination Links (Inactive) */
.pagination-link:not(.pagination-active):not(.pagination-disabled) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 10px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #232323 !important;
    border: 2px solid #e5e5e5 !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    text-align: center !important;
}

.pagination-link:not(.pagination-active):not(.pagination-disabled):hover,
.pagination-link:not(.pagination-active):not(.pagination-disabled):focus {
    background: #fff5f5 !important;
    background-color: #fff5f5 !important;
    color: #DA3432 !important;
    border-color: #DA3432 !important;
    text-decoration: none !important;
    outline: none !important;
}

.pagination-link:not(.pagination-active):not(.pagination-disabled):active {
    background: #ffe5e5 !important;
    background-color: #ffe5e5 !important;
    border-color: #c02a28 !important;
    transform: translateY(1px) !important;
}

/* Pagination Disabled */
.pagination-link.pagination-disabled {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 10px !important;
    background: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
    color: #999999 !important;
    border: 2px solid #e5e5e5 !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    cursor: not-allowed !important;
    opacity: 0.4 !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    text-align: center !important;
}

/* Remove all default button styles */
.stk-back-link,
.municipal-office-back-link,
.filter-apply-btn,
.filter-reset-btn,
.listing-item-link,
.pagination-link,
.marker-popup .popup-link {
    margin: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
}

.stk-back-link:focus,
.municipal-office-back-link:focus,
.filter-apply-btn:focus,
.filter-reset-btn:focus,
.listing-item-link:focus,
.pagination-link:focus,
.marker-popup .popup-link:focus {
    box-shadow: 0 0 0 3px rgba(218, 52, 50, 0.2) !important;
    outline: none !important;
}

/* ============================================
   STK Single Widget Styles
   ============================================ */
.stk-single-wrapper {
    max-width: 100%;
    font-family: inherit;
}

.stk-single-back {
    margin-bottom: 20px;
}

/* STK back link styles are in global button styles above */

.stk-single-title {
    margin: 0 0 40px 0;
    padding-top: 20px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #232323;
    text-align: center;
}

.stk-single-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .stk-single-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.stk-single-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stk-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-left: 4px solid #DA3432;
    border-radius: 8px;
}

.stk-field-label {
    font-weight: 700;
    font-size: 16px;
    color: #DA3432;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.stk-field-value {
    color: #232323;
    line-height: 1.6;
    font-size: 15px;
}

.stk-field-value > div {
    margin-bottom: 4px;
}

.stk-field-value > div:last-child {
    margin-bottom: 0;
}

/* Contact specific styles */
.stk-phone,
.stk-email {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.stk-phone:last-child,
.stk-email:last-child {
    margin-bottom: 0;
}

.stk-contact-label {
    font-weight: 600;
    color: #232323;
    min-width: 70px;
}

.stk-phone a,
.stk-email a {
    color: #232323;
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    transition: color 0.3s ease;
}

.stk-phone a:hover,
.stk-email a:hover {
    color: #DA3432;
    text-decoration: underline;
}

/* Opening hours and services */
.stk-opening-hours .stk-field-value,
.stk-services .stk-field-value {
    white-space: pre-line;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

/* Map styles */
.stk-single-map {
    /* Sticky positioning removed */
}

.stk-map-wrapper {
    width: 100%;
}

.stk-map-container {
    width: 100%;
    height: 500px;
    border-radius: 0;
    overflow: hidden;
    border: none;
    background: #f5f5f5;
    position: relative;
    box-shadow: 0 4px 12px rgba(35, 35, 35, 0.15);
}

.stk-map-error {
    padding: 20px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    text-align: center;
}

.stk-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Leaflet map adjustments */
.stk-map-container .leaflet-container {
    height: 100%;
    width: 100%;
    border-radius: 10px;
}

.stk-map-container .leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.stk-map-container .leaflet-popup-content {
    margin: 12px 16px;
    line-height: 1.5;
}

/* Google Maps adjustments */
.stk-map-container .gm-style {
    border-radius: 10px;
}

.stk-map-container .gm-style-iw {
    border-radius: 8px;
}

/* ============================================
   Municipal Office Single Widget Styles
   ============================================ */
.municipal-office-single-wrapper {
    max-width: 100%;
    font-family: inherit;
}

.municipal-office-single-back {
    margin-bottom: 20px;
}

/* Municipal office back link styles are in global button styles above */

.municipal-office-single-title {
    margin: 0 0 40px 0;
    padding-top: 20px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #232323;
    text-align: center;
}

.municipal-office-single-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .municipal-office-single-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.municipal-office-single-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.municipal-office-single-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.municipal-office-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-left: 4px solid #DA3432;
    border-radius: 8px;
}

.municipal-office-field-label {
    font-weight: 700;
    font-size: 14px;
    color: #DA3432;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.municipal-office-field-value {
    color: #232323;
    line-height: 1.6;
    font-size: 15px;
}

/* Basic info specific styles */
.municipal-office-basic-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.municipal-office-city,
.municipal-office-name,
.municipal-office-ds,
.municipal-office-fax,
.municipal-office-website {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 0;
    border-bottom: none;
}

.municipal-office-info-label {
    font-weight: 600;
    color: #232323;
    min-width: 120px;
}

.municipal-office-website a {
    color: #DA3432;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.municipal-office-website a:hover {
    color: #c02a28;
    text-decoration: underline;
}

/* Office hours styles */
.municipal-office-hours-list {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.municipal-office-hours-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.municipal-office-hours-items li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
    color: #232323;
    line-height: 1.6;
}

.municipal-office-hours-items li:last-child {
    border-bottom: none;
}

.municipal-office-hours-items li strong {
    color: #DA3432;
    font-weight: 600;
    margin-right: 8px;
    min-width: 120px;
    display: inline-block;
}

/* People styles */
.municipal-office-people-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.municipal-office-people-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.municipal-office-person-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.municipal-office-person {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 0;
    border-bottom: none;
}

.person-name {
    font-weight: 600;
    color: #232323;
    font-size: 15px;
    margin: 0;
    min-width: 120px;
}

.person-position {
    color: #232323;
    font-size: 15px;
    margin: 0;
    font-style: normal;
}

.person-phone,
.person-email {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 0;
    border-bottom: none;
    font-size: 15px;
}

.person-phone strong,
.person-email strong {
    font-weight: 600;
    color: #232323;
    min-width: 120px;
}

.person-phone a,
.person-email a {
    color: #232323;
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    transition: color 0.3s ease;
}

.person-phone a:hover,
.person-email a:hover {
    color: #DA3432;
    text-decoration: underline;
}

/* Map styles */
.municipal-office-single-map {
    /* Sticky positioning removed */
}

.municipal-office-map-wrapper {
    width: 100%;
}

.municipal-office-map-container {
    width: 100%;
    height: 500px;
    border-radius: 0;
    overflow: hidden;
    border: none;
    background: #f5f5f5;
    position: relative;
    box-shadow: 0 4px 12px rgba(35, 35, 35, 0.15);
}

.municipal-office-map-error {
    padding: 20px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    text-align: center;
}

.municipal-office-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Leaflet map adjustments */
.municipal-office-map-container .leaflet-container {
    height: 100%;
    width: 100%;
    border-radius: 10px;
}

.municipal-office-map-container .leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.municipal-office-map-container .leaflet-popup-content {
    margin: 12px 16px;
    line-height: 1.5;
}

/* Google Maps adjustments */
.municipal-office-map-container .gm-style {
    border-radius: 10px;
}

.municipal-office-map-container .gm-style-iw {
    border-radius: 8px;
}

/* ============================================
   Interactive Map Widget Styles
   ============================================ */
.interactive-map-widget {
    width: 100%;
}

.interactive-map-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.interactive-filters-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.filters-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e5e5e5;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.filters-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    color: #232323;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
}

.filter-item {
    margin-bottom: 20px;
}

.filter-item:last-child {
    margin-bottom: 0;
}

.filter-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #232323;
    font-size: 14px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #DA3432;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* Filter button styles are in global button styles above */

.interactive-content-area {
    flex: 1;
    min-width: 0;
}

.interactive-map-section {
    flex: 1;
    margin-bottom: 30px;
}

.interactive-map-container {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    background: #f5f5f5;
    position: relative;
    box-shadow: 0 4px 12px rgba(35, 35, 35, 0.15);
    margin-bottom: 15px;
}

.map-legend {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.map-legend-title {
    font-weight: 600;
    color: #232323;
    font-size: 14px;
    margin-right: 10px;
}

.map-legend-items {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.map-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-legend-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.map-legend-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Force colors in legend icons */
.map-legend-icon-stk svg .st0,
.map-legend-icon-stk svg path[class*="st0"] {
    fill: #da3432 !important;
}

.map-legend-icon-stk svg path[fill="#4a53a0"],
.map-legend-icon-stk svg path[fill='#4a53a0'] {
    fill: #da3432 !important;
}

.map-legend-label {
    font-size: 14px;
    color: #232323;
    font-weight: 500;
}

.map-loading,
.listing-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 16px;
}

.listing-error,
.map-error {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    text-align: center;
    font-size: 14px;
    margin: 20px;
}

/* Leaflet map adjustments */
.interactive-map-container .leaflet-container {
    height: 100%;
    width: 100%;
    border-radius: 8px;
}

.interactive-map-container .leaflet-popup-content-wrapper {
    border-radius: 4px;
}

.interactive-map-container .leaflet-popup-content {
    margin: 8px 12px;
    line-height: 1.4;
}

/* Custom marker popup styles */
.spzsu-map-popup .leaflet-popup-content-wrapper,
.spzsu-popup-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.spzsu-popup-content {
    max-width: 300px;
    padding: 20px;
}

.spzsu-popup-header {
    margin-bottom: 16px;
    position: relative;
}

.spzsu-popup-title {
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #232323;
    line-height: 1.3;
    padding-right: 30px;
}

.spzsu-popup-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.spzsu-popup-type.stk {
    background: #ffe5e5;
    color: #DA3432;
    border: 1px solid #ffcccc;
}

.spzsu-popup-type.municipal {
    background: #e5e5e5;
    color: #232323;
    border: 1px solid #d0d0d0;
}

.spzsu-popup-details {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spzsu-popup-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #232323;
}

.spzsu-popup-icon {
    flex-shrink: 0;
    font-size: 16px;
    width: 20px;
    text-align: center;
    line-height: 1.4;
}

.spzsu-popup-detail a {
    color: #232323;
    text-decoration: none;
    font-weight: 400;
    word-break: break-word;
}

.spzsu-popup-detail a:hover {
    color: #DA3432;
    text-decoration: underline;
}

.spzsu-popup-detail span:not(.spzsu-popup-icon) {
    color: #232323;
    word-break: break-word;
}

.spzsu-popup-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.spzsu-popup-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    background: #DA3432;
    color: #ffffff !important;
    border: 2px solid #DA3432;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.4;
    text-align: center;
}

.spzsu-popup-link:hover,
.spzsu-popup-link:focus {
    background: #c02a28;
    border-color: #c02a28;
    color: #ffffff;
    text-decoration: none;
    outline: none;
}

.spzsu-popup-link:active {
    background: #a82321;
    border-color: #a82321;
    transform: translateY(1px);
}

/* Leaflet popup adjustments */
.spzsu-map-popup .leaflet-popup-content {
    margin: 0;
    padding: 0;
}

.spzsu-map-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 12px;
}

.spzsu-map-popup .leaflet-popup-close-button {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 20px;
    color: #666;
    padding: 0;
    margin: 8px 8px 0 0;
    z-index: 10;
}

.spzsu-map-popup .leaflet-popup-close-button:hover {
    color: #232323;
}

/* Google Maps InfoWindow adjustments */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
}

.gm-style .gm-style-iw-c .spzsu-popup-content {
    padding: 20px;
    max-width: 300px;
}

.gm-style .gm-style-iw-t::after {
    background: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

/* Listing styles */
.interactive-listing-section {
    margin-top: 30px;
}

.interactive-listing {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #DA3432;
}

.listing-count {
    font-weight: 600;
    color: #232323;
    font-size: 14px;
    white-space: nowrap;
}

.listing-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.listing-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.listing-item-content {
    flex: 1;
}

.listing-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.listing-item-title {
    margin: 0;
}

.listing-item-title a {
    font-size: 18px;
    font-weight: 700;
    color: #232323;
    text-decoration: none;
    transition: color 0.3s ease;
}

.listing-item-title a:hover {
    color: #DA3432;
}

.listing-item-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin: 0;
}

.listing-item-type.stk {
    background: #ffe5e5;
    color: #DA3432;
    border: 1px solid #DA3432;
}

.listing-item-type.municipal {
    background: #e5e5e5;
    color: #232323;
    border: 1px solid #232323;
}

.listing-item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #232323;
    font-size: 14px;
}

.listing-item-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border-bottom: none;
    color: #232323;
    font-size: 14px;
}

.listing-item-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.listing-item-address {
    align-items: flex-start;
    line-height: 1.5;
}

.listing-item-phone a,
.listing-item-email a,
.listing-item-website a {
    color: #232323;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: color 0.3s ease;
}

.listing-item-phone a:hover,
.listing-item-email a:hover,
.listing-item-website a:hover {
    color: #DA3432;
    text-decoration: underline;
}

.listing-item-actions {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

/* Listing item link styles are in global button styles above */

/* Pagination styles */
.listing-pagination-top,
.listing-pagination-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Pagination link styles are in global button styles above */

.pagination-ellipsis {
    padding: 10px 8px;
    color: #666;
    font-weight: 600;
    user-select: none;
}

.pagination-prev,
.pagination-next {
    min-width: auto !important;
    padding: 10px 16px !important;
}

.no-results {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .interactive-map-layout {
        flex-direction: column;
    }
    
    .interactive-filters-sidebar {
        width: 100%;
    }
    
    .filters-container {
        position: relative;
        top: 0;
        max-height: none;
    }
    
    .listing-item {
        flex-direction: column;
    }
    
    .listing-item-actions {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }
    
    .listing-item-link {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   Archive Widget Styles (STK & Úřady)
   ============================================ */
.spzsu-archive-widget {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.spzsu-archive-widget .archive-title {
    margin: 0 0 30px 0;
    padding: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #232323;
    text-align: center;
}

.spzsu-archive-widget .archive-intro-text,
.spzsu-archive-widget .archive-outro-text {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid #DA3432;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.6;
    color: #232323;
}

.spzsu-archive-widget .archive-outro-text {
    margin: 40px auto 0;
}

.spzsu-archive-widget .archive-listing-section {
    margin-top: 40px;
}

/* Archive uses same listing styles as interactive map */
.spzsu-archive-widget .listing-header,
.spzsu-archive-widget .listing-items,
.spzsu-archive-widget .listing-item {
    /* Inherit from interactive map styles above */
}

@media (max-width: 768px) {
    .spzsu-archive-widget .archive-title {
        font-size: 28px;
    }
    
    .spzsu-archive-widget .archive-intro-text,
    .spzsu-archive-widget .archive-outro-text {
        padding: 15px;
        font-size: 15px;
    }

    .listing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0px;
    }
}
