
.geo-item:hover {
    background: #f5f5f5;
}






.publisher-message {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Target publisher inside our photo modal only */
#publisher-photo-wrapper .x-form.publisher[data-modal-mode="true"],
#publisher-photo-wrapper .x-form.publisher {
   
    height: auto !important;
    max-width: 600px !important;
    border-radius: 16px !important;
    margin: auto !important;
    padding: 10px 20px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    
   
}

/* Overlay layer within modal */
#publisher-photo-wrapper .publisher-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 16px;
}

/* Stretch all sections nicely */
#publisher-photo-wrapper .publisher-message,
#publisher-photo-wrapper .publisher-slider,
#publisher-photo-wrapper .publisher-footer {
    width: 100% !important;
}

/* Smooth textarea height */
#publisher-photo-wrapper .publisher-message textarea {
  min-height: 40px;
  height: auto !important;
  overflow-y: hidden !important;
  background-color: #d3d4d5;
  border-radius: 10px;
}
/* Add left padding ONLY to location SVG icon */
.publisher-tools-tab[data-tab="location"] .svg-container.main-icon {
  padding-left: 12px;
padding-top: 10px !important;

}
/* Border only for LOCATION meta input */
.publisher-meta[data-meta="location"] input.js_geocomplete {
  border: 1px solid black;  
}
/* Mobile responsive fallback */
@media (max-width: 767px) {
    #modal.show .modal-dialog {
        max-width: 90% !important;
        width: 95% !important;
    }

    #publisher-photo-wrapper .x-form.publisher {
        padding: 8px 12px;
    }
}

/* Force photo-options to appear above the footer visually */
#publisher-photo-wrapper .publisher-slider {
    display: flex;
    flex-direction: column;
}

#publisher-photo-wrapper .photo-options {
    order: 9;
    /* adjust order priority */
    margin-top: auto;
    margin-bottom: 10px;
    
}

#publisher-photo-wrapper .publisher-footer {
    order: 10;
}

/* ✅ Bring photo-options above footer (no slider needed) */
#publisher-photo-wrapper {
    position: relative;
}

#publisher-photo-wrapper #photo-options {
    position: relative;
    z-index: 3;
    margin-bottom: 65px; /* push Post button further down */
}



#publisher-photo-wrapper #photo-options {
    margin-bottom: 15px !important; /* Some breathing room before footer */
}

/* ✅ Align Copyrights, Quality, Classifications in one line and center Quality */
#publisher-photo-wrapper .photo-options .d-flex {
    display: flex !important;
    align-items: center !important;
    gap: 60px !important; /* Equal spacing between dropdowns */
    flex-wrap: nowrap !important;
}

/* ✅ Make each dropdown equal width for perfect balance */
#publisher-photo-wrapper .photo-options .form-group {
    flex: 0 0 220px !important; /* fixed width for consistent balance */
    text-align: center !important;
}

/* ✅ Keep modal width responsive but balanced */
#modal.show .modal-dialog {
    width: 80% !important;
    max-width: 1200px !important;
    margin: 2rem auto !important;
}



/* ✅ Footer alignment (Post button) */
#publisher-photo-wrapper .publisher-footer {
    order: 99 !important;
    position: relative !important;
    margin-top: 20px !important;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ✅ Responsive (for tablets & phones) */
@media (max-width: 991px) {
    #publisher-photo-wrapper .photo-options .d-flex {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 20px !important;
    }

    #publisher-photo-wrapper .photo-options .form-group {
        flex: 0 0 45% !important;
    }
}

@media (max-width: 600px) {
    #publisher-photo-wrapper .photo-options .form-group {
        flex: 1 1 100% !important;
    }
}



/* Optional: tighten modal vertical space on desktop */
#modal .modal-dialog {
    margin: 1.25rem auto !important;
}

/* Optional: better mobile experience */
@media (max-width: 767px) {
    #modal .modal-dialog {
        width: 95% !important;
        margin: 1rem auto !important;
    }

    #publisher-photo-wrapper .x-form.publisher {
        min-height: auto !important;
        padding: 15px 10px 10px !important;
    }
}

/* Make the Quality select look like the light dropdown buttons */
.quality-wrapper {
    display: inline-block !important;
    vertical-align: middle;
    min-width: 140px;
}

