* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', Arial, sans-serif;
    font-size: clamp(11px, min(3vw, 2.4vh), 24px);
}

/* Accessibility: Hide labels visually but keep them for screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Business Status Badge Styles */
.business-status-badge {
    display: inline-block;
    padding: 4px 8px;
    margin: 4px 0;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    border-radius: 12px;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    max-width: fit-content;
    align-self: flex-start;
    z-index: 10;
}

.business-status-closed-permanently {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: 1px solid #ef4444;
    animation: pulse-red 2s infinite;
}

.business-status-closed-temporarily {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 1px solid #fbbf24;
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Business Closure Overlay for Detail Screens */
.business-closure-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.closure-diagonal-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transform: rotate(-45deg);
    white-space: nowrap;
    letter-spacing: 0.5rem;
    text-align: center;
    z-index: 1001;
}

.closure-status-badge {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 2px solid #ef4444;
    animation: pulse-closure 2s infinite;
    z-index: 1002;
}

.closure-details {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.9rem;
    max-width: 280px;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 1002;
}

.business-closure-overlay-temporary .closure-status-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #fbbf24;
    animation: none;
}

.business-closure-overlay-temporary .closure-diagonal-text {
    color: rgba(255, 193, 7, 0.3);
}

/* Closed business card styling */
.business-closed-permanent,
.business-closed-temporary {
    position: relative;
    overflow: hidden;
}

.business-closed-permanent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 38, 38, 0.1);
    z-index: 1;
}

.business-closed-temporary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 158, 11, 0.1);
    z-index: 1;
}

@keyframes pulse-closure {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

button {
    cursor: pointer;
}

body {
    color: #ffffffbb;
    background: #e8e8e8;
    margin: 0;
    display: flex;
    align-items: flex-start;
    justify-content: left;
    font-style: normal;
    font-weight: 500;
    user-select: none;
    font-size: 1rem;
}

div {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.content {
    width: 100vw;
    display: grid;
    place-items: center center;
}

.outer-box {
    background: #e8e8e8;
    width: 100vw;
    overflow: hidden;
}

.inner-content {
    flex-direction: column;
    justify-content: start;
    width: 100vw;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-direction: row;
    margin: 0 0;
    width: 100%;
    overflow-x: scroll;
    overflow-y: visible;
    min-height: 1.5rem; /* changed to scale as the font height driven tags scale. */
    flex: 2;
}

.rating {
    flex-direction: row;
    gap: 3px;
    border: 1px solid #fff8;
    width: 0;
    /* transition: width 300ms ease-in-out; */
}

.rating .rating-star {
    opacity: 0.25;
    /* transition: opacity 450ms ease-in-out; */
}

.rating .rating-star.on {
    opacity: 1;
    /* transition: opacity 300ms ease-in-out; */
}


.rating-action .action-item {
    opacity: 1;
    /* transition: opacity 100ms ease-in-out,
    width 100ms ease-in-out; */
    position: absolute;
    top: 0;
    z-index: 10;
}

.rating-action:hover .action-item {
    opacity: 0;
    /* transition: opacity 100ms ease-in-out,
    width 100ms ease-in-out; */
}

.rating-action .rating {
    height: auto;
    margin: 0;
    opacity: 0;
    /* transition: opacity 100ms ease-in-out,
    width 100ms ease-in-out; */
    position: absolute;
    top: 2px;
    z-index: 20;

    background-color: #333;
    border-radius: 36px;
    padding: 2px;
    overflow: hidden;
}

.dialog .rating-action .rating,
.rating-action:hover .rating {
    opacity: 1;
    /* transition: opacity 100ms ease-in-out,
    width 100ms ease-in-out; */
    width: 110px;
}

.dialog .rating-action {
    margin-bottom: 1em;
    margin-left: -100vw;
}

.dialog .rating-action .rating {
    left: 100vw;
}

.dialog .review-dialog.col {
    min-width: 100%;
}

.dialog .review.label {
    min-width: 100%;
}

.rating-action {
    margin: 0;
    border-radius: 36px;
    padding: 0;
    /* transition: opacity 100ms ease-in-out,
    width 100ms ease-in-out; */
    position: relative;
    display: flex;
    align-items: center;
    /*height: 36px;*/
    width: 60px;
    z-index: 10;
}

.rating-action .icon {
    width: 24px;
    height: 24px;
}

.content-panel .action-item.rating-action .text {
    font-size: 16px;
    margin-top: 4px;
}

.help-text {
    font-size: 11px;
    margin: 6px 9px;
    text-justify: inter-word;
}

.map {
    width: 100%;
    height: 37vh;
    z-index: 300;
    margin-top: 27vh;
}

.leaflet-popup-tip-container {
    top: 100%;
}

#map {
    z-index: -9999;
    transition: none;
}

.map-panel {
    background: lightblue;
    width: 100%;
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    position: relative;
    z-index: 100;
    transition: none;
}

.collect_board .map-panel {
    min-height: 326px;
}


.map-panel .description {
    font-size: 10px;
}

.page.collect_board .map-preview .card,
.page.explore .map-preview .card {
    min-height: 0;
    gap: 6px;
    padding: 1em;
    border-radius: 2em;
    display: none;
    width: 86%;
    position: absolute;
    top: 2rem;
}

.map-panel .action-item.pin {
    margin-top: 52px;
}

.map-panel .button.est-time-distance {
    position: absolute;
    top: 3px;
    width: 50%;
    line-height: 1em;
}

.explore.collect_board .map-preview .title,
.explore.collect_board .map-preview .action-item.book,
.explore.collect_board .map-preview .card .card-title,
.explore.page .map-preview .title,
.explore.page .map-preview .action-item.book,
.explore.page .map-preview .card .card-title {
    font-size: 11px;
}

.page.collect_board .map-preview .card .content-panel,
.page.explore .map-preview .card .content-panel {
    padding: 1px;
}

.page.collect_board .map-preview .title > .action-item,
.page.explore .map-preview .title > .action-item {
    background: none;
}

.page.collect_board .map-preview .card .title,
.page.explore .map-preview .card .title {
    padding: 1px;
}

.page.collect_board .map-preview .card .title .action-item,
.page.explore .map-preview .card .title .action-item {
    padding: 2px;
}

.page.collect_board .map-preview .card .preview-actions,
.page.explore .map-preview .card .preview-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 4px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px;
}

