#menu-icon {
    background: white;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1000;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
}

#geolocation-icon, #user-icon, #placemark-icon, #transactions-icon, #close-menu-panel, #help-icon {
    background: white;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

#transactions-icon {
    top: 80px !important;
}

#menu-icon {
    top: 10px;
    left: 10px;
    flex-direction: column;
}

#menu-icon div {
    width: 15px;
    height: 2px;
    background-color: black;
    margin: 2px 0;
}

#geolocation-icon {
    padding: 3px 7px 7px 3px;
    right: 0px;
}

#user-icon, #help-icon {
    padding: 6px 6px 6px 6px;
    right: 0px;
}

#placemark-icon {
    top: 0px;
    right: 0px;
}

#activity-icon {
    position: absolute;
    top: 80px;
    right: 0px;
    background: white;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

#transactions-icon {
    position: absolute;
    top: 50px;
    right: 10px;
    background: white;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

#menu.show #geolocation-icon, #menu.show #user-icon, #help-icon {
    display: flex;
}

/* #geolocation-icon div, #user-icon div {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: white;
    position: relative;
} */

/* #geolocation-icon div::before {
    content: '✈️';
    position: relative;
    font-size: 15px;
} */

#user-icon:hover::after, #help-icon:hover::after {
    content: attr(data-hover-text); /* Display the data-hover-text attribute value */
    position: absolute;
    top: 58px;
    left: 48px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    border-radius: 5px;
    margin-right: 10px;
    z-index: 1000; /* Ensure the tooltip stays on top */
}

#geolocation-icon:hover::after {
    content: attr(data-hover-text); /* Display the data-hover-text attribute value */
    position: absolute; /* Use absolute positioning to prevent layout shift */
    top: 14px;
    right: 38px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    border-radius: 5px;
    margin-right: 10px;
    z-index: 1000; /* Ensure the tooltip stays on top */
}

#placemark-icon:hover::after, #activity-icon:hover::after, #transactions-icon:hover::after {
    content: attr(data-hover-text); /* Display the data-hover-text attribute value */
    position: absolute;
    top: 58px;
    right: 38px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    border-radius: 5px;
    margin-right: 10px;
    z-index: 1000; /* Ensure the tooltip stays on top */
}

/* #user-icon div::before {
    content: '👤';
    position: relative;
    font-size: 15px;
} */

#menu {
    position: absolute;
    top: 0;
    left: 0;
    width: min(100%, max(400px, 50%)); /* Ensures correct behavior at different container sizes */
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    z-index: 1000;
}

#menu.show {
    display: flex;
}

#menu-content {
    overflow-y: auto; /* Enable vertical scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for mobile devices */
    height: 100%; /* Adjust height based on the parent container */
    width: 100%;
    position: relative; /* Necessary for drag scrolling */
    margin: 10px;
}

.info-panel, .info-panel-content, .info-panel-content input[readonly], 
#media-panel, #media-content, 
#gallery-panel, 
#user-panel, #user-panel-content, 
#help-panel, #help-panel-content, 
#transactions-panel, #transactions-panel-content, 
#activity-panel, #activity-panel-content, 
#events-panel, #events-panel-content, 
#promote-panel, #promote-panel-content, 
#place-panel-content, #place-panel-content, 
#review-panel-content, #review-panel-content input[readonly]
{
    position: relative;
    height: 100%;
    width: 100%;
    border: none;
    background: none;
    padding: 0;
    box-shadow: none;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    cursor: default;
    line-height: inherit;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.info-panel, #media-panel, #user-panel, #help-panel, #transactions-panel, #activity-panel, #events-panel, #promote-panel, #place-panel, #review-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(100%, max(400px, 50%));
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    z-index: 1200;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#gallery-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(100%, max(400px, 100%));
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    z-index: 1200;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.info-panel-icon, #close-gallery-panel, #close-user-panel, #close-help-panel, #close-transactions-panel, #close-activity-panel, #close-events-panel, #close-promote-panel, #close-place-panel, #close-review-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    padding: 3px 0px 0px 7px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1300;
    font-size: 18px;
    width: 30px;
    height: 30px;
}