.styled-quality {
    display: inline-block !important;
    width: auto !important;
    min-width: 140px !important;
    max-width: 220px !important;
    height: 38px !important;
    line-height: 1.2 !important;
    padding: 8px 30px 8px 12px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #212529 !important;
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
    appearance: none !important;
    cursor: pointer !important;

    background-image: url("data:image/svg+xml,%3Csvg ... %3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: calc(100% - 10px) center !important;
    background-size: 12px 8px !important;
    box-shadow: none !important;
}

.styled-quality.placeholder {
    color: #8a8f95 !important;
    font-weight: 500 !important;
}

.styled-quality:hover,
.styled-quality:focus {
    background-color: #f1f3f5 !important;
    border-color: #ced4da !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(108,117,125,0.06) !important;
}

.styled-quality option {
    color: #212529;
}

/* Layout for dropdown row */
#publisher-photo-wrapper .photo-options .d-flex {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 25px !important;
}

#publisher-photo-wrapper .photo-options .form-group {
    flex: 1 1 auto !important;
    min-width: 200px !important;
}

/* Responsive fallback for small screens */
@media (max-width: 768px) {
    #publisher-photo-wrapper .photo-options .d-flex {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }
}

/* Modal width fix */
#modal.show .modal-dialog {
    max-width: 80% !important;
    width: 80% !important;
    margin: 2rem auto !important;
}


/* Neat one-line layout */
#publisher-photo-wrapper .photo-options .d-flex {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 40px !important;
}

@media (max-width: 991px) {
    #modal.show .modal-dialog {
        width: 95% !important;
        max-width: 95% !important;
    }

    #publisher-photo-wrapper .photo-options .d-flex {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 20px !important;
    }
}


#publisher-photo-wrapper .publisher-footer .btn,
#publisher-photo-wrapper .publisher-footer button,
#publisher-photo-wrapper .publisher-footer .js_publisher-privacy {
   
    background-color: lightgray;
    color: black;
    border-radius: 12px !important;
    border: none !important;
    font-size: 12px !important;
    
    width: 100px !important;
    display: inline-flex;
  align-items: center;
  justify-content: center;

  line-height: 1.2;
 

}


#publisherPrivacyGroup .btn,
button.js_publisher-btn {
  padding: 6px 6px !important;
}


@media (max-width: 767px) {

   
    /* Force buttons to match exactly */
    #publisher-photo-wrapper .publisher-footer .btn,
    #publisher-photo-wrapper .publisher-footer button,
    #publisher-photo-wrapper .publisher-footer .js_publisher-privacy .btn {
        width: 140px !important;
        max-width: 100px !important;
        min-width: 100px !important;
    

        background-color: black !important;
        color: #adb5bd !important;
        border-radius: 12px !important;
        border: none !important;
        box-shadow: 0 4px 10px rgba(75,107,251,0.35) !important;
        font-weight: 600 !important;
        font-size: 14px !important;
    }

    /* Remove Bootstrap btn-group padding */
    #publisher-photo-wrapper .btn-group.js_publisher-privacy {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }
}





/* ---------- Upload Photos button styles ---------- */
#publisher-photo-box .publisher-tools-tab {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 10px;
    background: white;
    color: black;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    white-space: nowrap;
    min-height: 54px;
    min-width: 160px;
}

#publisher-photo-box .btn-close{
    background-color: grey;
    border-radius: 300.375rem !important;
}


/* SVG sizing */
#publisher-photo-box .publisher-tools-tab .svg-container.main-icon,
#publisher-photo-box .publisher-tools-tab .svg-container.main-icon.mr5,
#publisher-photo-box .publisher-tools-tab .main-icon,
#publisher-photo-box .publisher-tools-tab .main-icon img {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    display: inline-block !important;
    margin: 0 !important;
    vertical-align: middle !important;
    object-fit: contain !important;
}

/* Label text */
#publisher-photo-box .publisher-tools-tab .label,
#publisher-photo-box .publisher-tools-tab .js_x-uploader + * {
    font-weight: 800;
    color: #141414;
    font-size: 16px;
}

/* Glow effect */
#publisher-photo-box .publisher-tools-tab .main-icon img,
#publisher-photo-box .publisher-tools-tab .main-icon svg {
    filter: drop-shadow(0 0 6px rgba(126, 87, 194, 0.8));
    transition: filter 0.3s ease;
    
    
}

#publisher-photo-box .publisher-tools-tab:hover .main-icon img,
#publisher-photo-box .publisher-tools-tab:hover .main-icon svg {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
}

