/* Import Google Fonts - Montserrat font with various weights */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;400;500;600;700&display=swap');

/* Root variables for consistent styling */
:root {
    --color-green: #0b704b;
    /* Primary green color */
    --color-blue: #428fd3;
    /* Primary blue color */
    --color-gray: #333333;
    /* Dark gray text color */
    --color-white: #ffffff;
    /* White background color */
    --radius-sm: 5px;
    /* Small border radius for elements */
}

/* Universal box-sizing for all elements */
*,
/* Selects all elements */
*::before,
/* Selects pseudo-element ::before */
*::after {
    /* Selects pseudo-element ::after */
    box-sizing: border-box;
    /* Include padding and border in the element's total width and height */
}

/* Smooth scroll behavior for anchor links */
html {
    scroll-behavior: smooth;
    /* Enables smooth scrolling for anchor links */
}

/* Body base styles */
body {
    margin: 0;
    overflow-x: hidden;
    /* Removes default body margin and prevents horizontal scroll */
    font-family: "Montserrat", sans-serif;
    /* Sets Montserrat as primary font */
    font-weight: 300;
    /* Sets default font weight */
    color: var(--color-gray);
    /* Sets default text color using a CSS variable */
    background-color: var(--color-white);
    /* Sets default background color using a CSS variable */
}

/* Heading font weights */
h1,
h2,
h3,
h4,
h5,
h6 {
    /* Selects all heading elements */
    font-weight: 400;
    /* Sets default font weight for headings */
}

/* Page wrapper for content centering and padding */
.page-wrapper {
    max-width: 1280px;
    /* Sets maximum width of the page content */
    margin: 0 auto;
    /* Centers the page wrapper horizontally */
    padding: 0 1.5rem 2rem;
    /* Sets vertical and horizontal padding */
    background-color: var(--color-white);
    /* Sets background color for the page wrapper */
    position: relative;
    z-index: 100;
}

/* Specific padding for the skills section */
#skills {
    padding-left: 30px;
    /* Sets left padding for skills section */
    padding-right: 30px;
    /* Sets right padding for skills section */
}

/* Site header styling */
.site-header {
    width: 100%;
    /* Sets full width for the header */
    height: 100px;
    /* Sets fixed height for the header when not scrolled */
    padding: 1.5rem 0;
    /* Sets vertical padding, no horizontal padding here */
    border-bottom: 1px solid #e0e0e0;
    /* Sets bottom border for separation */
    position: sticky;
    /* Makes header sticky */
    top: 0;
    /* Sticks to the top of the viewport */
    background-color: var(--color-white);
    /* Sets white background */
    z-index: 3000;
    /* Ensures header is above other content */
    transition: all 0.3s ease-in-out;
    overflow: visible;
    /* Sets smooth transition for changes */
}

/* Header content wrapper for alignment and max-width */
.header-content-wrapper {
    max-width: 1280px;
    /* Matches page-wrapper max-width */
    margin: 0 auto;
    /* Centers the content wrapper */
    height: 50px;
    padding: 0 1.5rem;
    /* Applies horizontal padding here */
    display: flex;
    /* Uses flexbox for layout */
    position: relative;
    /* Establish positioning context for children */
    flex-wrap: wrap;
    /* Allows items to wrap on smaller screens */
    align-items: center;
    /* Vertically aligns items in the center */
    justify-content: space-between;
    /* Distributes items with space between them */
    overflow: visible;
    /* Allow overflow */
}

.header-page-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.header-page-title h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-gray);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.header-page-title p {
    margin: 0;
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .header-page-title {
        display: none;
        /* Hide on mobile to avoid overlap */
    }
}

/* Brand (logo and tagline) container styling */
.brand {
    max-width: 420px;
    /* Sets maximum width for the brand section */
    display: flex;
    /* Uses flexbox for logo and tagline */
    flex-direction: row;
    /* Arranges logo and tagline in a row */
    align-items: center;
    /* Vertically aligns items in the center */
    gap: 0.75rem;
    /* Sets space between logo and tagline */
}

/* Logo image styling */
.brand img {
    max-height: 48px;
    /* Sets maximum height of the logo */
    width: auto;
    /* Maintains aspect ratio */
}


/* Main navigation styling - Fixed to top right corner */
.main-nav {
    position: absolute;
    top: -20px;
    right: 25px;
    z-index: 2000;
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Header Location Tag */
.header-location-tag {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8f8f8;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--color-blue);
}

.header-location-tag:hover {
    background: #f0f0f0;
}

/* Unknown Location Pulse */
.header-location-tag.unknown-loc {
    animation: pulse-red 2s infinite;
    color: #d32f2f;
    border: 1px solid #d32f2f;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(211, 47, 47, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

.location-dropdown {
    display: none;
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    margin-top: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    width: 100%;
    max-width: 450px;
    max-height: calc(100vh - 40px);
    z-index: 2100;
    overflow: hidden;
    flex-direction: column;
}

/* No bridge needed for fixed positioning */
.location-dropdown::before {
    display: none;
}

/* Removed hover trigger - using click-based instead */
.location-dropdown.open {
    display: flex;
}

/* Keep visible when hovering if already open */
.header-location-tag:hover .location-dropdown.open {
    display: flex;
}

.loc-display {
    font-size: 0.85rem;
    color: #666;
    display: block;
    white-space: nowrap;
}

.loc-input-group {
    display: flex;
    gap: 5px;
    padding: 0 15px 10px 15px;
}

.loc-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: inherit;
}

.loc-save-btn {
    padding: 8px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

.loc-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Location Dropdown Map Integration Styles */
.loc-map-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    max-height: calc(100% - 80px);
}

#dropdown-map {
    flex: 1;
    background: #e0e0e0;
    border: none;
    min-height: 300px;
}

.map-controls-compact {
    padding: 12px 15px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: white;
    overflow-y: auto;
    max-height: 200px;
}

.control-group-compact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.control-group-compact label {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-group-compact input[type="range"],
.control-group-compact select {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
}

.radius-display-compact {
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
}

.control-buttons-compact {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.btn-search-compact,
.btn-locate-compact {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-search-compact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.btn-search-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.btn-locate-compact {
    background: white;
    color: #333;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-locate-compact:hover {
    background: #f9f9f9;
    border-color: #bbb;
}

.results-list-compact {
    display: none;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    max-height: 150px;
    overflow-y: auto;
    background: white;
    border-top: 1px solid #ddd;
    z-index: 2101;
}

.results-list-compact.show {
    display: block;
}

.result-item-compact {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 12px;
}

.result-item-compact:hover {
    background: #f9f9f9;
}

.result-username-compact {
    font-weight: 600;
    color: #333;
}

.result-distance-compact {
    font-size: 11px;
    color: #667eea;
    margin-top: 2px;
}

/* Responsive Location Dropdown */
@media (max-width: 768px) {
    .location-dropdown {
        max-width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        max-height: calc(100vh - 60px);
    }

    #dropdown-map {
        min-height: 250px;
    }

    .map-controls-compact {
        max-height: 150px;
        padding: 10px 12px;
    }

    .control-group-compact input[type="range"],
    .control-group-compact select {
        padding: 6px;
        font-size: 12px;
    }

    .control-buttons-compact {
        gap: 6px;
    }

    .btn-search-compact,
    .btn-locate-compact {
        padding: 7px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .location-dropdown {
        max-width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
        max-height: calc(100vh - 40px);
    }

    #dropdown-map {
        min-height: 200px;
    }

    .map-controls-compact {
        max-height: 120px;
        padding: 8px 10px;
        gap: 8px;
    }

    .control-group-compact label {
        font-size: 10px;
    }

    .control-group-compact input[type="range"],
    .control-group-compact select {
        padding: 5px;
        font-size: 11px;
    }

    .control-buttons-compact {
        gap: 5px;
    }

    .btn-search-compact,
    .btn-locate-compact {
        padding: 6px;
        font-size: 10px;
    }

    .loc-display {
        font-size: 0.75rem;
    }

    .loc-input,
    .loc-save-btn {
        font-size: 0.75rem;
    }
}

/* Main navigation list styling */
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

/* Main navigation link styling */
.main-nav a {
    text-decoration: none;
    /* Removes underline from links */
    color: var(--color-gray);
    /* Sets default link color */
    padding: 0.4rem 0.8rem;
    /* Sets padding around links */
    border-radius: var(--radius-sm);
    /* Sets rounded corners for links */
    font-size: 0.95rem;
    /* Sets font size for links */
    transition: color 0.2s ease, font-weight 0.2s ease;
    /* Sets smooth transition for color and font-weight */
    border: 1px solid transparent;
    /* Sets transparent border */
}

/* Main navigation link hover and focus states */
.main-nav a:hover,
/* Styles for hover state */
.main-nav a:focus-visible {
    /* Styles for focus-visible state */
    background-color: transparent;
    /* Sets transparent background on hover/focus */
    border-color: transparent;
    /* Sets transparent border on hover/focus */
    font-weight: 600;
    /* Sets bold font weight on hover/focus */
    color: var(--color-green);
    /* Sets green text color on hover/focus */
}

/* Dropdown container */
.dropdown {
    position: relative;
    /* Establishes positioning context for the dropdown content */
    display: inline-block;
    /* Allows dropdown to sit next to other nav items */
}

/* Dropdown button (Account link) */
.dropbtn {
    cursor: pointer;
    /* Indicates it's clickable */
}

/* Dropdown content (hidden by default) - LARGER SIZE, CLICK ONLY */
.dropdown-content {
    display: none;
    /* Hidden by default */
    position: absolute;
    /* Positions relative to the dropdown container */
    background-color: var(--color-white);
    /* White background */
    min-width: 280px;
    /* Increased from 160px for bigger dropdown */
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    /* Subtle shadow */
    z-index: 2001;
    /* Above the fixed nav button */
    border-radius: var(--radius-sm);
    /* Rounded corners */
    right: 0;
    /* Aligns to the right of the parent dropdown */
    top: 100%;
    /* Positions below the dropdown button */
    margin-top: 0.5rem;
    /* Space between button and dropdown */
}

/* Invisible bridge for Account dropdown */
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: var(--color-gray);
    /* Dark gray text */
    padding: 12px 16px;
    /* Padding for clickable area */
    text-decoration: none;
    /* No underline */
    display: block;
    /* Each link takes full width */
    text-align: left;
    /* Aligns text to the left */
    font-weight: 400;
    /* Normal font weight */
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #f1f1f1;
    /* Light gray background on hover */
    color: var(--color-green);
    /* Green text on hover */
}

/* Show the dropdown menu when the 'show' class is added by JavaScript or on hover */
.dropdown-content.show,
.dropdown:hover .dropdown-content,
.dropdown-content.pinned {
    display: block;
}

/* Location dropdown pinned state */
.location-dropdown.pinned {
    display: block;
}

/* Styles for the logged-out view within the dropdown */
#logged-out-view {
    padding: 10px 16px;
}

#logged-out-view .form-field {
    margin-bottom: 10px;
}

#logged-out-view label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--color-gray);
}

#logged-out-view input[type="tel"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    box-sizing: border-box;
}

#logged-out-view button {
    width: 100%;
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

#logged-out-view .error-message {
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
    color: red;
    display: none;
}