#menu-header {
    padding: 6px 20px 0px 0px;
    font-size: 18px;
}

#user-label, #help-label {
    flex-grow: 1; /* Makes the label take up the remaining space */
    text-align: left; /* Aligns the text to the left */
    padding: 8px 0px 0px 10px;
}

.menu-block {
    display: flex;
    justify-content: space-between; /* Aligns items to the left and right */
    align-items: flex-start;
    padding: 0px 0px 10px 0px;
    width: 100%;
}

.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* Ensure it matches the input height */
    padding: 0 8px; /* Adjust spacing */
    font-size: 16px; /* Adjust icon size */
}

#find-place {
    flex-grow: 1; /* Allow input to take remaining space */
    height: 36px; /* Set height explicitly */
    padding: 8px; /* Adjust padding */
    border: 1px solid #ccc; /* Ensure border matches */
    outline: none; /* Remove focus outline */
}

/* General settings container adjustments */
#settings-container {
    margin-top: 5px; /* Space between the settings container and the user icon */
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    margin-bottom: 20px;
}

.user-panel, .help-panel, .transactions-panel, .activity-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    width: 100%;
    background: #ffffff;
    display: none;
    z-index: 1100;
}

.user-panel.show, .help-panel.show, .transactions-panel.show, .activity-panel.show {
    display: block;
}

.user-header, .help-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

.user-header{
    padding: 20px 20px 20px 12px;

}

#user-panel-title
{
    margin-left: 4px;
}

.help-header{
    padding: 20px 20px 20px 0px;

}

.user-panel form {
    display: flex;
    font-size: 18px;
    flex-direction: column;
    padding: 10px;
}

.user-panel form input[type="text"],
.user-panel form textarea,
.user-panel form input[type="password"],
.user-panel form input[type="email"] {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    width: 100%;
}

.user-panel form textarea {
    font-family: inherit;      /* Ensures font family matches inputs */
    font-size: 0.90em;        /* Already correct */
    line-height: inherit;      /* Optional for exact vertical alignment */
    vertical-align: top;       /* Already helps remove baseline spacing */
}

.user-panel form button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

.user-panel p {
    padding: 20px;
    text-align: left;
}

.user-panel p a, .help-panel p a, .transactions-panel p a, .activity-panel p a {
    color: #007bff;
    text-decoration: none;
}

.airplane-icon {
    display: inline-block;
    text-align: center;
    line-height: 24px;
    font-size: 24px;
}

#zoomreset-switch {
    cursor: pointer;
}

#zoomreset-switch-container {
    position: relative; /* Ensures natural stacking */
    left: 0px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Add 2 pixels to the space between the switch and label */
.switch-label {
    margin-left: 12px; /* Increased by 2 pixels (was 10px previously) */
}

/* The switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-container {
    margin-top: 10px; /* Space between switch and the next section */
    margin-bottom: 10px; /* Space between switch and the next section */
}

.checkbox-container {
    margin-top: 4px;
    padding-left: 10px; /* Optional: Indent checkboxes */
}

.features-container {
    margin-top: 4px;
    padding-left: 10px; /* Optional: Indent checkboxes */
}

input[type="checkbox"]:checked:disabled {
    background-color: #333;  /* Dark background color for checked and disabled */
    border-color: #333;  /* Darker border */
    opacity: 100;  /* Remove default opacity */
}

input[readonly], textarea[readonly] {
    background-color: #dbdbdbf3;
    cursor: default;
    overflow: hidden;
    resize: none;
    outline: none;
}

