/*
    MV RWD areaFeature.css
 * Copyright (c) MountainViews.ie 2024
 */

.icon-hover {
    display: inline-block;
    cursor: pointer;
}

.icon-hover:hover {
    /*color: #007bff; !* Bootstrap primary color or any color you prefer *!*/
    background: #6c757d;
    color: white;
}
.icon-hover:hover i {
    color: white;
}

.headingStyle {
    background-color: #ffefcc;
    border-color: #e2c998 !important;
}

#llMapPanel {
    position: relative;
    height: 500px;
    resize: both;
    overflow: hidden;
}

#list-map-container {
    position: relative;
    height: 100%;
    width: 100%;
}


.mv-light-btn {
    background-color: #ffffff !important; /* White background */
    color: #212529; /* Default dark text color */
}

.mv-light-btn:hover {
    background-color: #e2e6ea !important; /* Light grey on hover */
}


.custom-attribution.ol-attribution {
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    font-size: 10px; /* Smaller font size */
    padding: 2px 5px; /* Reduced padding */
    border-radius: 3px; /* Rounded corners */
    bottom: 10px; /* Adjust position */
    right: 10px; /* Adjust position */
}

.custom-attribution button {
    height: 20px; /* Smaller collapse button */
    width: 20px; /* Smaller collapse button */
    line-height: 20px; /* Adjust for centering */
    font-size: 12px; /* Smaller font size */
}


.custom-attribution {
    bottom: 15px; /* Adjust vertical position */
    right: 10px; /* Adjust horizontal position */
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    padding: 5px; /* Add some spacing inside */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); /* Add a subtle shadow */
    font-size: 12px; /* Set font size for the text */
}

.custom-attribution button {
    cursor: pointer;
    margin-left: 5px;
}

.bg-lightblue {
    background-color: #c7d5f6;
}


:root {
    --firstColWidth: 20px;
    --headerBgColor: #BAC3EC;
}

#ll-listing-container {
    position: relative;
    overflow-x: auto;
    width: 100%;
    margin-bottom: 20px;
}

.ll-listingtable {
    min-width: 100%;
    border-collapse: collapse;
}


:root {
    --table-scale-x: 1.00;
    --table-scale-y: 1.00;
}

/* Style to shrink the table dynamically */
.tableShrink {
    transform: scale(var(--table-scale-x, 1), var(--table-scale-y, 1)); /* Scale table in x and y directions */
    transform-origin: top left; /* Set scaling origin */
    transition: transform 0.3s ease; /* Smooth transition effect */
    height: calc(100% * var(--table-scale-y, 1));
    overflow: hidden;
}

/* Optional: Ensure container does not overflow */
#ll-listing-container {
    overflow: auto; /* Ensure scrollability if overflowing */
}

.ll-header-cell {
    vertical-align: top;
}



.ll-header-cell, .ll-data-cell {
    padding: 4px;
    border-right: 1px solid #dee2e6;


}
.ll-header-cell {
    background-color: #BAC3EC;
    transition: background-color 0.5s ease;
}

.ll-header-cell:not(:first-child):hover  {
    background-color: #bdaf9c;
}


.ll-header-cell.ll-selected {
    background-color: #ba9b70;
    color: white;
}

.ll-header-row td:last-child {
    padding-right: 6px;
}

.ll-data-cell {
    background-color: #ffffff; /* White background for data cells */
}
.ll-header-content {
    display: flex;
    align-items: center;
}
.ll-arrow-icon {
    font-weight: bolder;
    margin-right: 8px;
}
a.ll-header-link {
    color: inherit;
    text-decoration: none;
    display: block;
}
a.ll-header-link:hover {
    text-decoration: none;
}

/* Sticky Header Row styles */
/* Not currently working */

