/*Glyphicon*/
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

.leaflet-popup-content-wrapper {
    border-bottom: 5px solid #3c8dde;
    border-radius: 0 !important;
    opacity: 0.9;
}

.leaflet-popup-content {
    min-width: 150px;
}

.leaflet-popup-tip-container {
    display: none;
}

.map-popup-content {
    display: flex;
    flex-direction: column;
}

.map-popup-county, .map-popup-county-name {
    font-family: 'DM Sans', sans-serif;
    text-align: center;
    font-weight: bold;
}

.map-popup-county {
    color: #777879;
}

.map-popup-county-name {
    font-size: 18px;
    margin-bottom: 18px;
}

.map-popup-county-info-container {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.map-popup-county-business-nr, .map-popup-county-business-type {
    color: #3c8dde;
    font-weight: bold;
}

.map-popup-county-business-nr {
    font-size: 20px;
}

.map-popup-county-business-type {
    font-size: 16px;
}

.map-popup-county-link {
    font-size: 20px;
    font-weight: 100;
    color: black !important;
    background-color: #cadcef;
    text-decoration: none;
    padding: 1px 8px;
}

/*todo: remove*/
.temporary-image {
    max-height: 300px;
}

.cityhall-results::before {
    content: "";
    position: absolute;
    left: .75rem;
    top: 1.75rem;
    bottom: 0;
    border-left: .25rem solid #3c8dde;
}

/***********************************************************************************************************************
* BUSINESS HOURS
***********************************************************************************************************************/

.business-hours-article {
    display: grid;
    grid-template-columns: 250px auto;
    gap: 1rem;
    margin-top: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.business-hours-article h2 {
    overflow-wrap: break-word;
}

.business-hours-table {
    border-collapse:collapse;
}

.business-hours-table tr:nth-child(odd) {
    background-color: rgba(214,214,214, 0.33);
}

.business-hours-table tr:hover {
    font-weight: bold;
}

.business-hours-table caption {
    text-align: left;
    margin-bottom: 1rem;
    padding: 0 0.5em;
}

.business-hours-table td {
    width: 50%;
    padding: 0.5em 1em;
}

.business-hours-table .td-no-timetable {
    width: 100%;
    text-align: center;
}

/***********************************************************************************************************************
* BUSINESS HOURS MOBILE
***********************************************************************************************************************/

@media only screen and (max-width: 1200px) {

    .business-hours-article {
        grid-template-columns: auto;
        margin-top: 1rem;
    }

    .business-hours-article h2 {
        margin: 0.5rem;
    }

}

/***********************************************************************************************************************
* Contact
 */
.contact-page h2, .sub-page-contact h2 {
    color: #3c8dde;
    font-size: 1.25em;
    margin-bottom: .75em;
    margin-top: 2em;
    text-transform: uppercase;
}

.contact-page .contact,.contact-page .contact-info, .sub-page-contact .contact,.sub-page-contact .contact-info {
    padding: 3rem 0;
    margin-top: 4rem;
}

.contact-page .contact,.sub-page-contact .contact {
    background-color: #cadcef;
}

.contact-page .company-logo, .sub-page-contact .company-logo {
    height: 100%;
}

.contact-page .company-logo img, .sub-page-contact .company-logo img{
    height: 100%;
    object-fit: cover;
}

/* Business page company logo styles */
.company-header {
    position: relative;
    z-index: 20;
    margin-right: -30px !important;
}

.company-header .company-logo {
    width: calc(100% - 40px);
    max-width: none;
    margin: 10px 0 0 0;
    background-color: white;
    border-radius: 8px;
    position: relative;
    z-index: 15;
    aspect-ratio: 1/1;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    /* transform: translateX(30px); */
}

.company-header .company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
} 

.card-podcast .card-image img, .sub-page-contact .card-image img {
    width: 100%;
    object-fit: cover;
}

.bg-green {
    background-color: #2aa100 !important;
}

.article-body {
    border-bottom: none;
}

.card-cityhall .card-label {
    z-index: 1;
}

div .profile-views .view-count {
    font-weight: bold;
    font-size: 2.5em;
    color: #0A0EA0;
}

#profile-sidebar li{
    padding: 0;
}

#profile-sidebar a {
    text-decoration: none; /* Remove text decoration */
    color: black; /* Change text color to black */
    text-align: center; /* Center align text */
    display: block; /* Make links block level for full width hover effect */
    padding: 20px; /* Adjust padding as needed */
    transition: background-color 0.3s; /* Smooth transition for background color */
}