#review-comments, #place-description {
    width: 100%; /* Makes the textarea take the full width of its container */
    border-radius: 4px; /* Rounded corners */
    background-color: white;
    background: none;
    border: 1px solid #ebebeb; /* Optional: Subtle border for clarity */

    padding: 8px; /* Padding for better text readability */
    box-sizing: border-box; /* Ensures padding is included in the width/height */
    font-size: 1rem; /* Consistent font size */
    resize: none; /* Allow vertical resizing only */
    overflow: hidden;
    font-family: sans-serif; /* Apply a sans-serif font */
}

/* Read-only state: White background */
#review-comments:read-only, #place-description:read-only {
    border: 1px solid #ccc; /* Optional: Subtle border for clarity */
    background: linear-gradient(to bottom left, #ffffff, #eaeaea); /* Light grey gradient */
    background-color: #dbdbdbf3;
}

.form-group {
    margin-bottom: 1.5rem; /* Space between form groups */
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem; /* Space between label and fields */
    font-weight: bold;
}

.input-container {
    position: relative;
    flex: 1; /* Equal width for both fields */
}

.input-container input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc; /* Field border */
    border-radius: 4px; /* Rounded corners */
    box-sizing: border-box; /* Include padding in width calculation */
    text-align: right; /* Right-align content for lat/lon fields */
}

.location-fields {
    display: flex;
    gap: 1rem; /* Space between the latitude and longitude fields */
    align-items: center; /* Vertically align fields and labels */
}

.input-wrapper {
    display: flex;
    align-items: center; /* Vertically align input and label */
    position: relative; /* Necessary for labels to position correctly */
}

.input-wrapper input {
    border: 1px solid #ccc; /* Standard border */
    border-radius: 4px; /* Rounded corners */
    padding: 0.5rem; /* Padding inside the input */
    box-sizing: border-box; /* Ensure proper width calculation */
    font-size: 1rem; /* Font size consistency */
    width: auto; /* Automatically adjust width based on content */
    min-width: 100px; /* Set a minimum width */
    text-align: left; /* Left-align the text */
}

.coordinate-label {
    position: absolute;
    top: 50%; /* Center vertically relative to input */
    right: -20px; /* Offset from the input */
    transform: translateY(-50%);
    font-size: 1rem; /* Same font size as input for consistency */
    color: #555; /* Subtle color for labels */
    pointer-events: none; /* Prevent interaction with the label */
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.5rem; /* Consistent padding */
    border: 1px solid #ccc; /* Border styling */
    border-radius: 4px; /* Rounded corners */
    box-sizing: border-box; /* Ensures padding is included in width calculation */
}

/* Latitude and longitude fields remain right-aligned */
.input-wrapper input {
    text-align: right; /* Right-align content for lat/lon fields only */
}

.checkbox-container input[type="checkbox"] {
    margin-right: 0.5rem; /* Space between checkbox and label */
}

input[type="text"],
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Ensures proper width calculation */
}

#submit-promotion-button, #submit-place-button, #submit-review, #logon-submit-btn, #open-create-account-btn, #create-account-btn, #promote-place-button, #promote-event-button,
#update-account-btn, #logoff-account-btn {
    background-color: #007bff;
    color: white;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Style when the button is disabled */
#submit-promotion-button:disabled, #submit-place-button:disabled, #submit-review:disabled, #logon-submit-btn:disabled, #open-create-account-btn:disabled, #promote-place-button:disabled, #promote-event-button:disabled,
#create-account-btn:disabled, #update-account-btn:disabled, #logoff-account-btn:disabled {
    background-color: #ccc;
    color: rgba(50, 50, 50, 0.5); /* Slightly faded text */
    cursor: not-allowed;
    filter: blur(0.5px); /* Slightly fuzzy text */
}

.info-panel textarea:focus, #review-panel textarea:focus, #events-panel textarea:focus, #promote-panel textarea:focus, #media-panel textarea:focus, #user-panel textarea:focus, #place-panel textarea:focus {
    border: 1px solid #ccc; /* Optional: Subtle border for clarity */
    outline: none;
}

.hidden {
    display: none;
}