/* Styles for the logged-in view within the dropdown */
#logged-in-view {
    padding: 5px 0;
}

#logged-in-view a {
    padding: 10px 16px;
}

/* Site header styling */
.site-header {
    position: sticky;
    /* Makes header sticky */
    top: 0;
    /* Sticks to the top */
    background-color: var(--color-white);
    /* Sets white background */
    z-index: 3000;
    /* Ensures header is above other content */
    transition: all 0.3s ease-in-out;
    /* Sets smooth transition for changes */
}

/* Fixed site header styling (when scrolled down) */
.site-header.fixed {
    padding: 10px 0;
    /* Sets padding-top to 10px to position content 10px from top */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Sets only bottom shadow */
    min-height: 150px;
    /* Ensure enough height for logo, nav, and search bar */
    overflow: visible;
    /* Allows content to overflow for smooth transition */
    height: auto;
    /* Allow height to adjust based on content */
    padding-bottom: 10px;
    /* Add padding below search bar */
}

/* Fixed header content wrapper */
/* When scrolled down, keep header content wrapper consistent across media sizes */
.site-header.fixed .header-content-wrapper {
    display: block;
    /* Change to block to allow absolute positioning of children */
    position: relative;
    /* Establish positioning context */
    height: 60px;
    /* Fixed height for logo/nav row */
}

.site-header.fixed .brand {
    position: absolute;
    top: 10px;
    left: 1.5rem;
    margin-bottom: 0;
    /* Remove margin when fixed */
}

.site-header.fixed .main-nav {
    position: absolute;
    top: 5px;
    right: 1.5rem;
    display: flex;
    /* Uses flexbox */
    align-items: center;
    /* Vertically aligns items */
    justify-content: flex-end;
    /* Aligns items to the right */
}

/* Fixed header logo image styling */
.site-header.fixed .brand img {
    max-height: 48px;
    /* Keeps original size */
}

/* Fixed header hero search styling */
/* Fixed header hero search styling - Reset to fit within wrapper */
.site-header.fixed .hero-search {
    flex-grow: 1;
    margin: 0;
    width: 100%;
    max-width: none;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    transition: all 0.3s ease-in-out;
}

/* Fixed header main navigation styling */

/* Fixed header search-chat-wrapper styling */
.site-header.fixed .search-chat-wrapper {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    max-width: 600px;
    z-index: 1001;
}

/* Fixed header chat response container */
.site-header.fixed #chat-response-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 1.6rem;
    /* Increased to move down ~10px more as requested */
    z-index: 1002;
}

/* Search and chat wrapper */
.search-chat-wrapper {
    width: 100%;
    max-width: 700px;
    position: relative;
    margin: 0 auto;
    /* Center the wrapper in the page layout */
}

/* Chat response container styling - positioned under search bar */
#chat-response-container {
    display: none;
    /* Hidden by default, shown when chat is active */
    position: relative;
    /* Changed from absolute to relative for normal flow */
    margin: 0.5rem auto 0;
    /* Center horizontally with auto margins, add top spacing */
    max-width: 700px;
    /* Match search bar width */
    border: 1px solid var(--color-blue);
    border-radius: var(--radius-sm);
    background-color: var(--color-white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 100;
    /* Ensure it appears above other content */
}

/* Chat header with close button */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: var(--color-blue);
    color: var(--color-white);
    border-bottom: 1px solid var(--color-blue);
}