/* Mobile tweak */
@media (max-width: 480px) {
    #publisher-photo-box .publisher-tools-tab {
        padding: 8px 12px;
        gap: 10px;
        min-width: 120px;
    }

    #publisher-photo-box .publisher-tools-tab .svg-container img {
        width: 40px !important;
        height: 40px !important;
    }

    #publisher-photo-box .publisher-tools-tab {
        font-size: 15px;
    }
}






/* copyright UI balance, icon resets, etc */
#photo-options .form-group .copyright-label,
#publisher-photo-wrapper #photo-options .form-group .copyright-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    user-select: none;
    vertical-align: middle;
}

#photo-options .form-group .copyright-label .copyright-icon{
    width: 36px !important;
    height: 36px !important;
    display: inline-block !important;
    object-fit: contain !important;
    margin: 0 !important;
    filter: none !important;
}

#photo-options .form-group .copyright-label .copyright-text {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #1b1b1b !important;
    line-height: 1 !important;
}

#photo-options .form-group .dropdown {
    margin-top: 8px;
}

#photo-options .form-group .copyright-label:hover .copyright-icon {
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25))
            drop-shadow(0 0 8px rgba(255,200,60,0.15));
    transform: translateY(-1px);
}

#photo-options .form-group label.control-label {
    display: inline-flex !important;
}

#photo-options img,
#photo-options svg,
#photo-options .main-icon,
#photo-options .copyright-icon,
#photo-options .quality-icon,
#photo-options .classification-icon {
    display: inline-block !important;
    vertical-align: middle !important;
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
    line-height: 1 !important;
    margin: 0 !important;
    transform: translateY(0) !important;
}

/* attachment reset */
.publisher-attachments {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    outline: none !important;
}

.publisher-attachments:empty {
    display: none !important;
}

.publisher-tools-tabs {
    margin: 0 15px;
    padding-top: 15px;
    border-bottom: none !important;
    border-top: none !important;
}

#classificationsDropdown,
#qualityDropdown,
#copyrightDropdown,
#filmDropdown,
#cameraDropdown {
    max-width: 190px;
    display: inline-block !important;
    background-color: #d3d4d5 !important;
}

.publisher-emojis .far {
    color:yellow !important;
}



/* Upload Photos + Check In layout */
.publisher-tools-tabs li.col-md-6 {
    flex: 0 0 20% !important;
    width: 30%!important;
}

.publisher-tools-tabs li.col-md-65 {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    width: 20% !important;
        margin-left: 60px !important;
}

.publisher-tools-tabs .row > li {
    margin-right: 12px !important;
}

/* hide "Check In" text */
.publisher-tools-tabs li.col-md-65 .publisher-tools-tab {
    font-size: 0 !important;
}

.publisher-tools-tabs li.col-md-65 .publisher-tools-tab {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    min-width: auto !important;
    min-height: auto !important;
}
.publisher-meta{
  border-top:none !important;
}


/* Make Upload + Location align properly on mobile */
@media (max-width: 767px) {

    /* FORCE custom flex instead of Bootstrap .row rules */
    #publisher-photo-wrapper .publisher-tools-tabs ul.row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}
/* Make "Where are you?" full-width like other buttons in mobile */
@media (max-width: 767px) {

    
    #publisher-photo-wrapper .publisher-meta[data-meta="location"] input.js_geocomplete {
        width: 90% !important;            /* full width */
        max-width: 90% !important;        /* ensure no shrinking */
        
    }

     

}
.colored-text-wrapper {
  position: relative;
}

.colored-text-wrapper textarea {
  padding-right: 44px; /* space for emoji */
}

.publisher-emojis {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
}

.publisher-emojis i {
  cursor: pointer;
}
.publisher-emoji-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  cursor: pointer;
}
.publisher-emojis {
  z-index: 5;
}

.photo-options-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-options-popup.d-none {
  display: none !important;
}

.photo-options-popup-inner {
 
  max-width: 750px !important;
  
  background: white !important;
  border-radius: 12px;
  overflow: hidden;
   box-sizing: border-box;
}

#photo-options {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.photo-options-popup-footer {
  border-bottom: 0;
 
  text-align: right;
}

/* === Tumblr-style publisher fix === */

/* break the horizontal layout */
.publisher-message {
  display: block !important;
}

/* avatar + username row */
.publisher-message > img.publisher-avatar {
  display: inline-block;
  vertical-align: middle;
}

.publisher-message .publisher-username,
.publisher-message span {
  display: inline-block;
  vertical-align: middle;
  margin-left: 60px !important;
  font-weight: 600;
  
}