#ppr-features-container {
    margin-bottom: 1rem; /* Matches the bottom margin of .form-group */
    display: flex;
    align-items: center; /* Aligns checkbox and label vertically */
    padding: 0; /* Ensures no extra padding */
}

#ppr-features-container label {
    margin-left: 0.5rem; /* Adds space between the checkbox and label text */
    font-weight: normal; /* Matches the weight of the .form-group labels */
}

#ppr-features-container input[type="checkbox"] {
    margin: 0; /* Removes default browser margins */
    width: 16px; /* Standard checkbox size */
    height: 16px;
}

@media (max-width: 550px), (max-height: 550px) {
    .menu-block {
        font-size: 14px;
    }
    .info-panel, #media-panel, #review-panel, #events-panel, #promote-panel, #place-panel, #user-panel, #help-panel, #transactions-panel, #activity-panel, #manage-account-form {
        font-size: 0.85em;
    }
    .user-header, .help-header {
        font-size: 18px;
    }
    #place-description {
        font-size: 1em;
    }
}

@media (max-width: 400px), (max-height: 400px) {
    .menu-block {
        font-size: 12px;
    }
    .info-panel, #media-panel, #review-panel, #events-panel, #promote-panel, #place-panel, #user-panel, #help-panel, #transactions-panel, #activity-panel, #manage-account-form {
        font-size: 0.7em;
    }
    .user-header, .help-header {
        font-size: 16px;
    }
    #place-description {
        font-size: 1em;
    }
}

.dropdown-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-wrapper input[type="text"] {
    width: 100%;
    padding-right: 24px; /* space for the icon */
    box-sizing: border-box;
}

.dropdown-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    font-size: 14px;
}

#activity-panel-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.activity-log-table {
  flex: 1 1 auto;
  overflow-y: auto;
  height: 100%;
  background-color: #fff;
  font-size: 14px;
}

.activity-log-structure {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto; /* allow columns to size naturally */
}

/* Sticky header */
.activity-log-structure thead th {
  padding: 6px;
  text-align: left;
  background: #f7f7f7;
  font-weight: bold;
  border-bottom: 2px solid #ccc;
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap; /* prevent wrapping in header */
}

/* First two columns don't wrap */
.activity-log-structure td:nth-child(1),
.activity-log-structure th:nth-child(1),
.activity-log-structure td:nth-child(2),
.activity-log-structure th:nth-child(2) {
  white-space: nowrap;
  width: auto; /* Allows it to size based on content */
  max-width: 200px; /* Optional: limit the width to prevent it from getting too wide */
}

/* Third column fills remaining space */
.activity-log-structure td:nth-child(3),
.activity-log-structure th:nth-child(3) {
  width: auto;
}

/* Table rows */
#activity-log-body td {
  padding: 6px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  word-break: break-word;
}

#activity-log-body tr:nth-child(odd) {
  background-color: #f3f3f3;
}

.activity-log-row {
  transition: background-color 1s ease, border-left 1s ease;
}

#activity-log-body tr.new {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
}

/* Hover highlight */
#activity-log-body tr:hover {
  background-color: #e0f7fa; /* Light cyan highlight, can be customized */
}

#tour-panel {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    display: none;
    z-index: 1000;
}

#tour-panel button {
    margin-top: 4px;
    margin-right: 4px;
    padding: 4px 8px;
    font-size: 12px;
    border: none;
    border-radius: 5px;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    cursor: pointer;
    background-color: #007bff;
}

.panel-data {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 10px;
}

.panel-data th,
.panel-data td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid #ccc;
}

.panel-data label { 
    display: block;
    font-size: 16px;
    margin-bottom: 0.5rem; /* Space between label and fields */
    font-weight: bold;
}

.panel-data th {
    background-color: #f0f0f0;
    font-weight: bold;
}

.panel-data td {
    vertical-align: middle;
}

.panel-data .user-avatar {
    vertical-align: middle;
}

@media (max-width: 550px), (max-height: 550px) {

    .zoomfix:focus {
    font-size: 16px !important;;
    }

}