.chat-title {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Close button styling */
.close-chat-btn {
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.close-chat-btn:hover {
    transform: scale(1.2);
}

/* Chat messages container */
.chat-messages {
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    background-color: #f9f9f9;
}

/* Chat message styling */
.chat-messages p {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    background-color: var(--color-white);
}

/* User message styling */
.chat-messages p strong {
    color: var(--color-blue);
}

/* Hero section styling */
.hero {
    padding: 6rem 0 2.5rem;
    /* Sets vertical and horizontal padding */
    border-bottom: 1px solid var(--color-white);
    /* Sets bottom border */
    max-width: 900px;
    /* Sets maximum width */
    margin: 0 auto;
    /* Centers horizontally */
    text-align: center;
    /* Centers content within hero */
}

/* Hero content styling */
.hero-content {
    display: flex;
    /* Uses flexbox */
    flex-direction: column;
    /* Stacks items vertically */
    align-items: center;
    /* Centers items horizontally */
    gap: 1.5rem;
    /* Sets space between items */
}

/* Hero text heading styling */
.hero-text h2 {
    font-size: 2rem;
    /* Sets font size */
    margin-top: 0;
    /* Removes top margin */
    color: var(--color-green);
    /* Sets green text color */
}

/* Hero text paragraph styling */
.hero-text p {
    margin-bottom: 0;
    /* Adjusted as search is now separate */
    color: var(--color-gray);
    /* Sets text color */
}

/* Hero search form styling */
.hero-search {
    width: 100%;
    /* Sets full width */
    max-width: 700px;
    /* Wider in default mode */
    display: flex;
    /* Uses flexbox */
    justify-content: center;
    /* Centers content horizontally */
    align-items: flex-start;
    /* Aligns items to the top for bottom expansion */
    transition: all 0.3s ease-in-out;
    /* Adds transition for smooth changes */
}

/* Hero search form field styling */
.hero-search .form-field {
    flex-grow: 1;
    /* Allows field to grow */
    margin-bottom: 0;
    /* Removes bottom margin */
}

/* Hero search textarea styling */
.hero-search textarea {
    border-top-right-radius: 0;
    /* Removes top-right border radius */
    border-bottom-right-radius: 0;
    /* Removes bottom-right border radius */
    border-right: 1px solid var(--color-gray);
    /* Adds right border */
    min-height: 60px;
    /* Ensures it's not smaller than the button */
    flex-shrink: 1;
    /* Allows textarea to shrink */
}

/* Hero search button styling */
.hero-search .button {
    border-top-left-radius: 0;
    /* Removes top-left border radius */
    border-bottom-left-radius: 0;
    /* Removes bottom-left border radius */
    height: 60px;
    /* Matches initial textarea height */
    display: flex;
    /* Uses flexbox */
    align-items: center;
    /* Vertically aligns content */
    justify-content: center;
    /* Horizontally aligns content */
    flex-shrink: 0;
    /* Prevents button from shrinking */
}

/* General button styling */
.button {
    display: inline-block;
    /* Displays as inline-block */
    padding: 0.65rem 1.4rem;
    /* Sets padding */
    border-radius: var(--radius-sm);
    /* Sets rounded corners */
    border: 1px solid transparent;
    /* Sets transparent border */
    text-decoration: none;
    /* Removes underline */
    font-weight: 600;
    /* Sets bold font weight */
    cursor: pointer;
    /* Sets pointer cursor on hover */
    font-size: 0.95rem;
    /* Sets font size */
}

/* Primary button styling */
.button.primary {
    background-color: var(--color-blue);
    /* Sets blue background */
    color: var(--color-white);
    /* Sets white text */
    border-color: var(--color-green);
    /* Sets green border */
}

/* Primary button hover and focus states */
.button.primary:hover,
/* Styles for hover state */
.button.primary:focus-visible {
    /* Styles for focus-visible state */
    background-color: var(--color-white);
    /* Sets white background on hover/focus */
    color: var(--color-blue);
    /* Sets blue text on hover/focus */
}

/* Secondary button styling */
.button.secondary {
    background-color: var(--color-white);
    /* Sets white background */
    color: var(--color-blue);
    /* Sets blue text */
    border-color: var(--color-blue);
    /* Sets blue border */
}

/* Secondary button hover and focus states */
.button.secondary:hover,
/* Styles for hover state */
.button.secondary:focus-visible {
    /* Styles for focus-visible state */
    background-color: var(--color-blue);
    /* Sets blue background on hover/focus */
    color: var(--color-white);
    /* Sets white text on hover/focus */
}

/* Section general styling */
.section {
    padding: 0.5rem 0 2.5rem;
    /* Sets vertical padding: 0.5rem top, 2.5rem bottom */
    border-bottom: 1px solid var(--color-white);
    /* Sets bottom border */
}

.admin-controls-wrapper,
.listing-controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* Admin Sticky Navigation Sub-layers */
.admin-controls-wrapper,
.listing-controls-wrapper {
    position: sticky;
    top: 152px;
    /* Header (100px) + Main Tabs (~52px) */
    background-color: var(--color-white);
    z-index: 998;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    /* Subtle separator when sticky */
}

.admin-sticky-sub-nav {
    position: sticky;
    top: 152px;
    background-color: var(--color-white);
    z-index: 998;
    padding-top: 10px;
    padding-bottom: 10px;
    /* border-bottom removed per user request */
}

/* Section header heading styling */
.section-header h2 {
    margin-top: 0;
    /* Removes top margin */
    font-size: 1.6rem;
    /* Sets font size */
    color: var(--color-green);
    /* Sets green text color */
    text-align: center;
    /* Centers align text */
}

/* Section header paragraph styling */
.section-header p {
    max-width: 900px;
    /* Sets maximum width */
    color: var(--color-gray);
    /* Sets text color */
    text-align: center;
    /* Centers align text */
    margin: 0 auto;
    /* Centers horizontally */
}

/* Slider containers styling */
.category-slider,
.skills-slider,
.listing-slider {
    margin-top: 1.5rem;
    /* Sets top margin */
    position: relative;
    /* Needed for absolute positioning of arrows */
}

/* Slick Carousel Arrows Styling */
.slick-prev,
.slick-next {
    width: 30px;
    /* Sets half size for clickable area */
    height: 30px;
    /* Removes padding */
    -webkit-transform: translateY(-50%);
    /* Centers vertically for Webkit browsers */
    -ms-transform: translateY(-50%);
    /* Centers vertically for IE */
    transform: translateY(-50%);
    /* Centers vertically */
    cursor: pointer;
    /* Sets pointer cursor on hover */
    background: none !important;
    /* Forces transparent background */
    border: none !important;
    /* Forces no border */
    outline: none !important;
    /* Forces no outline */
    border-radius: 0 !important;
    /* Forces no border-radius */
    box-shadow: none !important;
    /* Forces no box-shadow */
    font-size: 0 !important;
    /* Forces font size to 0 */
    line-height: 0 !important;
    /* Forces line height to 0 */
    color: transparent !important;
    /* Forces transparent color */
    z-index: 10;
    /* Ensures arrows are above content */
}

/* Slick Carousel Arrows hover and focus states */
.slick-prev:hover,
.slick-prev:focus,
/* Styles for slick-prev hover/focus */
.slick-next:hover,
.slick-next:focus {
    /* Styles for slick-next hover/focus */
    outline: none !important;
    /* Removes outline */
    background: none !important;
    /* Keeps background transparent on hover */
}

/* Hide default slick arrow content */
.slick-prev:before,
.slick-next:before {
    content: none !important;
    /* Ensures no character is rendered */
    font-family: none !important;
    /* Explicitly sets to none to remove slick font icon */
    font-size: 0 !important;
    /* Ensures no font icon is rendered */
    line-height: 0 !important;
    /* Ensures no line height */
    width: 0 !important;
    /* Ensures no width */
    height: 0 !important;
    /* Ensures no height */
    border: none !important;
    /* Ensures no border */
    background: none !important;
    /* Ensures no background */
    box-shadow: none !important;
    /* Ensures no box-shadow */
    opacity: 0 !important;
    /* Ensures it's completely invisible */
}

/* Add custom triangle for slick-prev */
.slick-prev:after {
    content: '';
    /* Sets empty content for pseudo-element */
    position: absolute;
    /* Sets absolute positioning */
    top: 50%;
    /* Positions at 50% from the top */
    left: 50%;
    /* Centers the triangle within the 30x30 button */
    transform: translate(-50%, -50%);
    /* Centers the triangle */
    width: 0;
    /* Sets no width */
    height: 0;
    /* Sets no height */
    border-style: solid;
    /* Sets solid border style */
    border-width: 15px 15px 15px 0;
    /* Sets half size triangle */
    border-color: transparent var(--color-blue) transparent transparent;
    /* Sets blue triangle */
    opacity: 1;
    /* Sets fully opaque */
    transition: opacity 0.2s ease;
    /* Sets smooth transition for opacity */
}

/* Add custom triangle for slick-next */
.slick-next:after {
    content: '';
    /* Sets empty content for pseudo-element */
    position: absolute;
    /* Sets absolute positioning */
    top: 50%;
    /* Positions at 50% from the top */
    left: 50%;
    /* Centers the triangle within the 30x30 button */
    transform: translate(-50%, -50%);
    /* Centers the triangle */
    width: 0;
    /* Sets no width */
    height: 0;
    /* Sets no height */
    border-style: solid;
    /* Sets solid border style */
    border-width: 15px 0 15px 15px;
    /* Sets half size triangle */
    border-color: transparent transparent transparent var(--color-blue);
    /* Sets blue triangle */
    opacity: 1;
    /* Sets fully opaque */
    transition: opacity 0.2s ease;
    /* Sets smooth transition for opacity */
}

/* Apply opacity to custom triangle when disabled */
.slick-disabled:after {
    opacity: 0.5;
    /* Sets 50% opacity when disabled */
}

/* Specific triangle positioning for slick-prev */
.slick-prev {
    left: -35px;
    /* Adjusts position for smaller button */
}

/* RTL support for slick-prev */
[dir='rtl'] .slick-prev {
    right: -35px;
    /* Adjusts position for RTL */
    left: auto;
    /* Resets left position */
}

/* Specific triangle positioning for slick-next */
.slick-next {
    right: -35px;
    /* Adjusts position for smaller button */
}

/* RTL support for slick-next */
[dir='rtl'] .slick-next {
    right: auto;
    /* Resets right position */
    left: -35px;
    /* Adjusts position for RTL */
}

/* Category Item Styling */
.category-item {
    text-align: center !important;
    padding: 0.5rem 1.5rem !important;
    border: 2px solid var(--color-blue) !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 5px 10px !important;
    color: var(--color-blue) !important;
    background-color: var(--color-white) !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

/* Category item hover state */
.category-item:hover {
    background-color: var(--color-blue);
    /* Blue background on hover */
    color: var(--color-white);
    /* White text on hover */
    border-color: var(--color-blue);
    /* Blue border on hover */
    font-weight: 600;
    /* Sets bold font weight on hover */
}

/* Selected category item state */
.category-item.selected {
    background-color: var(--color-blue) !important;
    color: var(--color-white) !important;
    border-color: var(--color-blue) !important;
    font-weight: 600 !important;
}

/* Ensure slick-current also gets the selected styling if it's the active one */
.category-item.slick-current:not(.selected) {
    background-color: var(--color-blue);
    /* Blue background */
    color: var(--color-white);
    /* White text */
    border-color: var(--color-blue);
    /* Blue border */
    font-weight: 600;
    /* Sets bold font weight */
}

/* Skill item styling within skills slider */
.skills-slider .skill-item {
    text-align: center;
    /* Centers align text */
    padding: 1rem;
    /* Sets padding */
    border: 2px solid transparent;
    /* Add a transparent border for the blue box */
    border-radius: var(--radius-sm);
    /* Apply border-radius */
    transition: all 0.2s ease;
    /* Smooth transition for changes */
}

/* Selected skill item state */
.skills-slider .skill-item.selected {
    border: 3px solid var(--color-blue) !important;
    /* Add a clear blue outline/border */
    border-radius: 12px !important;
}

/* Skill item image styling */
.skills-slider .skill-item img {
    width: 180px !important;
    height: 180px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    /* Radius as requested */
    margin-bottom: 0.5rem !important;
}

/* Skill item heading styling */
.skills-slider .skill-item h3 {
    font-size: 1rem;
    /* Sets font size */
    margin: 0;
    /* Removes default margin */
    color: var(--color-gray);
    /* Sets text color */
    font-weight: 600;
    /* Ensure text is bold */
}

.category-slider,
.skills-slider {
    display: block !important;
    width: 100% !important;
    margin-bottom: 2rem !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.category-slider .slick-track,
.skills-slider .slick-track {
    margin-left: 0 !important;
}

/* Center alignment and hide arrows when items fit */
.category-slider.not-scrollable .slick-track,
.skills-slider.not-scrollable .slick-track {
    display: flex !important;
    justify-content: center !important;
    transform: none !important;
    width: 100% !important;
}

.category-slider.not-scrollable .slick-arrow,
.skills-slider.not-scrollable .slick-arrow {
    display: none !important;
}

.listing-type-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 20px;
}

.listing-type-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--color-blue);
}

.listing-type-subtitle {
    font-size: 0.95rem;
    color: var(--color-gray);
    font-style: italic;
    opacity: 0.8;
}

.listing-type-section {
    margin-bottom: 40px;
}

/* Sets top margin */
/* Listing filters styling */
.listing-filters {
    display: flex;
    /* Uses flexbox */
    justify-content: center;
    /* Centers horizontally */
    gap: 1rem;
    /* Sets space between items */
    margin-bottom: 1.5rem;
    /* Sets bottom margin */
}

/* Listing filters button styling */
.listing-filters .listing-filter-button {
    text-align: center;
    /* Centers align text */
    padding: 0.5rem 1rem;
    /* Sets padding */
    border: 2px solid var(--color-blue);
    /* Blue border */
    border-radius: var(--radius-sm);
    /* Sets rounded corners */
    cursor: pointer;
    /* Sets pointer cursor on hover */
    transition: all 0.2s ease;
    /* Sets smooth transition for all properties */
    color: var(--color-blue);
    /* Blue text */
    background-color: var(--color-white);
    /* White background */
    font-weight: 600;
    /* Ensure text is bold */
}

/* Listing filters button hover state */
.listing-filters .listing-filter-button:hover {
    background-color: var(--color-blue);
    /* Blue background on hover */
    color: var(--color-white);
    /* White text on hover */
    border-color: var(--color-blue);
    /* Blue border on hover */
}

/* Listing filters button selected state */
.listing-filters .listing-filter-button.selected {
    background-color: var(--color-blue);
    /* Blue background for selected */
    color: var(--color-white);
    /* White text for selected */
    border-color: var(--color-blue);
    /* Blue border for selected */
}

/* Listing grid container styling */
.listing-grid-container {
    margin-top: 1.5rem;
    /* Sets top margin */
}

/* Listing grid styling */
.listing-grid {
    display: grid;
    /* Uses grid layout */
    grid-template-columns: repeat(3, 1fr);
    /* Sets 3 columns */
    grid-auto-rows: minmax(360px, auto);
    /* Ensures rows accommodate doubled card height */
    gap: 1rem;
    /* Sets space between cards */
    padding: 1rem;
    /* Adds some padding around the grid */
    box-sizing: border-box;
    /* Includes padding and border in the element's total width and height */
}

/* Listing card styling */
.listing-card {
    position: relative;
    /* Sets relative positioning */
    border: 1px solid #e0e0e0;
    /* Sets light gray border */
    border-radius: var(--radius-sm);
    /* Sets rounded corners */
    overflow: hidden;
    /* Hides overflowing content */
    box-sizing: border-box;
    /* Includes padding and border in the element's total width and height */
    display: flex;
    /* Uses flexbox */
    flex-direction: column;
    /* Stacks items vertically */
    width: 100%;
    /* Sets full width */
    min-height: 360px;
    /* Doubled from 180px */
}

/* Media query for medium screens (max-width: 1024px) */
@media (max-width: 1024px) {
    .listing-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Sets 2 columns on medium screens */
        grid-auto-rows: minmax(360px, auto);
        /* Ensures rows accommodate doubled card height */
    }
}

/* Media query for small screens (max-width: 768px) */
@media (max-width: 768px) {
    .listing-grid {
        grid-template-columns: 1fr;
        /* Sets 1 column on small screens */
        grid-auto-rows: minmax(360px, auto);
        /* Ensures rows accommodate doubled card height */
    }
}

/* Listing card image styling */
.listing-card img {
    width: 100%;
    /* Sets full width */
    height: 250px;
    /* Makes image square and increase height */
    object-fit: cover;
    /* Covers the area */
    display: block;
    /* Displays as block */
    margin: 0 auto;
    /* Centers the image */
}

/* Listing card buttons container */
.listing-card .card-buttons {
    position: absolute;
    /* Sets absolute positioning */
    top: 0;
    /* Positions at the top */
    left: 0;
    /* Positions at the left */
    width: 100%;
    /* Sets full width */
    display: flex;
    /* Uses flexbox */
    justify-content: space-between;
    /* Sets space between buttons */
    padding: 0.5rem;
    /* Sets padding */
    box-sizing: border-box;
    /* Includes padding and border in the element's total width and height */
}

/* Listing card icon button styling */
.listing-card .card-buttons .icon-button {
    background: rgba(255, 255, 255, 0.8);
    /* Sets semi-transparent white background */
    border: none;
    /* Removes border */
    border-radius: 50%;
    /* Sets circular shape */
    width: 30px;
    /* Sets fixed width */
    height: 30px;
    /* Sets fixed height */
    display: flex;
    /* Uses flexbox */
    align-items: center;
    /* Vertically aligns content */
    justify-content: center;
    /* Horizontally aligns content */
    cursor: pointer;
    /* Sets pointer cursor on hover */
    font-size: 1.2rem;
    /* Sets font size */
    color: var(--color-gray);
    /* Sets text color */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Sets subtle shadow */
}

/* Star icon button styling */
.listing-card .card-buttons .icon-button.star {
    color: gold;
    /* Sets example color for star */
}

/* Listing comments toggle styling */
.listing-comments-toggle {
    padding: 0.5rem;
    /* Sets padding */
    text-align: center;
    /* Centers align text */
}

/* Listing comments section styling */
.listing-comments-section {
    padding: 0.5rem;
    /* Sets padding */
    border-top: 1px solid #e0e0e0;
    /* Sets top border */
    background-color: #f9f9f9;
    /* Sets light gray background */
}

/* Listing comments section heading styling */
.listing-comments-section h4 {
    margin-top: 0;
    /* Removes top margin */
    margin-bottom: 0.5rem;
    /* Sets bottom margin */
    font-size: 1rem;
    /* Sets font size */
    color: var(--color-gray);
    /* Sets text color */
}

/* Listing comments list styling */
.listing-comments-section .comments-list {
    list-style: none;
    /* Removes bullet points */
    padding: 0;
    /* Removes padding */
    margin: 0 0 0.5rem 0;
    /* Sets margins */
    font-size: 0.9rem;
    /* Sets font size */
    color: var(--color-gray);
    /* Sets text color */
}