#profile-sidebar a:hover {
    color: var(--bs-list-group-active-color) !important;
    background-color: var(--bs-list-group-active-bg);
    border-color: var(--bs-list-group-active-border-color);
}

.list-group-item.active  a{
    z-index: 2;
    color: var(--bs-list-group-active-color) !important;
    background-color: var(--bs-list-group-active-bg);
    border-color: var(--bs-list-group-active-border-color);
}

main .user-profile .btn {
    color: white;
}

.user-profile .business-detail {
    margin-bottom: 15px; /* Add space between each business-detail */
}

.user-profile .detail-label {
    font-weight: bold; /* Make the label bold */
    display: inline-block; /* Keep the label inline with the text */
    margin-right: 5px; /* Add some space between the label and the text */
}

.profile-todos {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin: 0;
}

/* General styles for todo containers */
.todo-container {
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border: 1px solid #ddd;
}

/* Success state styles */
.todo-container.success {
    background-color: #0A0EA0;
    color: white;
}

/* Title styles */
.todo-container .title {
    font-weight: bold;
}

.todo-container.success .title {
    color: white;
}

/* Description styles */
.todo-container .description {
    margin-top: 10px;
}

.todo-container.success .description a {
    color: white;
}

.todo-container.success .description a:hover {
    text-decoration: underline;
}

/* Hover effects */
.todo-container:hover {
    background-color: #3C8DDE;
    color: white;

    a {
        color: #0A0EA0;
    }
}

/* Title styling */
.title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Description styling */
.description {
    font-size: 14px;
}

.description a {
    text-decoration: none;
    color: #007bff;
}

.description a:hover {
    text-decoration: underline;
}

.profile-views {
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.complete-profile {
    margin-bottom: 20px;
}

.complete-profile span {
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

.sidebar-content .counter {
    position: relative;
}

.message-content {
    position: absolute;
    top: 200px; /* Adjust this value as needed */
    z-index: 1050; /* Ensure it appears above other content */
    right: 1em;
}

.message-content .alert {
    display: flex;
    gap: 1em;
    padding: 1em;
}

.message-content .message-text {
    margin: auto;
}

.message-content button {
    font-size: 1.5rem;
    background: none;
    border: none
}

.message-content button:hover {
    font-size: 2rem;
}

.pagination-listing .page-item.active {
    cursor: pointer;
}

#jumpToPageForm {
    display: none;
    justify-content: center;
}

.jump-page-form-container {
    display: flex;
    align-items: center;
    border-radius: 5px;
}

.jump-page-form-container .form-control {
    width: 80px !important;
}

.jump-page-form-container .btn {
    padding: 13px;
}

.article-body, section {
    img {
        max-width: 100%;
        width: 100%;
    }
}

.card-image.card-img-top .img-fluid {
    height: 180% !important;
}

.temporary-image {
    object-fit: cover;
}

.search-result-text {
    text-shadow: 0px 0px 3px white;
}

main.search img {
    object-fit: contain !important;
    max-height: 220px;
}

main .card.highlight-orange {
    --highlight: var(--orange);
}

main .card.highlight-red {
    --highlight: var(--red);
}

main .card.highlight-turqoise {
    --highlight: var(--turqoise);
}

main .card.highlight-purple {
    --highlight: var(--purple);
}

main .card.highlight-green {
    --highlight: var(--green);
}

.text-turqoise {
    color: var(--turqoise);
}

#nav-fixed {
    display: none;
    position: fixed;
    top: 152px;
    width: 100%;
    z-index: 1000;
    background-color: white;
    padding-top: 22px;
    box-shadow: 0 0 10px rgba(128, 128, 128, 0.5);
}

@media (max-width: 767px) {
    #nav-fixed {
        top: 74px;
    }
}

.company-side {
    margin-top: 2rem;
    z-index: 1;
}

main {
    min-height: 84vh;
}

.tag-advertisement {
    display: flex;
    justify-content: center;
}

.special-logo {
    background-color: darkorange;
    display: inline-block;
    position: absolute;
    top: 20px;
    left: 0;
    color: white;
    font-size: 1.1em;
    padding: 10px;
}

.special-logo.special-expired {
    background-color: red;
}

.special-logo.special-link {
    background-color: unset;
    padding: 0;
}

.special-logo {
    span {
        font-size: 0.8em;
    }

    button.btn-danger {
        padding: 5px;
    }
}

.promo-selected-dates-content {
    background-color : #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.promo-dates .btn {
    width: 150px;
    text-align: left;
}

.selected-date {
    display: flex;
    align-items: center;
}

.promo-selected-price h3 {
    margin-bottom: 0;
}