.page.collect_board .map-preview .card .person-icon,
.page.explore .map-preview .card .person-icon {
    display: none;
}

.page.collect_board .map-preview .card .person-icon:first-child,
.page.explore .map-preview .card .person-icon:first-child {
    display: flex;
}

.page.collect_board .map-preview .hash-tag,
.page.explore .map-preview .hash-tag {
    font-size: 7px;
}

.page.collect_board .map-preview .card .title .icon,
.explore.page .map-preview .card .title .icon {
    width: 12px;
    height: 12px;
}

.explore.page .map-preview .card .title,
.page.collect_board .map-preview .card .title {
    font-size: 11px;
}

.action-item.small {
    padding: 2px 3px;
    margin: 1px;
    gap: 1px;
    border-radius: 3px;
    font-size: 11px;
}

.subtle {
    opacity: 0.6;
}

.tiny-text {
    font-size: 0.7rem;
}

.action-item.book {
    background: #dd8800;
}

.action-item.book:hover {
    background: #dd8800FF;
}

.card-title .action-item {
    /*background: none;*/
}

.map-preview {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    border-radius: 2em;
    gap: 1em;
}

.map-preview .map-heading {
    justify-content: space-between;
}

.map-preview .map-title {
    font-size: 12px;
}

.map-preview .map-subtitle {
    font-size: 9px;
}

.map-preview .main-columns {
    gap: 1em;
}

.map-preview .card .action-item .icon,
.map-preview .card .title .action-item.menu .icon {
    max-width: 12px;
    max-height: 12px;
    width: 12px;
    height: 12px;
}

.map-preview .person-icon .icon-frame .icon {
    max-width: 24px;
    max-height: 24px;
    width: 24px;
    height: 24px;
}

.map-preview .card {
    background: none;
    background-color: white;
    color: black;
    text-shadow: none;
    z-index: 100;
}

.map-preview .left-column {
    align-items: center;
    /* padding-left: 1em; */
    gap: 1em;
    width: 40%;
}

.map-preview .left-column * {
    /* width: fit-content; */
}

.map-preview .social-nav {
    width: 100%;
    justify-content: space-evenly;
}

.map-preview .social-nav img {
    width: 30px;
}

.map-preview .coplanner-panel {
    border: 1px solid #ddd;
    padding: .5em;
    border-radius: 1em;
}

.map-preview .coplanner-panel .tag {
    color: white;
    background-color: black;
    width: fit-content;
    padding-right: .7em;
    border-radius: 50vh;
    height: 20px;
}

.map-preview .coplanner-panel div img {
    width: 20px;
}

.map-preview .coplanner-panel .paid {
    background-color: green;
    padding-left: .7em;
    justify-content: center;
}

.map-preview .date-panel {
    align-items: center;
}

.map-preview .date-panel * {
    width: fit-content;
}

.map-preview .date-panel img {
    width: 1em;
}


.map-preview .right-column {
    width: 60%;
}


.map-preview select.select.respond,
.map-preview select.select.respond option,
.map-preview select.select.category,
.map-preview select.select.category option {
    height: 24px;
    padding: 0.25em;
    font-size: 11px;
    width: fit-content;
}