/* Listing comments list item styling */
.listing-comments-section .comments-list li {
    margin-bottom: 0.3rem;
    /* Sets bottom margin */
    padding: 0.2rem 0;
    /* Sets vertical padding */
    border-bottom: 1px dotted #e0e0e0;
    /* Sets dotted bottom border */
}

/* Listing comments add comment form styling */
.listing-comments-section .add-comment-form {
    display: flex;
    /* Uses flexbox */
    gap: 0.5rem;
    /* Sets space between items */
    margin-bottom: 0.5rem;
    /* Sets bottom margin */
}

/* Listing comments input styling */
.listing-comments-section .comment-input {
    flex-grow: 1;
    /* Allows input to grow */
    padding: 0.4rem 0.6rem;
    /* Sets padding */
    border-radius: var(--radius-sm);
    /* Sets rounded corners */
    border: 1px solid var(--color-gray);
    /* Sets gray border */
    font-size: 0.9rem;
    /* Sets font size */
    font-family: inherit;
    /* Inherits font family */
}

/* Listing comments button styling */
.listing-comments-section .button {
    padding: 0.4rem 0.8rem;
    /* Sets padding */
    font-size: 0.9rem;
    /* Sets font size */
}

/* Listing comments close button styling */
.listing-comments-section .close-comments-button {
    width: 100%;
    /* Sets full width */
    margin-top: 0.5rem;
    /* Sets top margin */
}

/* Styling for isolated listing card (full screen view) */
.listing-card.isolated {
    position: fixed;
    /* Sets fixed position */
    top: 50%;
    /* Positions at 50% from the top */
    left: 50%;
    /* Positions at 50% from the left */
    transform: translate(-50%, -50%) scale(2);
    /* Centers and double size */
    width: 45%;
    /* Sets half of original 90% to make it double in size after scale(2) */
    max-width: 1200px;
    /* Sets double max-width */
    height: auto;
    /* Sets auto height */
    max-height: 180vh;
    /* Sets double max-height */
    z-index: 10000;
    /* Ensures it's above all other content */
    background-color: var(--color-white);
    /* Sets white background */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* Sets shadow */
    overflow-y: auto;
    /* Enables vertical scroll for overflow */
    display: flex;
    /* Uses flexbox */
    flex-direction: column;
    /* Stacks items vertically */
    transition: transform 0.3s ease-in-out;
    /* Sets smooth transition for scaling */
}

/* Isolated listing card image styling */
.listing-card.isolated img {
    height: auto;
    /* Allows image to scale */
    max-height: 300px;
    /* Sets max height for isolated image */
}

/* Overlay for isolated view */
.overlay {
    position: fixed;
    /* Sets fixed position */
    top: 0;
    /* Positions at the top */
    left: 0;
    /* Positions at the left */
    width: 100%;
    /* Sets full width */
    height: 100%;
    /* Sets full height */
    background-color: rgba(0, 0, 0, 0.7);
    /* Sets semi-transparent black background */
    z-index: 9999;
    /* Ensures it's above most content */
    display: none;
    /* Hidden by default */
}

/* Portfolio carousel styling */
/* ... existing portfolio carousel styles ... */

/* Admin Dashboard Styles */
.admin-tabs,
.listing-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.tab-button,
.listing-tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    /* For notification badge */
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    background-color: #ff4d4d;
    border-radius: 50%;
    border: 2px solid white;
    display: none;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.tab-button:hover,
.listing-tab-btn:hover {
    color: var(--color-blue);
}

.tab-button.active,
.listing-tab-btn.active {
    color: var(--color-blue);
    border-bottom-color: var(--color-blue);
    font-weight: 700;
}

/* Settings Page Accordion */
.settings-sections {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.set-item {
    border-bottom: 1px solid #e0e0e0;
}

.set-item:last-child {
    border-bottom: none;
}

.set-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.set-header:hover {
    background-color: #f5f5f5;
}

.set-header::after {
    content: '\25BC';
    /* Down arrow */
    font-size: 0.8rem;
    color: #999;
    transition: transform 0.3s ease;
}

.set-item.active .set-header::after {
    transform: rotate(180deg);
}

.set-content {
    display: none;
    background-color: #fff;
    /* Border top omitted to keep clean look */
}

.set-item.active .set-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.user-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-info strong {
    display: block;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 4px;
}

.user-info span {
    font-size: 0.9rem;
    color: #777;
    display: block;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.button.small {
    padding: 6px 14px;
    font-size: 0.85rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-carousel {
    margin-top: 2rem;
    /* Sets top margin */
}

/* Slick slide styling within portfolio carousel */
.portfolio-carousel .slick-slide {
    display: block !important;
    /* Forces display as block */
    padding: 0 !important;
    /* Removes padding */
    margin: 0 !important;
    /* Removes margin */
}

/* Slick list styling within portfolio carousel */
.portfolio-carousel .slick-list {
    overflow: hidden !important;
    /* Hides overflowing content */
}

/* Listings slide styling */
.listings-slide {
    width: 100%;
    /* Sets full width */
    overflow: hidden;
    /* Hides overflowing content */
}

/* Listings content styling */
.listings-content {
    display: flex;
    /* Uses flexbox */
    gap: 1.5rem;
    /* Sets space between items */
    width: 100%;
    /* Sets full width */
    padding: 1rem 0;
    /* Sets vertical padding */
    overflow: hidden;
    /* Hides overflowing content */
}

/* Mobile Responsiveness for Settings Header */
@media (max-width: 768px) {
    .settings-container .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start !important;
    }

    .settings-container .section-header>div:last-child {
        width: 100%;
        align-items: flex-start !important;
    }

    .settings-container .section-header button {
        width: 100%;
        /* Full width buttons on mobile */
    }

    .settings-container .section-header>div:last-child>div:first-child {
        width: 100%;
        gap: 0.5rem;
    }
}

/* Listings text styling */
.listings-text {
    flex: 0 0 30%;
    /* Sets fixed width of 30% */
    display: flex;
    /* Uses flexbox */
    flex-direction: column;
    /* Stacks items vertically */
    justify-content: center;
    /* Centers vertically */
}

/* Listings text heading styling */
.listings-text h3 {
    margin: 0 0 0.5rem;
    /* Sets margins */
    color: var(--color-green);
    /* Sets green text color */
}

/* Listings text paragraph styling */
.listings-text p {
    margin: 0;
    /* Removes default margin */
    color: var(--color-green);
    /* Sets green text color */
}

/* Listings image styling */
.listings-image {
    flex: 0 0 70%;
    /* Sets fixed width of 70% */
}

/* Listings image styling */
.listings-image img {
    width: 100%;
    /* Sets full width */
    height: 100%;
    /* Sets full height */
    display: block;
    /* Displays as block */
    border-radius: 0.75rem;
    /* Sets rounded corners */
    object-fit: cover;
    /* Covers the area */
}

/* Inspiration section styling */
#inspiration {
    text-align: center;
    /* Centers align text */
}

/* Community layout styling */
.community-layout {
    display: flex;
    /* Uses flexbox */
    flex-direction: column;
    /* Stacks items vertically */
    align-items: center;
    /* Centers items horizontally */
    gap: 1rem;
    /* Sets space between items */
}

/* Load quotes button styling */
#load-quotes-btn {
    margin: 0 auto;
    /* Centers horizontally */
}

/* Quote navigation styling */
.quote-nav {
    display: flex;
    /* Uses flexbox */
    gap: 0.75rem;
    /* Sets space between items */
    justify-content: center;
    /* Centers horizontally */
    display: none;
    /* Hidden by default */
}

/* Quote track wrapper styling */
.quote-track-wrapper {
    width: 100%;
    /* Sets full width */
    overflow: hidden;
    /* Hides overflowing content */
}

/* Community thread styling */
.community-thread {
    margin-top: 0.5rem;
    /* Sets top margin */
    display: flex;
    /* Uses flexbox */
    flex-wrap: nowrap;
    /* Prevents wrapping */
    gap: 1rem;
    /* Sets space between items */
    overflow-x: auto;
    /* Enables horizontal scroll for overflow */
    scroll-behavior: smooth;
    /* Sets smooth scroll behavior */
    padding-bottom: 0.5rem;
    /* Sets bottom padding */
}

/* Quote card styling */
.quote-card {
    border-radius: var(--radius-sm);
    /* Sets rounded corners */
    padding: 1rem 1.1rem;
    /* Sets padding */
    background-color: var(--color-white) !important;
    /* Sets white background */
    border: 1px solid var(--color-blue);
    /* Sets blue border */
    color: var(--color-gray);
    /* Sets text color */
    flex: 0 0 calc(50% - 0.75rem);
    /* Sets fixed width of 50% minus gap */
    box-sizing: border-box;
    /* Includes padding and border in the element's total width and height */
}

/* Quote card paragraph styling */
.quote-card p {
    margin: 0 0 0.6rem;
    /* Sets margins */
}

/* Quote source styling */
.quote-source {
    font-size: 0.9rem;
    /* Sets font size */
    color: var(--color-gray);
    /* Sets text color */
}

/* Status message styling */
.status-message {
    margin: 0;
    /* Removes default margin */
}

/* Error status message styling */
.status-message.error {
    color: #b00001;
    /* Sets red text color */
}

/* Quote conversation styling */
.quote-conversation {
    margin-top: 1rem;
    /* Sets top margin */
    padding-top: 0.75rem;
    /* Sets top padding */
    border-top: 1px solid var(--color-gray);
    /* Sets top border */
}

/* Quote conversation heading styling */
.quote-conversation h4 {
    margin: 0 0 0.5rem;
    /* Sets margins */
    font-size: 0.95rem;
    /* Sets font size */
    color: var(--color-gray);
    /* Sets text color */
}

/* Conversation list styling */
.conversation-list {
    list-style: none;
    /* Removes bullet points */
    padding-left: 0;
    /* Removes left padding */
    margin: 0 0 0.75rem;
    /* Sets margins */
    font-size: 0.9rem;
    /* Sets font size */
}

/* Conversation list item styling */
.conversation-list li {
    margin-bottom: 0.35rem;
    /* Sets bottom margin */
}

/* Conversation input row styling */
.conversation-input-row {
    display: flex;
    /* Uses flexbox */
    gap: 0.5rem;
    /* Sets space between items */
    align-items: center;
    /* Vertically aligns items */
}

/* Conversation input styling */
.conversation-input {
    flex: 1;
    /* Allows input to grow */
    padding: 0.4rem 0.6rem;
    /* Sets padding */
    border-radius: var(--radius-sm);
    /* Sets rounded corners */
    border: 1px solid var(--color-gray);
    /* Sets gray border */
    font-size: 0.9rem;
    /* Sets font size */
    font-family: inherit;
    /* Inherits font family */
}

/* Conversation submit button styling */
.conversation-submit {
    white-space: nowrap;
    /* Prevents text wrapping */
    font-size: 0.9rem;
    /* Sets font size */
}

/* Quote card styling (duplicate, will be consolidated) */
.quote-card {
    border-radius: var(--radius-sm);
    /* Sets rounded corners */
    padding: 1rem 1.1rem;
    /* Sets padding */
    background-color: var(--color-blue);
    /* Sets blue background */
    border: 1px solid var(--color-green);
    /* Sets green border */
}

