/* 
Plugin Name: Float Therapy Core Styles
Description: Custom styles for the Float Therapy site.
Version: 1.0
Author: Aik Busmeon
*/

  /* Only tiny helpers if you want them as classes (optional). You can skip this <style> entirely. */


/* Flexible, consistent gallery height (tweak values if you like) */
.property-gallery-grid { height: 260px; }               /* mobile: natural height */
/* @media (min-width: 768px){  .property-gallery-grid { height: 260px; } }  md */
/* @media (min-width: 1024px){ .property-gallery-grid { height: 300px; } }  lg */

/* Cells & images */
.property-gallery-cell{ position:relative; height:100%; overflow:hidden; }
.property-gallery-thumbcol{ display:flex; flex-direction:column; gap:1rem; height:100%; }
.property-gallery-thumbcol > *{ position:relative; flex:1; }
.property-gallery-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:0.5rem; }

[role="tabpanel"]{
    margin-top: 0px !important;
}

h3.highlight-bold{
    color: black;
    font-weight: bold;
    font-size: 16px;
    margin-top: 20px;
    line-height: 1.5;
}


gmp-place-autocomplete{
    border: 1px solid #d0d5dd !important;
    border-radius: 8px;
}

.rm-label label,
.frm_login_form .frm_top_container label{
    display: none !important;
}

.frm_login_form [name="wp-submit"],
#lostpasswordform_0 .frm_submit [type="submit"],
#resetpasswordform_0 .frm_submit [type="submit"]{
    width: 100% !important;
}


.sm-spacing .frm_form_field{
    margin-bottom: 10px !important;
}


.frm_style_formidable-oliver-2.with_frm_style .full-w-btn .frm_submit button{
    width: 100% !important;
}   


.frm_style_formidable-oliver-2 fieldset{
    padding-bottom: 0px !important;
}

.more-overlay{
    background: rgba(0, 0, 0, 0.6);
}

#propertyDrawer,
#viewingDrawer{
    z-index: 999;
}

.frm_style_formidable-oliver-2.with_frm_style .frm_error, .frm_style_formidable-oliver-2.with_frm_style .frm_limit_error{
    color: #F04438;
}

.bg-light-gray{
    background-color: #f9f9f9;
}


gmp-place-autocomplete,
#address-map{
    display: none;
}


.frm_page_num_2 gmp-place-autocomplete,
.frm_page_num_2 #address-map{
    display: block;
}

[role="tablist"] button[aria-selected="true"]{
    background-color: #f8f8f8;
    color: inherit;
}

[role="tablist"] button:hover{
    background-color: #f8f8f8;
    color: inherit;
}

body .site-inner {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

#genesis-content{
    width: 100%;
}

body.sidebaractivated {
    padding-left: 287px !important;
    margin-top: 3.5rem;
}

.admin-bar .floating-top-bar.top-0{
    top: 34px;
}

.admin-bar .sidebar-navigation{
    margin-top: 89px;
}

#genesis-content{
    padding-top: 33px;
    padding-left: 40px;
    padding-right: 40px;
}


.navigation-item.active{
    background-color: #f9fafb;
}

.navigation-item.active span{
    color: #6b705c;
}
.navigation-item.active svg{
    color: #6b705c;
}