/* Ensure the parent container has proper overflow for sticky positioning */
/*#listLogTableId {
    position: relative; !* Ensure its ancestor allows sticky to work *!
    overflow: visible; !* Allow sticky elements to function *!
}

#listLogTableId .ll-header-row {
    position: sticky;
    top: 0;
    z-index: 4; !* Ensure it stays above the other rows *!
    background-color: #fff; !* Set a background color to prevent overlap issues *!
    border-bottom: 1px solid #ccc; !* Optional: Add a border for better visibility *!
}*/

/* Ensure header cells maintain alignment and style */
/*#listLogTableId .ll-header-cell {
    z-index: 5; !* Ensure cells within the header row are above the rest *!
}*/

/* Sticky Column Styles */
.sticky-col-1 {
    position: sticky;
    left: 0;
    z-index: 3;
    background-color: #BAC3EC; /* Ensure background color for header cells */
}
.sticky-col-2 {
    position: sticky;
    left: var(--firstColWidth); /* Adjust based on actual column width */
    z-index: 3;
    background-color: #BAC3EC; /* Ensure background color for header cells */
}
.sticky-data-col-1 {
    position: sticky;
    left: 0;
    z-index: 3;
}
.sticky-data-col-2 {
    position: sticky;
    left: var(--firstColWidth); /* Adjust based on actual column width */
    z-index: 3;

}
.wide-data {
    min-width: 100px;
}
/* Rounded Header Styles */
.ll-header-cell:first-child {
    border-top-left-radius: 0.4rem; /* Round top left corner */
    border-bottom-left-radius: 0.4rem; /* Round bottom left corner */
}
.ll-header-cell:last-child {
    border-top-right-radius: 0.4rem; /* Round top right corner */
    border-bottom-right-radius: 0.4rem; /* Round bottom right corner */
}

/* Zebra Striping */
.ll-data-row:nth-child(odd) .ll-data-cell {
    background-color: #bac3ec; /* Light background for odd rows */
}
.ll-data-row:nth-child(even) .ll-data-cell {
    background-color: #e2e4f6; /* Lighter background for even rows */
}
/* Underline Every 5th Row */
.ll-data-row:nth-child(5n) .ll-data-cell {
    border-bottom: 2px solid #6677bd;
}

.listChoiceStyle {
    background-color: #f4e7de;
}

#listChoiceSection .listTypes .btn-outline-primary.active{
    background-color: #16184c;
    border: 1px	solid #16184c;
    color: white;
}

#listChoiceSection .listTypes .btn-outline-primary{
    background-color: #dac7b6;
    border: 1px	solid #af9a8f;
    padding: 0;
    font-size: 85%;
}

#listChoiceSection .listTypes .btn-outline-primary:hover{
    background-color: #633362;
    border: 1px	solid #633362;
    color: white;
}

#listChoiceSection .listTypes .btn-outline-primary:active{
    background-color: #16184c;
    border: 1px	solid #16184c;
    color: white;
}

.mvOption-hover:hover {
    background-color: #4e7a9e;
    color: white;
    cursor: pointer;
}


#llExportPanel {
    margin-left: -8px;
    margin-right: -8px;
    margin-bottom: -8px;
}

#listOutputSection {
    background-color: #eaaacf;
}

#listOutputSection .btn-primary{
    background-color: #b61f3d;
    border: 1px	solid #9c527d
}

#listOutputSection .btn-primary:hover{
    background-color: #ec2e68;
    border: 1px	solid #ac3556
}

.notecontainer {
    container-type: inline-size; /* Enable container queries based on width */
}

.divCols {
    column-count: 2; /* Default: 2 columns */
    column-rule: 1px solid #ccc;
}


.listInfoCols {
    column-count:3;
    column-rule: 1px solid #ccc;
}


@media screen and (max-width: 992px) {
    .listInfoCols {
        column-count:2;
    }
}

@media screen and (max-width: 768px) {
    .listInfoCols {
        column-count:1;
    }
}

@container (max-width: 800px) {
    .divCols {
        column-count: 1; /* Change to 1 column when the containing `.notecontainer` is ≤ 768px wide */
    }
}