/* Quote card paragraph styling (duplicate, will be consolidated) */
.quote-card p {
    margin: 0 0 0.6rem;
    /* Sets margins */
}

/* Quote source styling (duplicate, will be consolidated) */
.quote-source {
    font-size: 0.9rem;
    /* Sets font size */
    color: var(--color-gray);
    /* Sets text color */
}

/* Status message styling (duplicate, will be consolidated) */
.status-message {
    margin: 0;
    /* Removes default margin */
}

/* Error status message styling (duplicate, will be consolidated) */
.status-message.error {
    color: #b00001;
    /* Sets red text color */
}

/* Submit layout styling */
.submit-layout {
    display: grid;
    /* Uses grid layout */
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    /* Sets two columns with flexible widths */
    gap: 1.75rem;
    /* Sets space between grid items */
    margin-top: 1.5rem;
    /* Sets top margin */
}

/* Form field styling */
.form-field {
    margin-bottom: 1rem;
    /* Sets bottom margin */
}

/* Label styling */
label {
    display: block;
    /* Displays as block */
    font-weight: 600;
    /* Sets bold font weight */
    margin-bottom: 0.35rem;
    /* Sets bottom margin */
    color: var(--color-gray);
    /* Sets text color */
}

/* Input and select element styling */
input[type="text"],
/* Styles for text input */
input[type="search"],
/* Styles for search input */
select {
    /* Styles for select dropdown */
    width: 100%;
    /* Sets full width */
    padding: 0.5rem 0.6rem;
    /* Sets padding */
    border-radius: var(--radius-sm);
    /* Sets rounded corners */
    border: 1px solid var(--color-gray);
    /* Sets gray border */
    font-size: 0.95rem;
    /* Sets font size */
    font-family: inherit;
    /* Inherits font family */
}

/* Textarea styling */
textarea {
    width: 100%;
    /* Sets full width */
    max-width: 600px;
    /* Sets max width for textarea in general */
    height: 60px;
    /* Sets default height for textarea */
    min-height: 38px;
    /* Sets minimum height for one line */
    padding: 0.5rem 0.6rem;
    /* Sets padding */
    border-radius: var(--radius-sm);
    /* Sets rounded corners */
    border: 1px solid var(--color-gray);
    /* Sets gray border */
    font-size: 0.95rem;
    /* Sets font size */
    font-family: inherit;
    /* Inherits font family */
    resize: vertical;
    /* Allows vertical resize */
    overflow-y: auto;
    /* Enables scroll for overflow */
    line-height: 1.5;
    /* Adjusts line height for 2 lines */
    box-sizing: border-box;
    /* Includes padding and border in the element's total width and height */
}

/* Fixed header hero search textarea styling */
.site-header.fixed .hero-search textarea {
    max-height: 60px;
    /* Limits height in fixed header to match button, ensuring it doesn't exceed 100px overall */
    min-height: 60px;
    /* Ensures it's not smaller than the button */
}

/* Submit summary styling */
.submit-summary {
    border-radius: var(--radius-sm);
    /* Sets rounded corners */
    background-color: var(--color-white);
    /* Sets white background */
    border: 1px solid var(--color-blue);
    /* Sets blue border */
    padding: 1rem 1.1rem;
    /* Sets padding */
}

/* Submit summary heading styling */
.submit-summary h3 {
    margin-top: 0;
    /* Removes top margin */
    color: var(--color-green);
    /* Sets green text color */
}

/* Submit list styling */
#submit-list {
    padding-left: 1.1rem;
    /* Sets left padding */
}

/* Contact section styling */
.contact {
    display: grid;
    /* Uses grid layout */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    /* Sets responsive columns */
    gap: 1.5rem;
    /* Sets space between grid items */
    margin-top: 1.5rem;
    /* Sets top margin */
}

/* Site footer styling */
.site-footer {
    padding: 1.75rem 0 0;
    /* Sets vertical padding */
    text-align: center;
    /* Centers align text */
    font-size: 0.9rem;
    /* Sets font size */
    color: var(--color-gray);
    /* Sets text color */
}

/* Footer navigation link styling */
.footer-nav a {
    color: var(--color-green);
    /* Sets green text color */
    text-decoration: none;
    /* Removes underline */
}

/* Footer navigation link hover and focus states */
.footer-nav a:hover,
/* Styles for hover state */
.footer-nav a:focus-visible {
    /* Styles for focus-visible state */
    text-decoration: underline;
    /* Underlines on hover/focus */
}

/* Media query for max-width: 900px */
@media (max-width: 900px) {
    .submit-layout {
        grid-template-columns: 1fr;
        /* Sets single column layout */
    }

    .community-layout {
        grid-template-columns: 1fr;
        /* Sets single column layout */
    }

    .listings-content {
        flex-direction: column;
        /* Stacks items vertically */
    }

    .listings-text,
    /* Styles for listings text */
    .listings-image {
        /* Styles for listings image */
        flex: 0 0 auto;
        /* Sets auto width */
    }

    .site-header .header-content-wrapper {
        flex-direction: row;
        /* Keeps brand and nav in a row */
        justify-content: space-between;
        /* Sets space between brand and nav */
        align-items: center;
        /* Vertically centers */
        gap: 1rem;
        /* Sets space between items */
    }



    .main-nav ul {
        justify-content: flex-start;
        /* Aligns items to the start */
    }

    .hero {
        padding-top: 2.5rem;
        /* Sets top padding */
    }

    .ui-tabs .ui-tabs-nav li {
        align-items: flex-start;
        /* Aligns items to the start */
    }
}

/* Add spacing to page-wrapper when header is fixed */
.page-wrapper.header-fixed-spacing {
    margin-top: 150px;
    /* Adjust this value to match the height of your fixed header */
}

/* Media query for max-width: 600px */
@media (max-width: 600px) {
    .quote-card {
        flex: 0 0 100%;
        /* Sets full width */
    }

    .ui-tabs .ui-tabs-nav li {
        align-items: flex-start;
        /* Aligns items to the start */
    }
}

/* Admin Modal Styling */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* Black with opacity */
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
}

.modal-content .close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-content .close:hover {
    color: #333;
}

.modal-content .form-field {
    margin-bottom: 1rem;
}

.modal-content .form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.modal-content .form-field input[type="text"],
.modal-content .form-field input[type="tel"],
.modal-content .form-field input[type="email"],
.modal-content .form-field select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

.modal-content .form-field small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #666;
}

.modal-content .form-field input[type="checkbox"] {
    margin-right: 0.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

/* Master Nav Styling */

#master-nav {
    position: fixed;
    top: -5px;
    /* Added some top safe area */
    left: 0;
    width: 100%;
    /* Removed height, background, color, shadow per user request */
    z-index: 5000;
    display: flex;
    align-items: flex-start;
    /* Align to top */
    justify-content: flex-start;
    /* Start from left */
    padding-left: 30px;
    /* 30px from left as requested */
    pointer-events: none;
    /* Let clicks pass through empty areas */
    /* Padding for visual separation removed */
}

/* Ensure content inside master nav catches clicks */
.master-nav-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 0;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    width: auto;
    max-width: 90%;
}

#profile-mode-toggle-container {
    order: 1;
}

#save-profile-btn {
    order: 2;
}

#discard-profile-btn {
    order: 3;
}

/* Removed body.has-master-nav and .site-header displacement rules */




/* Elements inside Master Nav */
#profile-mode-toggle-container,
#profile-edit-actions {
    display: flex;
    align-items: center;
    margin: 0;
}

/* Bio Title Styling */
#profile-bio-title {
    font-weight: 400;
    /* Normal weight */
    font-size: 1.2rem;
    color: #333;
    /* Dark Grey */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Highlights & Credentials Styling */
.profile-list-section h3 {
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--color-green);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.25rem;
}

#profile-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    /* Flex layout */
    flex-wrap: wrap;
    /* Wrap to next line */
    gap: 0.5rem;
    /* Space between items */
}

.profile-list-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    /* Center vertically */
    gap: 0.5rem;
    /* Default behavior: size to content, wrap if long text? 
       User said: "make profile-highlights-list items one row, unless item is long then wrap in box"
       This likely means display inline-block or flex-item behavior where it takes natural width. 
    */
    max-width: 100%;
    /* Prevent exceeding container */
}

/* If item text is long, the flex item will grow.
   If really long, we might want it to wrap internal text? Yes, default.
*/

.profile-list-item .item-type-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    background: transparent;
    padding: 0;
    border-radius: 4px;
    color: #555;
    font-weight: bold;
    white-space: nowrap;
    margin-right: 0.2rem;
    flex-shrink: 0;
    /* Tag shouldn't shrink */
}

.profile-list-item .item-text {
    /* Allow editing */
    min-width: 20px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent backdrop */
    z-index: 9999;
    /* High z-index to sit above page content */
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

/* Close 'X' Button */
.close-modal-x {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
    transition: color 0.2s;
}

.close-modal-x:hover {
    color: #333;
}

/* Compact Admin List Styles */
ul.user-list {
    list-style: none;
    /* Remove dots */
    padding: 0;
    margin: 0;
}

.user-card-wrapper {
    margin-bottom: 5px;
    /* Reduced gap between cards */
}

.user-card {
    height: 40px;
    /* Fixed height */
    padding: 5px 10px;
    /* Reduced padding */
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.user-card:hover {
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

/* --- Admin Page Restructuring --- */

/* Main UI Tabs */
.main-admin-tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 100px;
    /* Right under white header */
    background-color: var(--color-white);
    z-index: 999;
}

.main-tab {
    background: none;
    border: none;
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-bottom 0.2s;
    position: relative;
    /* For notification badge */
}

.main-tab:hover {
    color: #333;
}

.main-tab.active {
    color: #333;
    border-bottom-color: #333;
}

.main-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.main-tab-content.active {
    display: block;
}

#admin-skills-list {
    padding: 0;
    list-style: none;
    margin: 0;
}


/* --- Admin Skills Management Styling --- */

.skill-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Admin Category 3-Column Grid */
.admin-category-grid {
    display: grid;
    grid-template-columns: 4fr 3fr 3fr;
    gap: 20px;
    margin-top: 10px;
    align-items: stretch;
}

.category-column {
    min-height: 400px;
    padding: 10px;
    background: #fdfdfd;
    border: 2px dashed #eee;
    border-radius: 8px;
    transition: background 0.3s, border-color 0.3s;
}

.category-column.drag-over {
    background: #f0f7ff;
    border-color: var(--color-blue);
}

.category-column h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* Expansion Column Specifics */
.expansion-column {
    background: #fafafa;
}

.expansion-column .category-set-item {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* More prominence for expanded items */
}

@media (max-width: 1024px) {
    .admin-category-grid {
        grid-template-columns: 1fr;
    }

    .category-column {
        min-height: auto;
    }
}

#new-item-input {
    flex: 1;
    max-width: 300px;
    padding: 8px;
    font-size: 1rem;
}

.category-set-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.category-set-item.dragging {
    opacity: 0.5;
    background: #f0f0f0;
}

.cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
}

.cat-header:hover {
    background: #f0f0f0;
}