.map-preview select.select.category {
    background-color: #dd8800;
    position: absolute;
    top: 6px;
    left: 60px;
}

.explore_detail select.select.category {
    background-color: #dd8800;
    position: absolute;
    top: 0.5vh;
    left: calc(50% - 8vw);
}

.map-preview select.select.category option {
    background-color: rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.8);
}

.map-preview .card .child-image {
    min-height: 180px;
    width: 100%;
    position: relative;
    object-fit: cover;
    border-radius: 1em;
}

.map-preview .action-item.book {
    position: absolute;
    bottom: 6px;
    left: 25%;
}

.pin-popup .pin-title {
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
}

.plan_detail .card .text,
.collect_board .card .text {
    font-size: 9px;
}

.collect_board #range .choice {
    /*min-width: 86px;*/
}


.button {
    /*width: calc(100% - 12px);*/
    line-height: 2em;
    color: white;
    background: #888888;
    border-style: none;
    border-radius: 6px;
    margin: 0; /* gap should handle this now */
    padding: 3px 6px;
}

.button:hover {
    background: #888888;
}

.button .wide {
    width: calc(100% - 12px);
}

.connect.page .header .action-item .text,
.collect.page .header .action-item .text {
    display: initial;
}

input[type="text"].tag-input {
    margin: 6px 0;
    width: 100%;
}

.boolean-choices {
    flex-direction: column;
    gap: 9px;
    flex: 2 2 100%;
}

.toggle-switch {
    position: relative;
    display: flex;
    width: 30px;
    height: 17px;
    min-width: 0 !important;
    flex-direction: row;
    overflow: visible;

    align-items: center;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    /*margin-left: 6px;*/
}

.toggle-target {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .2s;
    transition: .2s;
}

.toggle-target:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .2s;
    transition: .2s;
}

.toggle-switch input:checked + .toggle-target {
    background-color: #dd8800;
}

.toggle-switch input:focus + .toggle-target {
    box-shadow: 0 0 1px #dd8800;
}

.toggle-switch input:checked + .toggle-target:before {
    -webkit-transform: translateX(13px);
    -ms-transform: translateX(13px);
    transform: translateX(13px);
}

.toggle-switch .toggle-target.round {
    border-radius: 17px;
}

.toggle-switch .toggle-target.round:before {
    border-radius: 50%;
}

.toggle-text {
    margin-left: 32px;
    white-space: nowrap;
}

.nowrap {
    white-space: nowrap;
}

.tooltip {
    position: relative;
}

.tooltip .tooltiptext {
    font-size: 0.7em;
    visibility: hidden;
    background-color: #00000088;
    color: white;
    text-align: left;
    padding: 1px 1px;
    border-radius: 2px;
    position: absolute;
    z-index: 1;
    top: 48px;
    left: 0;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

.tooltip .tooltiptext::after {
    content: " ";
    position: absolute;
    bottom: 110%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
}

/* .message-text .tooltip {
    position: absolute;
    display: inline-block;
    left: -3.2rem;
    overflow: visible;
    top: -1.3rem;
    z-index: 1;
} */

.gold {
    color: #dd8800;
}

.settle .gold {
    color: #dd8800;
    background: white;
}

.clickable-url {
    color: #dd8800 !important;
    text-decoration: none;
}

.clickable-url:hover {
    color: #fbbf24 !important;
    text-decoration: underline;
}

.input-row {
    width: 100%;
}

input[type="text"].card-search-text {
    width: 98%;
    justify-content: center;
    align-self: center;
}

.row > .select-options-component {
    align-self: flex-start;
}

.filter-row {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 2em;
}

input[type="text"].new-item {
    width: calc(100% - 6px);
    margin-left: 2px;
}

input[type="text"].external-invite-first-name {
    width: 80%;
    margin: 30px;
}

input[type="text"].external-invite-last-name {
    width: 80%;
    margin: 30px;
}


#pill-box:hover > .select.results:focus,
.new-item ~ .select.results:focus,
.new-item:focus ~ .select.results,
.new-item ~ .select.results:hover {
    display: block;
}

.card-search-results {
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1em;
    padding-bottom: 1rem;
}

.menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 100vh;
    color: black;
    background: white;
    box-shadow: 0 0 6px 0 black;
    z-index: 9999;
    padding: 0.25em;
    text-align: left;
    /* transition-property: width, height, opacity, padding;
    transition-duration: 333ms;
    transition-timing-function: ease-in-out; */

}

.menu-panel ul {
    list-style-type: none;
    text-align: left;
}

.menu-panel li {
    padding: 0.25em 0 0.25em 0;
    text-align: left;
}

.menu-panel .action-item {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
}