/* force textarea to next line */
.publisher-message .colored-text-wrapper {
  display: block !important;
  width: 100% !important;
  margin: 8px 0 0 0 !important;
  padding: 0 !important;
}

/* textarea starts from LEFT */
.publisher-message textarea {
  width: 100% !important;
  margin-left: 0 !important;
  padding: 10px 40px 10px 12px !important;
  box-sizing: border-box;
}


/* Increase publisher header height */
.publisher-header {
  min-height: 48px;         
  padding: 8px 0;            /* vertical space */
  display: flex;
  align-items: center;
  gap: 10px;
}



.publisher-header .publisher-username {
  margin-left: 60px;        /* flex gap handles spacing */
  line-height: 1;        /* prevents vertical bleed */
  font-weight: 600;
}
/* Remove forced 48px sizing ONLY for location tab */
#publisher-photo-box 
.publisher-tools-tab[data-tab="location"] 
.svg-container.main-icon {
  width: 30px !important;
  height: 30px  !important;
  max-width: 30px  !important;
  max-height: 30px !important;
  padding-top:10px!important;
}
.btn-light, .btn-light.disabled, .btn-light:disabled, .btn-light:not(:disabled):not(.disabled).active, .btn-light:not(:disabled):not(.disabled):active, .show>.btn-light.dropdown-toggle{
    margin-right:10px!important;
    margin-bottom:10px!important;
  
}
@media (max-width: 767px) {
  #modal.show .modal-dialog,
  #publisher-photo-wrapper,
  #publisher-photo-box {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  .photo-options-popup-footer {
    
    padding-top: 100px;
}
  .publisher-tools-tabs .row > li {
    margin-right: 55px !important;
}

}

/* 🔥 Normalize PRIVACY button to behave like POST button */
#publisher-photo-wrapper .publisher-footer #publisherPrivacyGroup {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* 🔥 ACTUAL PRIVACY BUTTON (this is the missing piece) */
#publisher-photo-wrapper .publisher-footer 
#publisherPrivacyGroup > button.btn {
  background-color: lightgray !important;
  color: black !important;

  width: 80px !important;
  height: 42px !important;

  border-radius: 12px !important;
  border: none !important;

  padding: 6px 6px !important;
  margin: 0 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  line-height: 1 !important;
  box-shadow: none !important;
}

.publisher-textarea-wrap {
  position: relative;
}

.publisher-textarea-wrap textarea {
  width: 100%;
  padding-right: 40px;   /* space for emoji */
}

.publisher-emoji-inside {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: 0.85;
}
#publisher-photo-wrapper .publisher-avatar{
left:0px !important;
}
.publisher-emoji-inside:hover {
  opacity: 1;
  transform: scale(1.1);
}
.publisher-textarea-wrap {
  position: relative;
}

/* right side icon group */


/* force icon size */
.inside-tool-icon {
  width: 22px !important;
  height: 22px !important;
  cursor: pointer;
  opacity: 0.9;
}

.inside-tool-icon:hover {
  transform: scale(1.15);
}

/* make room inside textarea */
.publisher-textarea-wrap textarea {
  padding-right: 95px !important;
}

.publisher-title {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 3px solid #e4e6eb;
  
}
.photo-meta-preview {
  border-top: 1px solid #eee;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Tag badge */
.meta-badge {
  background: #f1f3f5;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-badge i {
  font-size: 12px;
  opacity: 0.7;
}

.edit-photo-options {
  margin-top: 10px;
  font-size: 10px;
  color: #0d6efd;
  cursor: pointer;
  display: inline-block;
        margin-left: 400px;  
}
/* Mobile */
@media (max-width: 767px) {
  .edit-photo-options {
   margin-left: 200px !important;  
  }
}

.edit-photo-options:hover {
  text-decoration: underline;
}
/* ===== Right-side tool icons ===== */
.publisher-inside-tools {
  position: static;          /* 🔑 remove absolute positioning */
  margin-top: 8px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ===== Tool icons ===== */
.publisher-inside-tools .inside-tool-icon {
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: 0.9;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.publisher-inside-tools .inside-tool-icon:hover {
  transform: scale(1.15);
}

/* ===== Textarea (THIS is the key) ===== */
.publisher-textarea-wrap textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 170px 10px 12px; /* 🔑 right padding = icon space */
  box-sizing: border-box;
  background-color: #d3d4d5;
  border-radius: 10px;
}
.meta-badge {
  background: #f1f3f5;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;

  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-remove {
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  opacity: 0.6;
}

.meta-remove:hover {
  opacity: 1;
  color: #dc3545;
}