.cat-header .handle {
    cursor: grab;
    margin-right: 12px;
    color: #999;
}

.cat-content {
    display: none;
    padding: 10px;
}

.category-set-item.active .cat-content {
    display: block;
}

.skill-list {
    min-height: 50px;
    /* Drop target */
}

/* Skill Item Styling */
.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 6px;
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
}

.skill-item:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background: #fcfcfc;
}

.skill-item.dragging-svc {
    opacity: 0.5;
}

.skill-drop-zone.drag-over-zone {
    background-color: #e6f7ff;
    border: 2px dashed #1890ff;
    border-radius: 4px;
}

.svc-actions {
    display: flex;
    gap: 8px;
    opacity: 1;
    /* Always visible for admin convenience */
}

.icon-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #666;
    padding: 2px;
}

.icon-btn:hover {
    color: #333;
}

.del-btn:hover {
    color: #d32f2f;
}

.linked-clone {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
}

/* Uncategorized Area */
#uncategorized-area {
    background: #fff3e0;
    border: 1px dashed #ffa726;
    padding: 0.5rem;
    margin-bottom: 0;
    border-radius: 6px;
}


/* User Card Grid Layout */
.user-info {
    /* Grid Layout for Even Distribution */
    display: grid !important;
    /* Override flex */
    grid-template-columns: 1.5fr 1.2fr 2fr 0.8fr;
    /* Name | Phone | Email | Type */
    gap: 1rem;
    width: 100%;
    align-items: center;
}

.user-info strong,
.user-info span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    /* Ensure grid item behavior */
}

/* Compact User Details */
.user-details .details-section {
    margin: 0 30px;
    /* Requested 30px indent */
    padding: 0.5rem 0;
}

.user-details h4 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #444;
}

.user-details p {
    font-size: 0.9rem;
    /* Smaller text */
    line-height: 1.3;
    /* Closer together */
    margin-bottom: 0.25rem;
    color: #555;
    margin-top: 0;
}

/* Utility */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Admin Refinement Phase 2 --- */

/* Arrow Button */
.arrow-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    padding: 0 0.5rem;
    transition: transform 0.2s;
    line-height: 1;
}

.arrow-btn:hover {
    color: #333;
    transform: scale(1.1);
}

/* Split Details Layout */
.details-split-container {
    display: flex;
    gap: 1.5rem;
    margin: 0 30px;
    /* Indent */
    padding: 1rem 0;
}

.details-left {
    flex: 0 0 80%;
    /* 80% width */
}

.details-right {
    flex: 0 0 20%;
    /* 20% width */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: flex-start;
    padding-top: 0.5rem;
    /* Align with text */
}

/* Ensure buttons in stack are full width or consistent */
.details-right .button {
    width: 100%;
    text-align: center;
}

/* Remove old details padding override if needed */
.user-details .details-section {
    margin: 0;
    /* Reset since container has margin */
    padding: 0;
}

/* --- Admin Refinement Phase 4 --- */

/* Boxed Active Main Tabs */
.main-tab.active {
    color: #333;
    border: 1px solid #777;
    /* Darker border for visibility */
    border-radius: 4px;
    background-color: #f0f0f0;
}

/* Responsive Admin Controls */
@media (max-width: 768px) {
    .admin-controls-wrapper {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    .admin-filters {
        width: 100%;
        justify-content: space-between;
    }

    .search-control input {
        width: 100% !important;
        /* Full width search on mobile */
    }
}

/* User List Header */
.user-list-header {
    display: grid !important;
    grid-template-columns: 1.5fr 1.2fr 2fr 0.8fr 30px;
    /* Include extra space for padding/arrow alignment? */
    /* Actually, .user-card has padding. header should align with content. */
    /* .user-info has columns: 1.5fr 1.2fr 2fr 0.8fr */
    /* But .user-card has padding 5px 10px */
    grid-template-columns: 1.5fr 1.2fr 2fr 0.8fr;
    /* Columns */
    gap: 1rem;
    padding: 0.5rem 10px;
    /* Match .user-card padding */
    background-color: #f9f9f9;
    border-bottom: 2px solid #ddd;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-radius: 4px;
    text-align: center;
    /* Slight radius to match cards */
}

/* Adjust User Card to align with Header */
/* The User Card has click area. 
   Inside user-card is .user-info (grid) and .user-actions (right aligned, but now empty/removed). 
   The .user-info grid width is 100%. 
   So header grid should match .user-info grid. 
   AND padding should match.
*/

/* --- Profile Page Overhaul --- */

/* Profile Page Styles */
/* Profile Page Overhaul */
.profile-hero {
    background: #fff;
    padding: 0;
    border-bottom: 1px solid #eee;
}

.profile-hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    /* Ensured columns are same height */
    padding: 2rem 1.5rem;
    /* Standard top padding */
    transition: all 0.3s ease;
}

/* Base style for single column padding consistency */
.profile-hero-container>div:first-child {
    padding-top: 0;
    /* Already handled by container padding */
}

/* Constraint for all hero columns */
.profile-hero-container>div {
    min-width: 250px;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    /* Center if it hits max-width */
}

/* Location styles moved to main-nav section */

@media (max-width: 1100px) {
    .profile-hero-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Specific request for 1024px consistency */
@media (max-width: 1024px) {
    .profile-hero-container {
        padding-top: 2rem;
        /* Keep same top padding */
    }
}

/* Specific request for 1281px consistency */
@media (min-width: 1281px) {
    .profile-hero-container {
        grid-template-columns: repeat(4, 1fr);
        /* Ensure 4 consistent widths */
        padding-top: 2rem;
    }
}

/* Responsive adjustments for 900px and below */
@media (max-width: 900px) {
    .profile-hero-container {
        display: grid;
        grid-template-columns: 1fr;
        /* Single column stack */
        padding: 2rem 1.5rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Reset child elements */
    .profile-hero-container>div {
        margin: 0 auto;
        width: 100%;
        max-width: 500px;
        /* Enforce global max constraint even on mobile */
        min-width: 250px;
        /* Enforce global min constraint */
    }

    .profile-hero-container .hero-header {
        justify-content: flex-start;
        /* Reset justify content */
    }

    /* Hide slick arrows if any remain */
    .slick-prev,
    .slick-next {
        display: none !important;
    }
}



/* Header Integration */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.profile-header-col {
    display: flex;
    align-items: center;
}

.profile-header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    transform: translateY(-5px);
    flex: 1;
    position: relative;
    /* Anchor for centered dropdowns */
}

.header-back-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}

.header-back-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.triangle-left {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 8px solid #666;
    margin-right: 2px;
}

.profile-avatar-header {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 1rem;
    z-index: 4000;
    transition: all 0.2s;
}

.col-photo {
    width: 150px;
    height: 100px;
    position: relative;
}

/* Profile Header Rows */
.profile-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.profile-name-row h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 400;
    /* No bold */
    color: #333;
    white-space: nowrap;
    max-width: 40ch;
}

#profile-name {
    transition: font-size 0.2s;
}

@media (max-width: 768px) {
    #profile-name {
        font-size: clamp(1rem, 4vw, 1.5rem);
        max-width: 250px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #profile-name.wide-name {
        font-size: 0.95rem;
    }
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: #666;
}

.profile-meta span {
    background: none;
    padding: 0;
    border-radius: 0;
}

.profile-action-buttons {
    display: flex;
    gap: 6px;
    margin-right: 0;
}


/* Hero Tabs & Content Dropdowns */
.hero-tabs {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    z-index: 2000;
}

.hero-tab-btn {
    background: none;
    border: none;
    padding: 2px 0;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    position: static;
    /* Let dropdown position relative to profile-header-info */
    font-weight: 400;
}

.hero-tab-btn:hover,
.hero-tab-btn.locked {
    color: #428fd3;
}

.hero-tab-btn .hero-content {
    display: none;
    position: absolute;
    top: 86%;
    /* Below header info */
    left: 23%;
    transform: translateX(-50%);
    width: 380px;
    max-width: 95vw;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    z-index: 3000;
    text-align: left;
    margin-top: 10px;
}

.hero-tab-btn:hover .hero-content,
.hero-tab-btn.locked .hero-content {
    display: block;
}

/* Edit Mode Layout vs Public Mode Layout */
#profile-container.edit-mode .hero-content {
    display: block !important;
    position: static;
    width: auto;
    box-shadow: none;
    border: none;
    padding: 0;
}

#profile-container:not(.edit-mode) .view-more-container-btn,
#profile-container:not(.edit-mode) .view-more-btn {
    display: none !important;
}

#profile-container:not(.edit-mode) .hero-header {
    display: none !important;
}

/* Hero Columns */
.hero-cred {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-list-section h3 {
    font-size: 1.1rem;
    font-weight: 400;
    /* Normal weight */
    margin-bottom: 0.4rem;
    color: #333;
    /* Dark Grey */
}

.profile-list-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-list-section li,
.profile-social-credentials li {
    font-size: 0.95rem;
    color: #333;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
}

.hero-social {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-social h3 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #333;
    margin-top: 0;
    margin-bottom: 0.4rem;
}

/* Drag Handle Styles */
.hero-drag-handle {
    display: none;
    margin-right: 8px;
    cursor: grab;
    color: #999;
}

#profile-container.edit-mode .hero-drag-handle {
    display: inline-block;
}

.profile-social-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.social-tag {
    font-size: 0.85rem;
    background: #f0f0f0;
    color: #555;
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    border: 1px solid #ddd;
}

/* Social Credentials List */
.social-credentials-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
    padding: 0;
    list-style: none;
    /* Ensure no bullets */
}

.social-cred-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-cred-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.social-cred-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.social-cred-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    line-height: 1.2;
}

.social-cred-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.social-cred-label {
    font-size: 0.8rem;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Edit Mode Controls for Social List */
.social-cred-actions {
    display: none;
    gap: 0.3rem;
}

#profile-container.edit-mode .social-cred-actions {
    display: flex;
}

.add-social-cred-btn {
    display: none;
    width: 100%;
    padding: 0.5rem;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.add-social-cred-btn:hover {
    background: #eee;
    color: #333;
    border-color: #999;
}

#profile-container.edit-mode .add-social-cred-btn {
    display: block;
}

.hero-bio p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.button-link {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    text-decoration: underline;
}

.profile-listings {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}




/* Combined Profile Tabs */
.combined-profile-tabs {
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
    padding: 0.5rem;
    position: sticky;
    top: 1rem;
    background: white;
    /* Ensure content doesn't show through */
    z-index: 1000;
}

@media (min-width: 900px) {
    .combined-profile-tabs {
        margin-left: 200px;
    }
}

.listing-type-tab {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    border-radius: 20px;
}

.listing-type-tab:hover {
    color: var(--color-dark);
    background: #f5f5f5;
}

.listing-type-tab.active {
    color: var(--color-green);
    background: rgba(39, 174, 96, 0.1);
    font-weight: 600;
}

/* Edit Mode Drag Styles */
.sortable-tabs .listing-type-tab {
    cursor: grab;
}

.sortable-tabs .listing-type-tab:active {
    cursor: grabbing;
}

/* Display Controls */
.display-option-btn {
    border: 1px solid #ddd;
    background: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    color: #666;
}

.display-option-btn.active {
    background: var(--color-blue);
    color: #fff;
    border-color: var(--color-blue);
}