.debug-panel {
    font-family: Consolas, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
    font-size: 11px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: #009900;
    background: #003300;
    min-height: 33vh;
    box-shadow: 0 0 6px 0 black;
    z-index: 99999;
    overflow-y: scroll;
    padding: 0.25em;
}

.debug-panel #environment-select {
    width: 200px;
    background-color: #009900;
}

.debug-panel #environment-select option {
    background-color: #009900;
    color: #888;
}


.datetime {
    color: white;
}


.main-bottom-options {
    flex-direction: row;
    justify-content: space-evenly;
}

.change-credentials,
.edit-tastematch-button {
    color: white;
    background: #e99821dd;
    font-size: 0.85rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    padding: 0.1rem 0.5rem 0.2rem;
    width: fit-content;
    box-shadow: none;
    text-transform: capitalize;
    text-decoration: none;
    border-radius: 100%;
    border: 0.1rem solid #e99821;
}

.switch {
    position: relative;
    display: inline-block;
    width: 10vw;
    height: 4.5vw;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    /* transition: .4s; */
}

.slider:before {
    position: absolute;
    content: "";
    height: 4vw;
    width: 4vw;
    left: 0.8vw;
    bottom: 0.3vw;
    background-color: white;
    /* transition: .4s; */
}

input:checked + .slider {
    background-color: rgb(129, 129, 129);
}

input:focus + .slider {
    box-shadow: 0 0 1px #ccc;
}

input:checked + .slider:before {
    transform: translateX(3vw);
}

/* Rounded sliders */
.slider.round {
    border-radius: 5.6vw;
}

.slider.round:before {
    border-radius: 50%;
}

@media screen and (min-width: 800px) {
    .switch {
        width: 3.3vw;
        height: 3.3vw;
    }

    .slider {
        width: 4vw;
        height: 2vw;
        transform: translate(-2.6vw, 0.7vw)
    }

    .slider:before {
        width: 1.8vw;
        height: 1.8vw;
        left: 0.12vw;
        bottom: 0.12vw;
    }

    input:checked + .slider:before {
        transform: translateX(2vw);
    }
}

/* Dropdown Button */

/* Dropdown Content (Hidden by Default) */
.action-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 120px;
    box-shadow: 4px 4px 8px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
    padding: .8rem .7rem;
    border-radius: 1.9rem;
    gap: .5rem;
    left: 100%;
    bottom: 100%;
    right: unset;
    /* transition: all 200ms ease-in-out; */
}

.page.timeline .action-menu,
.page.explore .action-menu {
    left: 50%;
    /* transition: all 200ms ease-in-out; */
}

.action-menu .action-item {
    padding: 0.5rem;
    background-color: #88888888;
    width: 100%;
    text-align: left;
    align-items: center;
    justify-content: flex-start;
}

.action-menu .action-item .text {
    text-align: left;
    align-items: flex-start;
}

/* Links inside the dropdown */
.action-menu a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.action-menu a:hover {
    background-color: #ddd;
}


/* Change the background color of the dropdown button when the dropdown content is shown */
.cato-dropdown:hover .dropbtn {
    background-color: #3e8e41;
}


.cato-tooltip.selected .action-item {
    background-color: #e99821;
    transition: none;
}

.cato-tooltip.selected {
    background-color: #e99821;
    opacity: 1;
    border-radius: 50%;
    transform: rotate(45deg);
}

.action-menu.hidden {
    transition: none;
    display: none;
}

.action-item.hidden {
    transition: none;
    display: none;
}

.search-location {
    display: none;
    color: gray;
    text-align: center;
    margin: 0;
    padding: 0;
}

.row.search-location-container {
    display: flex; 
    align-items: center;
}

.action-item.edit.location {
    margin-left: 1em;
}

/* Search input group styling */
.search-input-group {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    flex-direction: row;
    justify-content: center;
}

.search-input-group input {
    flex: 1;
    border-radius: 8px 0 0 8px;
    border-right: none;
    margin-right: 0;
}

.search-input-group .action-item {
    min-width: 40px;
    height: 40px;
    padding: 8px;
    /* background: #f8f9fa; */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
}

.search-input-group .action-item:hover {
    background: #e9ecef;
}

.search-input-group .action-item .icon-frame {
    width: 20px;
    height: 20px;
}

.search-input-group .action-item .icon {
    width: 16px;
    height: 16px;
}

.search-input-group .input-set {
    width: 100%;
}

/* Enrichment section layout */
.enrichment-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 10px;
}

.enrichment-progress {
    flex: 1;
}

.enrichment-section .action-item {
    flex-shrink: 0;
}
/* Venue display styles - 0 height when empty */
.explore-venue:empty {
    height: 0;
    margin: 0;
    padding: 0;
    display: none;
}

.explore-venue {
    font-size: 1.1em;
    color: #444;
    font-weight: 600;
    margin: 4px 0;
    line-height: 1.2;
}