/* Base background */
.bg-olive       { background-color: #6b705c; }
.bg-olive-100   { background-color: #e3e5df; }
.bg-olive-200   { background-color: #c7cbbf; }
.bg-olive-300   { background-color: #abaf9e; }
.bg-olive-400   { background-color: #8f9380; }
.bg-olive-500   { background-color: #6b705c; }
.bg-olive-600   { background-color: #56594a; }
.bg-olive-700   { background-color: #404338; }
.bg-olive-800   { background-color: #2b2d26; }
.bg-olive-900   { background-color: #161614; }

/* Text color */
.text-olive     { color: #6b705c; }

/* Border color */
.border-olive   { border-color: #6b705c; }

/* Hover versions (mimicking Tailwind) */
.hover\:bg-olive-100:hover { background-color: #e3e5df; }
.hover\:bg-olive-200:hover { background-color: #c7cbbf; }
.hover\:bg-olive-500:hover { background-color: #6b705c; }
.hover\:bg-olive-600:hover { background-color: #56594a; color: white; }
.hover\:text-olive:hover   { color: #6b705c; }

.hover\:bg-gray-100:hover,
.hover\:text-olive:hover
{
    color: #6b705c;
}

.border-olive-500{
    border-color: #6b705c;
}


.hover\:bg-olive:hover{
    background-color: #5a5f4d;
}

/* Button styles with olive branding */
.btn-olive {
    background-color: #6b705c !important;
    color: white !important;
    border: none !important;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.btn-olive:hover {
    background-color: #56594a !important;
    color: white !important;
}

.btn-olive:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(107, 112, 92, 0.5) !important;
    background-color: #6b705c !important;
    color: white !important;
}

.btn-olive:active {
    background-color: #56594a !important;
    color: white !important;
    transform: translateY(1px);
}

.btn-olive:visited {
    background-color: #6b705c !important;
    color: white !important;
}

/* Close button styles with olive branding */
#closePropertyDrawer {
    background-color: transparent !important;
    color: #6b705c !important;
    border: none !important;
    border-radius: 0.375rem;
    padding: 0.5rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

#closePropertyDrawer:hover {
    background-color: #6b705c !important;
    color: white !important;
}

#closePropertyDrawer:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(107, 112, 92, 0.5) !important;
    background-color: transparent !important;
    color: #6b705c !important;
}

#closePropertyDrawer:active {
    background-color: #56594a !important;
    color: white !important;
    transform: translateY(1px);
}

#closePropertyDrawer:visited {
    background-color: transparent !important;
    color: #6b705c !important;
}

/* Notification button styles with olive branding */
.open-x-btn {
    background-color: transparent !important;
    color: #9ca3af !important;
    border: none !important;
    border-radius: 50%;
    padding: 0.25rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    position: relative;
}

.open-x-btn:hover {
    background-color: #6b705c !important;
    color: white !important;
}

.open-x-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(107, 112, 92, 0.5) !important;
    background-color: transparent !important;
    color: #9ca3af !important;
}

.open-x-btn:active {
    background-color: #56594a !important;
    color: white !important;
    transform: translateY(1px);
}

.open-x-btn:visited {
    background-color: transparent !important;
    color: #9ca3af !important;
}

/* Ensure SVG inherits the button color */
.open-x-btn svg {
    color: inherit !important;
}

/* Fix for user menu button focus state */
button[data-headlessui-state] {
    transition: all 0.2s ease-in-out;
}

button[data-headlessui-state]:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(107, 112, 92, 0.5) !important;
}

button[data-headlessui-state]:focus:not(:hover) {
    background-color: transparent !important;
    color: #9ca3af !important;
}

button[data-headlessui-state]:focus:hover {
    background-color: #5a5f4d !important;
    color: white !important;
}

/* Override any default browser focus styles */
button[data-headlessui-state]:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(107, 112, 92, 0.5) !important;
}

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

    body.sidebaractivated{
        padding-left: 0 !important;
    }

    .vubli-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .vubli-sidebar.show {
        transform: translateX(0);
    }

    #genesis-content{
        padding-left: 15px;
        padding-right: 15px;
        /* padding-top: 0px; */
    }

}

/* Responsive table to cards conversion */
@media screen and (max-width: 768px) {
    /* Hide table on mobile */
    #propertyTableContainer {
        display: none;
    }
    
    /* Show cards container on mobile */
    #propertyCardsContainer {
        display: block;
    }
    
    /* Card grid layout */
    .property-cards-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Individual property card */
    .property-card {
        max-width: 100%;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
        position: relative;
        overflow: hidden;
    }
    
    /* Card image */
    .property-card-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 0.5rem 0.5rem 0 0;
    }
    
    /* Card content */
    .property-card-content {
        padding: 1.25rem;
    }
    
    /* Card title */
    .property-card-title {
        margin-bottom: 0.5rem;
        font-size: 1.2rem;
        font-weight: 700;
        line-height: 1.2;
        color: #111827;
    }
    
    /* Card price */
    .property-card-price {
        margin-bottom: 0.75rem;
        font-weight: 400;
        color: #374151;
    }
    
    /* Card location */
    .property-card-location {
        margin-bottom: 1rem;
        font-size: 0.875rem;
        color: #6b7280;
    }
    
    /* Card actions */
    .property-card-actions {
        display: flex;
        justify-content: flex-end;
        gap: 0.5rem;
    }
    
    /* Status badge */
    .property-status-badge {
        position: absolute;
        right: 0.5rem;
        top: 0.5rem;
        display: inline-flex;
        align-items: center;
        border-radius: 9999px;
        background-color: #dcfce7;
        padding: 0.125rem 0.625rem;
        font-size: 0.75rem;
        font-weight: 500;
        color: #166534;
    }
}

/* Hide cards container on desktop */
@media screen and (min-width: 769px) {
    #propertyCardsContainer {
        display: none;
    }
    
    #propertyTableContainer {
        display: block;
    }
}

/* Responsive viewing table to cards conversion */
@media screen and (max-width: 768px) {
    /* Hide viewing table on mobile */
    #viewingTableContainer {
        display: none;
    }
    
    /* Show viewing cards container on mobile */
    #viewingCardsContainer {
        display: block;
    }
    
    /* Viewing card grid layout */
    .viewing-cards-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Individual viewing card */
    .viewing-card {
        max-width: 100%;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
        position: relative;
        overflow: hidden;
    }
    
    /* Viewing card image */
    .viewing-card-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 0.5rem 0.5rem 0 0;
        transition: transform 0.2s ease-in-out;
    }
    
    /* Viewing card image hover effect */
    .viewing-card a:hover .viewing-card-image {
        transform: scale(1.02);
    }
    
    /* Viewing card content */
    .viewing-card-content {
        padding: 1.25rem;
    }
    
    /* Viewing card title */
    .viewing-card-title {
        margin-bottom: 0.5rem;
        font-size: 1.2rem;
        font-weight: 700;
        line-height: 1.2;
        color: #111827;
        transition: color 0.2s ease-in-out;
    }
    
    /* Viewing card title hover effect */
    .viewing-card a:hover .viewing-card-title {
        color: #6b705c;
    }
    
    /* Viewing card time */
    .viewing-card-time {
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
        color: #6b7280;
    }
    
    /* Viewing card buyer */
    .viewing-card-buyer {
        margin-bottom: 1rem;
        font-weight: 500;
        color: #374151;
    }
    
    /* Viewing card actions */
    .viewing-card-actions {
        display: flex;
        justify-content: flex-end;
        gap: 0.5rem;
    }
    
    /* Viewing status badge */
    .viewing-status-badge {
        position: absolute;
        right: 0.5rem;
        top: 0.5rem;
        display: inline-flex;
        align-items: center;
        border-radius: 9999px;
        background-color: #dcfce7;
        padding: 0.125rem 0.625rem;
        font-size: 0.75rem;
        font-weight: 500;
        color: #166534;
    }

    .social-media-connection-settings{
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .property-gallery-thumbcol{
        flex-direction: row;
    }
}

/* Mobile upload button */
@media screen and (max-width: 642px) {
    #mobileUploadBtn {
        display: block !important;
    }
}

/* Hide mobile upload button on larger screens */
@media screen and (min-width: 643px) {
    #mobileUploadBtn {
        display: none !important;
    }
}

/* Hide viewing cards container on desktop */
@media screen and (min-width: 769px) {
    #viewingCardsContainer {
        display: none;
    }
    
    #viewingTableContainer {
        display: block;
    }
}