/* Listing Grid Modes */
.listing-grid {
    display: block;
    /* Default for slick */
}

.listing-grid.mode-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.listing-grid.mode-full {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.mode-grid-3 .listing-card,
.mode-full .listing-card {
    margin: 0;
    /* Override slick margins */
}

/* Hidden Tab Style */
#profile-container:not(.edit-mode) .listing-type-tab[data-hidden="true"] {
    display: none !important;
}

.listing-type-tab[data-hidden="true"] .tab-label {
    /* text-decoration: line-through; -> User wants simple (-) icon, maybe no strikethrough needed? 
       I'll keep strikethrough for edit mode clarity or remove it if user didn't ask. 
       User said "invisible with a (-)". didn't say strikethrough. I'll remove it to be clean. */
    text-decoration: none;
    opacity: 1;
}

/* Edit Mode Opacity handled inline or class */
.edit-mode .listing-type-tab[data-hidden="true"] {
    opacity: 0.6;
}

@media (max-width: 900px) {
    .listing-grid.mode-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .listing-grid.mode-grid-3 {
        grid-template-columns: 1fr;
    }
}


/* Listing Cards */
.listing-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 0 10px;
    transition: transform 0.2s;
}

.listing-card:hover {
    transform: translateY(-5px);
}

.listing-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.listing-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: capitalize;
}

.listing-details {
    padding: 1rem;
}

.listing-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.listing-details p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-listings {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #888;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Social Media Tabs */
.social-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.social-tab {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.social-tab.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Responsive */

/* Desktop Specifics (1024px, 1281px, etc.) */
@media (min-width: 901px) {
    .profile-hero-container>div:first-child {
        padding-top: 50px;
    }

    .profile-avatar-header {
        top: 1px;
        /* Moved up 15px */
    }
}

@media (max-width: 900px) {
    .profile-hero-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 1rem;
        /* Space for scrollbar */
        align-items: stretch;
        /* Hide scrollbar for standard feel, or keep it? user said accordion slider */
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .hero-bio,
    .hero-cred,
    .hero-social,
    .hero-details {
        flex: 0 0 85%;
        /* Shows most of one, peek at next */
        min-width: 240px;
        max-width: 240px;
        scroll-snap-align: start;
        border: 1px solid #eee;
        /* Light border for card feel */
        border-radius: 8px;
        padding: 1rem;
    }

    .profile-rating {
        justify-content: flex-start;
    }

    .profile-social-tags {
        justify-content: flex-start;
    }

    .profile-lists-col {
        align-items: center;
    }

    .profile-avatar-header {
        width: 75px;
        height: 75px;
        top: 0.5rem;
    }

    .col-photo {
        width: 75px;
    }

    .col-name h1 {
        font-size: 1.3rem;
    }

    .col-meta .profile-meta {
        font-size: 0.8rem;
        gap: 0.4rem;
    }
}

@media (max-width: 600px) {
    .profile-header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Profile Header */
.profile-edit-header {
    background: #f9f9f9;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    margin-bottom: 2rem;
    display: none;
    /* Shown only for owner */
}

/* Person Section Grid */
.profile-person-section {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

/* Expert: 3 Columns (Face | Contact | Intro) */
.profile-person-expert {
    grid-template-columns: 200px 1fr 1.5fr;
}

/* Client: 2 Columns (Face | Contact) or Custom */
.profile-person-client {
    grid-template-columns: 200px 1fr;
}

/* Profile Image */
.profile-face-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.profile-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .profile-header-info {
        gap: 0.25rem;
    }

    .profile-avatar {
        width: 100px;
        /* Small screen 100px */
        height: 100px;
    }

    .profile-person-expert,
    .profile-person-client {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        text-align: center;
    }

    .profile-contact-col,
    .profile-intro-col {
        text-align: center;
        /* Center text on mobile */
    }
}

/* Contact Column */
.profile-contact-details p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.request-phone-btn {
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    color: #4a90e2;
    background: none;
    border: none;
    padding: 0;
}

/* Intro Column */
.profile-intro-text {
    line-height: 1.6;
    color: #333;
    position: relative;
    max-width: 600px;
    /* Limit line length */
}

/* Sections (Portfolio, Inspirations, Projects) */
.profile-section-full {
    width: 100%;
    margin-bottom: 3rem;
}

.profile-section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Add Listing Card */
.add-listing-card {
    min-width: 250px;
    height: 300px;
    /* Match standard listing card height */
    border: 2px dashed #ccc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    background: #f9f9f9;
    color: #888;
}

.add-listing-card:hover {
    border-color: #666;
    color: #333;
    background: #f0f0f0;
}

.add-listing-card .plus-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Edit Mode Styles */
.edit-mode .editable-field {
    border: 1px dashed #ccc;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 2px 5px;
    border-radius: 4px;
    cursor: text;
}

.edit-mode #profile-photo {
    cursor: pointer;
    transition: opacity 0.2s;
}

.edit-mode #profile-photo:hover {
    opacity: 0.8;
}


/* Edit Mode Indicators */
.editable:hover {
    background-color: rgba(255, 255, 0, 0.1);
    outline: 1px dashed #ccc;
    cursor: text;
}

.edit-icon {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.8rem;
    color: #999;
    cursor: pointer;
}

.field-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--color-blue);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-green);
    transform: translateY(-5px);
    color: var(--color-white);
}

/* Listing Stack Styles */
.listing-type-section {
    margin-bottom: 3rem;
    scroll-margin-top: 180px;
    /* Offset for fixed header */
}

.listing-type-header {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--color-blue);
    color: var(--color-gray);
}

.listing-type-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--color-blue);
}

/* Update Category Slider to be cleaner without buttons if needed, 
   but user said "Width of buttons are good as they are" */
.category-item {
    min-width: 100px;
    /* Ensure a minimum width */
}

/* --- Account Settings Refactor Styles --- */

/* Horizontal User Info Header */
.settings-header .user-info-display.horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.settings-header .user-info-display.horizontal h3,
.settings-header .user-info-display.horizontal p {
    margin: 0;
    line-height: 1.2;
}

.settings-header .user-info-display.horizontal .info-divider {
    color: #ccc;
    font-size: 1.2rem;
}

.settings-header {
    background: #fdfdfd;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Accordion Section Actions (Top Right / Bottom Right aligned) */
.section-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.section-actions .status-msg {
    font-size: 0.9rem;
    font-weight: 500;
}

.section-actions .btn-group {
    display: flex;
    gap: 10px;
}

/* Draggable Accordion Items */
.set-item[draggable="true"] {
    cursor: grab;
}

.set-item[draggable="true"].dragging {
    opacity: 0.5;
    background: #f9f9f9;
    border: 2px dashed #428fd3;
}

.set-item .set-header {
    cursor: pointer;
    /* Ensure clickable */
}

/* When active (open), maybe disable dragging? Or allow it? 
   User requirement: "user can drag and drop ... when all accordions are closed"
*/


/* --- Account Settings Drag & Drop --- */
.set-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.set-item[draggable="true"] .set-header {
    cursor: grab;
}

.set-item.dragging {
    opacity: 0.5;
    background: #fafafa;
    border: 1px dashed #ccc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.set-item.drag-over {
    border-top: 2px solid #3366ff;
    /* Highlight drop position */
    margin-top: 5px;
}

/* --- Section Actions --- */
.section-actions {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    margin-top: 2rem;
}

/* --- Admin Skills Drag & Drop --- */
.skill-set-item {
    border: 1px solid #ddd;
    margin-bottom: 5px;
    border-radius: 4px;
    background: #fff;
    cursor: default;
}

.skill-set-header {
    background: #f9f9f9;
    padding: 10px 15px;
    cursor: move;
    /* Drag handler for category */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.skill-set-content {
    display: none;
    padding: 10px;
}

.skill-set-item.active .skill-set-content {
    display: block;
}

.admin-skill-list {
    min-height: 50px;
    padding: 5px;
    border: 1px dashed transparent;
}

.admin-skill-list.drag-over {
    border-color: #3366ff;
    background: #f0f7ff;
}

.admin-skill-item {
    padding: 8px 12px;
    margin-bottom: 5px;
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: move;
    /* Drag handler for skill */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-skill-item:hover {
    border-color: #ccc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-skill-item.dragging {
    opacity: 0.5;
}

.skill-actions-btn {
    display: flex;
    gap: 5px;
}


.input-group-top {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
}

@media (min-width: 900px) {
    .profile-bio-col {
        margin-top: 70px;
    }
}

.editable-field {
    border: 1px dashed transparent;
    transition: all 0.2s;
    padding: 2px;
    border-radius: 4px;
}

.editable-field:hover {
    background-color: rgba(255, 255, 0, 0.1);
    border-color: #ccc;
    cursor: text;
}

.editable-field:focus {
    background-color: #fff;
    border-color: var(--color-blue);
    outline: none;
    box-shadow: 0 0 5px rgba(66, 143, 211, 0.3);
}

/* Profile Edit UI Refinements */
.toggle-btn-large {
    padding: 8px 20px !important;
    font-size: 1.1rem !important;
    white-space: nowrap !important;
    min-width: 140px;
}

.list-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.list-section-header h3 {
    margin-bottom: 0 !important;
}

.add-item-btn {
    background: var(--color-blue);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.add-item-btn:hover {
    background: #0056b3;
}

/* Ensure editable fields in lists look consistent */
.profile-list-section ul li.editable-field {
    display: block;
    margin-bottom: 4px;
}

/* Ensure editable fields in lists look consistent */
.hero-details .item-text {
    display: block;
    margin-top: 2px;
    white-space: pre-line;
}

#profile-payments-accepted::-webkit-scrollbar {
    width: 6px;
}

#profile-payments-accepted::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#profile-payments-accepted::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

#profile-payments-accepted::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Enhanced Edit Mode UI */
.head-toggle-btn {
    font-size: 0.95rem !important;
    padding: 6px 15px !important;
    white-space: nowrap;
    border-radius: 20px !important;
    background: #ffffff !important;
    color: #555555 !important;
    font-weight: 400 !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

#profile-edit-actions .button {
    margin: 0 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* List Management */
.profile-list-section {
    position: relative;
}

.profile-list-section ul {
    list-style: none;
    padding: 0;
}

.profile-list-section li {
    position: relative;
    padding: 8px 35px 8px 30px;
    margin-bottom: 5px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: all 0.2s;
}

.edit-mode .profile-list-section li:hover {
    border-color: var(--color-blue);
}

.drag-handle {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: grab;
    color: #ccc;
    display: none;
}

.edit-mode .drag-handle {
    display: block;
}

.item-delete-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 1.1rem;
    display: none;
    padding: 4px;
}

.edit-mode .item-delete-btn {
    display: block;
}

.add-item-btn {
    display: none;
    width: 100%;
    padding: 6px;
    margin-top: 8px;
    background: #f0f7ff;
    border: 1px dashed var(--color-blue);
    color: var(--color-blue);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.edit-mode .add-item-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.add-item-btn:hover {
    background: #e1efff;
}

/* Sortable Placeholder */
.sortable-placeholder {
    background: #eef5ff !important;
    border: 2px dashed #99c2ff !important;
    visibility: visible !important;
}

.sortable-ghost {
    opacity: 0.4;
}

/* Location Edit */
#profile-location.editable-field {
    display: inline-block;
    min-width: 100px;
}

/* Expandable Content (Accordion) */
/* Expandable Hero Container (Accordion) */
.profile-hero .profile-hero-container {
    position: relative;
    /* transition: max-height 0.3s ease;  Removing transition for height as it can be jumpy with auto */
}

.hero-collapsed {
    max-height: 200px;
    overflow: hidden;
}

/* Gradient Mask for Collapsed State */
.hero-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    z-index: 10;
}

/* Edit Mode Overrides - Force Expand */
.edit-mode .hero-collapsed {
    max-height: none !important;
    overflow: visible !important;
}

.edit-mode .hero-collapsed::after {
    display: none !important;
}

.edit-mode .view-more-container-btn {
    display: none !important;
}

.view-more-container-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    cursor: pointer;
    padding-bottom: 10px;
    transition: background-color 0.2s;
}

.view-more-container-btn:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* View More Button Styling */
.view-more-btn {
    display: block;
    margin: 10px auto 0;
    padding: 6px 12px;
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    color: var(--color-dark);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.view-more-btn:hover {
    background: #e0e0e0;
}

/* Account Header - remove bold */
.account-header-title h2 {
    font-weight: 400 !important;
}

/* Accordion Drag Handle (3 lines) */
.set-header {
    position: relative;
    padding: 1rem !important;
    padding-left: 3.5rem !important;
    /* Space for handle */
}

.set-header::before {
    content: "";
    position: absolute;
    left: 1rem;
    /* Adjust left position */
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 10px;
    padding: 0 0.5rem;
    /* Padding to widen the handle lines */
    box-sizing: content-box;
    /* Ensure padding adds to width */
    /* 3 lines using gradient or box-shadow */
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    background-image: linear-gradient(#ccc 2px, transparent 2px);
    /* Middle line */
    background-size: 100% 2px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
}

/* Hover state for handle */
.set-item:hover .set-header::before {
    opacity: 1;
    border-color: #999;
}

/* --- Profile UI Refinements --- */

/* Share Button Styling */
.share-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    display: inline-flex;
    align-items: center;
    padding: 4px;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.share-btn:hover {
    color: var(--color-green);
    transform: scale(1.1);
}

.share-btn.copied {
    color: var(--color-green);
}

/* Item Type Tag Refinement */
.profile-list-item .item-type-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    background: transparent !important;
    padding: 0;
    color: #333;
    font-weight: 800;
    /* Stronger bold */
    border-right: 2px solid #eee;
    padding-right: 6px;
    margin-right: 8px;
}

/* View More Container Button Refinement */
.view-more-container-btn {
    border-top: 1px solid transparent;
    transition: all 0.3s ease;
}

.view-more-container-btn:hover {
    background-color: rgba(0, 0, 0, 0.03);
    border-top-color: #eee;
}

.view-more-container-btn:active {
    background-color: rgba(0, 0, 0, 0.05);
}

/* --- Profile UI Refinements (Phase 2) --- */

/* Hero Headers & Toggles */
.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    height: 35px;
    /* Enforced height */
}

.col-visibility-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    line-height: 1;
    margin-left: auto;
    /* Push to right in flex container */
}