.promo-selected-price small {
    font-size: 0.6em;
}

.badge.bg-primary {
    color: white;
}

.modal-content {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
}
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}
.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.btn-group {
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

.card-news .card-image {
    height: 300px; /* or whatever height you prefer */
}

.card-news .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.max-container {
    max-width: 1140px !important;
}

.container .card.card-vertical .card-body {
    min-height: 140px;
}

.card-light-blue {
    --highlight: #3c8cdc;
}

.card-main-highlight {
    img {
        object-fit: cover;
        height: 345px !important;
        width: 345px !important;
    }
}

/* Gallery container and image styling (existing styles) */
#gallery-documents-container {
    width: 100%;
    max-height: 600px;
    overflow-y: scroll;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}

.gallery-document {
    width: 200px;
    position: relative; /* Make container the positioning reference */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.gallery-document img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

/* Delete button styling */
.delete-button {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 16px;
    background: #ff4d4d; /* Red delete button */
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.delete-button:hover {
    background: #d93636; /* Darken on hover */
}

.business-gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 0 auto;
}

.business-gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

@media (min-width: 576px) {
    .business-gallery-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .business-gallery-images {
        grid-template-columns: repeat(3, 1fr);
    }
}

.business-gallery-image:hover {
    transform: scale(1.05); /* Optional zoom effect on hover */
}

.clip-sides-2 {
    clip-path: inset(0 2px 0 2px);
}

.company-slider-image {
    max-height: 300px;
    object-fit: cover;
}

/* Company slider styles */
.company-slider {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-right: -25px;
}

.company-slider .swiper-slide {
    background-color: #f5f5f5;
}

.company-slider .company-slider-image {
    width: 100%;
    object-fit: contain;
    display: block;
}


/* Map Glyphicon classes to Font Awesome equivalents */
.glyphicon {
    display: inline-block;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;  /* This is important for solid icons */
    font-style: normal;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mappings for your specific icons */
.glyphicon-pencil:before {
    content: "\f303";  /* fa-pencil-alt */
}

.glyphicon-time:before {
    content: "\f017";  /* fa-clock */
}

.glyphicon-resize-full:before {
    content: "\f065";  /* fa-expand */
}

.glyphicon-resize-small:before {
    content: "\f066";  /* fa-compress */
}

.glyphicon-fullscreen:before {
    content: "\f31e";  /* fa-expand-arrows-alt */
}

.glyphicon-share:before {
    content: "\f064";  /* fa-share */
}

.glyphicon-remove:before {
    content: "\f00d";  /* fa-times */
}

.glyphicon-ok:before {
    content: "\f00c";  /* fa-check */
}

.glyphicon-trash:before {
    content: "\f1f8";  /* fa-trash */
}

/* Add support for the icon-flipped class used in rotate-ccw */
.icon-flipped {
    transform: scaleX(-1);
    -moz-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    -ms-transform: scaleX(-1);
}

/* Responsive adjustments for business page company logo */
@media (max-width: 991px) {
    .company-header {
        margin-right: 0 !important;
    }
    
    .company-header .company-logo {
        width: 100%;
        margin: 0 0 20px 0;
        aspect-ratio: 3/2;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .company-header .company-logo {
        aspect-ratio: 3/2;
        padding: 15px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
}

@media (max-width: 480px) {
    .company-header .company-logo {
        aspect-ratio: 3/2;
        padding: 10px;
    }
}

/* Inactive business/city hall page styles */
.inactive-message {
    text-align: center;
    padding: 100px 20px;
    background-color: #f8f9fa;
    min-height: 400px;
}

.inactive-message h1 {
    color: #dc3545;
    margin-bottom: 30px;
}

.inactive-message .business-name {
    color: #333;
    margin-bottom: 20px;
}

.inactive-message .info {
    color: #6c757d;
    margin-bottom: 40px;
}

.inactive-message .buttons {
    margin-top: 40px;
}

.inactive-message .buttons a {
    margin: 0 10px;
}

/* Homepage alignment fixes */
.index .section-bg-gray .container > .row:first-child {
    margin-left: 0;
    margin-right: 0;
}

.index .section-bg-gray .container > .row:first-child > .col-12 {
    padding-left: 0;
    padding-right: 0;
}

.index .card-main.card-highlight .card-body {
    padding: 2rem !important;
}

.index .card-main.card-highlight .card-title {
    font-size: 1.675rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.index .card-main.card-highlight .card-text {
    font-size: 1.25rem;
    line-height: 1.5;
}

.index .card-main-small .card-image img {
    height: 175px !important;
}