.col-visibility-toggle:hover {
    background: #f0f0f0;
    color: var(--color-green);
}

.col-visibility-toggle.invisible {
    color: #ccc;
    text-decoration: line-through;
}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #d4af37;
    /* Gold */
    font-weight: 700;
    font-size: 0.85rem;
    margin-left: 8px;
    vertical-align: middle;
}

/* Message Button */
.message-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    display: inline-flex;
    align-items: center;
    padding: 4px;
    margin-left: 8px;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.message-btn:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

/* Hero Social Refinement */
.hero-social {
    gap: 0 !important;
}

/* Profile Details Column */
.profile-details-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Custom Tooltip Styles */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-tooltip]::before {
    content: "";
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 10000;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Profile Specific Tooltip Overrides */
.verified-badge[data-tooltip]::after,
.verified-badge[data-tooltip]::before,
#profile-location-wrapper[data-tooltip]::after,
#profile-location-wrapper[data-tooltip]::before {
    top: 100%;
    bottom: auto;
    left: auto;
    right: 0;
    transform: translateY(5px) translateX(0);
    z-index: 5000;
}

.verified-badge[data-tooltip]:hover::after,
.verified-badge[data-tooltip]:hover::before,
#profile-location-wrapper[data-tooltip]:hover::after,
#profile-location-wrapper[data-tooltip]:hover::before {
    transform: translateY(5px) translateX(0);
}

.hero-details {
    display: flex;
    flex-direction: column;
}

.details-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Match other sections gap */
}

.detail-item {
    font-size: 0.95rem;
    color: #333 !important;
    padding: 8px 12px !important;
    background: #fdfdfd !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 0.8rem;
}

.detail-item label {
    display: block;
    font-weight: 400;
    /* Normal weight */
    color: #666;
    /* Lighter color for label */
    font-size: 0.8rem;
    text-transform: none;
    /* No capitalization */
    margin: 0;
}

.detail-item .item-text,
.detail-item p {
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
}

/* Ensure consistent text across all hero columns */
.hero-bio p,
.profile-list-section li,
.profile-social-credentials li,
.detail-item {
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #333;
}

#profile-bio-short {
    color: #333;
}

/* Hero Container Grid Adjustment */
.profile-hero-container {
    align-items: stretch;
    /* Make columns same height */
}

/* View More Button Refinement */
.view-more-btn {
    background: transparent !important;
    border: none;
    color: #666;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.view-more-btn:hover {
    color: var(--color-primary);
}

/* Fix Hero Titles in Edit Mode */
#profile-container.edit-mode .hero-header h3 {
    margin-right: 30px;
    /* Space for toggle */
}

.hero-title-wrapper {
    margin-top: 1.5rem;
}

/* --- Refinements Phase 3 --- */

/* Hero Bio Stacking */
.hero-bio {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Stack title on top */
}

.hero-bio .hero-header {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Light Grey Items */
.profile-social-credentials li,
.profile-list-item {
    background: #fdfdfd !important;
    border: 1px solid #f0f0f0 !important;
    color: #333 !important;
}

/* Consistent Add Buttons */
.add-item-btn-container button,
.add-cred-btn {
    background: #f5f5f5;
    border: 1px dashed #ccc;
    color: #666;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.add-item-btn-container button:hover,
.add-cred-btn:hover {
    background: #eee;
    color: #333;
    border-color: #999;
}

/* --- Account Page View Modes --- */

.settings-sections.tabbed-view {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
}

.settings-sections.tabbed-view .set-item {
    border: 1px solid #e0e0e0 !important;
    border-bottom: 2px solid #e0e0e0 !important;
    margin-right: -1px;
    background: #f5f5f5;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
    cursor: grab;
    position: relative;
    z-index: 1;
}

.settings-sections.tabbed-view .set-item.active {
    background: #fff;
    border-bottom: 2px solid #fff !important;
    z-index: 3;
}

.settings-sections.tabbed-view .set-header {
    padding: 12px 10px !important;
    font-size: 0.95rem !important;
    background: transparent !important;
    justify-content: center !important;
    border-radius: 8px 8px 0 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hide arrow in tabbed view */
.settings-sections.tabbed-view .set-header::after {
    display: none !important;
}

.settings-sections.tabbed-view .set-content {
    grid-column: 1 / -1;
    grid-row: 999;
    /* Push all content panels to the end */
    border: 1px solid #e0e0e0 !important;
    border-radius: 0 0 8px 8px !important;
    background: #fff !important;
    width: 100%;
    margin-top: -2px;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Ensure only one visible panel in tabbed mode */
.settings-sections.tabbed-view .set-item:not(.active) .set-content {
    display: none !important;
}

.settings-sections.tabbed-view .set-item.active .set-content {
    display: block !important;
}

/* Drag handling in tabbed view */
.settings-sections.tabbed-view .set-item.dragging {
    opacity: 0.5;
    background: #e9e9e9;
}

.settings-sections.tabbed-view .set-item.drag-over {
    border-left: 3px solid #428fd3 !important;
}

/* --- Account Page View Modes --- */

/* Tabbed View Styles */
.settings-sections.tabbed-view #set-nav {
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.settings-sections.tabbed-view #set-nav a {
    padding: 10px 15px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.settings-sections.tabbed-view #set-nav a.active {
    border-bottom: 2px solid var(--color-blue);
    color: var(--color-blue);
    font-weight: 600;
}

.settings-sections.tabbed-view .set-header {
    display: none;
}

.settings-sections.tabbed-view .set-item {
    border: none;
    margin-bottom: 0;
}

.settings-sections.tabbed-view .set-item:not(.active) {
    display: none;
}

.settings-sections.tabbed-view .set-item.active {
    display: block;
}

.settings-sections.tabbed-view .set-content {
    display: block !important;
    max-height: none !important;
    padding: 0;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Hide expand/collapse in tabbed view */
.tabbed-view-active #expand-all-btn,
.tabbed-view-active #collapse-all-btn {
    display: none !important;
}

/* Drag and Drop Styles */
.set-nav a[draggable="true"] {
    cursor: move;
}

.set-nav a.dragging {
    opacity: 0.5;
    background: #f0f0f0;
}

.set-nav a.drag-over {
    border-left: 2px solid var(--color-blue);
}

/* Location Suggestions Autocomplete */
.location-suggestions {
    position: absolute;
    top: 100%;
    left: 4px;
    right: 4px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2200;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    margin-top: 2px;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-item:hover {
    background: #f5f7f9;
    color: var(--color-blue);
}

.suggestion-item .type {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.loc-input-group {
    position: relative;
    display: flex;
    gap: 5px;
}

/* Search Result Location Tags */
.result-location-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #f0f4f8;
    color: #546e7a;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 5px;
    font-weight: 500;
    border: 1px solid #e1e8ed;
    vertical-align: middle;
}
/* ================================================
   PROXIMITY FEATURES - CONSISTENT STYLING
   ================================================ */

/* Proximity distance badge on profiles */
.proximity-distance-badge {
    display: inline-block;
    margin-left: 8px;
    color: #667eea;
    font-size: 0.9em;
    font-weight: 500;
    padding: 4px 10px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 4px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.proximity-distance-badge:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

/* Profile location wrapper with proximity data */
#profile-location-wrapper.has-proximity-distance {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}

/* Map sidebar styling to match site */
.map-sidebar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-search {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Link to map from home page */
.btn-proximity-map,
.link-proximity-map {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.btn-proximity-map:hover,
.link-proximity-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Proximity info icon */
.proximity-info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    margin-left: 4px;
    cursor: help;
}

/* Map page responsive adjustments */
@media (max-width: 768px) {
    .map-sidebar {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 45vh;
        border-left: none;
        border-top: 1px solid #ddd;
    }

    #map {
        height: 55vh;
    }

    .map-sidebar-header h2 {
        font-size: 16px;
    }

    .proximity-distance-badge {
        font-size: 0.85em;
        padding: 3px 8px;
    }
}

/* Location sync indicator */
.location-synced {
    opacity: 0.7;
    color: #4caf50;
}

.location-synced::after {
    content: " ✓";
    color: #4caf50;
    font-weight: bold;
}
