/* Shared UI Components */

/* SVG Icons */

.budi-svg-icon {
   height: 1em;
   width: auto;
   vertical-align: -0.125em;
}

/* Theme Buttons */

.budi-theme-btn {
   padding: 8px 16px;
   gap: 8px;
   background-color: var(--primary);
   border-radius: 8px;
   color: #fff;
   border: 1px solid var(--primary);
   transition: all 0.3s;
}

.budi-theme-btn__icon {
   width: 20px;
   aspect-ratio: 1 / 1;
}

.budi-theme-btn:hover {
   background-color: #ec3195;
   border-color: #ec3195;
}

.budi-theme-btn--bordered {
   background-color: transparent;
   color: var(--primary);
}

.budi-theme-btn--bordered:hover {
   background-color: var(--primary);
   border-color: var(--primary);
   color: #fff;
}

.budi-theme-btn--dark {
   background-color: transparent;
   color: var(--dark);
   border-color: var(--dark);
}

.budi-theme-btn--dark:hover {
   background-color: var(--dark);
   color: #fff;
   border-color: var(--dark);
}

.budi-theme-btn--secondary {
   background-color: #f6eef2;
   border-color: #f6eef2;
   color: var(--primary);
}

.budi-theme-btn--secondary:hover {
   background-color: var(--primary);
   color: #fff;
}

.budi-theme-btn--transparent {
   background-color: transparent;
   color: var(--primary);
   border-color: transparent;
}

.budi-theme-btn--transparent:hover {
   background-color: #f6eef2;
   border-color: #f6eef2;
}

.budi-theme-btn--pink-100 {
   background-color: var(--pink-100);
   border-color: var(--pink-100);
   color: var(--neutral-black);
}

.budi-theme-btn--pink-100:hover {
   background-color: #e7e7e7;
   border-color: #e7e7e7;
}

/* Slider Navigation */

.budi-slider-nav__btn {
   width: 48px;
   height: 48px;
   background-color: transparent;
   border: 1px solid var(--neutral-400);
   color: var(--dark);
}

.budi-slider-nav__btn:hover {
   border-color: var(--dark);
}

/* Horizontal Slider */
.budi-horizontal-slider__container {
   overflow: auto;
   scroll-behavior: smooth;
   -webkit-overflow-scrolling: touch;
   padding-bottom: 6px;
}

.budi-horizontal-slider__container::-webkit-scrollbar {
   height: 6px;
   width: 6px;
   background: transparent;
}

.budi-horizontal-slider__container::-webkit-scrollbar-track {
   background: transparent;
}

.budi-horizontal-slider__container::-webkit-scrollbar-thumb {
   background: transparent;
   transition: background-color 0.3s ease;
}

.budi-horizontal-slider__container::-webkit-scrollbar-thumb:hover {
   background: transparent;
}

.budi-horizontal-slider__container::-webkit-scrollbar-thumb:horizontal {
   background-color: var(--neutral-300);
   border-radius: 8px;
}


.budi-horizontal-slider__container:hover::-webkit-scrollbar-thumb:horizontal {
   background-color: var(--neutral-500);
}

.budi-horizontal-slider__wrapper {
   gap: 24px;
   display: flex;
}

.budi-horizontal-slider__wrapper--sm {
   gap: 20px;
}

/* Modals */

.budi-generic-modal--wide .modal-dialog {
   max-width: 960px;
}



/* Forms */

.budi-checkbox__group {
   gap: 12px;
}

.budi-checkbox {
   color: var(--neutral-black);
   cursor: pointer;
}

.budi-checkbox__icon {
   width: 16px;
   height: 16px;
   border: 1px solid rgb(0 0 0 / 15%);
   font-size: 0;
   color: #fff;
   transition: all 0.3s;
}

.budi-checkbox input:checked~.budi-checkbox__icon {
   background-color: var(--primary);
   border-color: var(--primary);
   font-size: 10px;
}

.budi-checkbox--radio input:checked~.budi-checkbox__icon {
   background-color: #fff;
   border-width: 4px;
}

.budi-dropdown .dropdown-menu {
   min-width: 367px;
   padding: 16px 20px;
   border-radius: 8px;
   box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.15);
   border: 0;
   border-bottom: 1px solid var(--theme-border);
}


/* Auction Object Filters */

.budi-filter-btn {
   border: 1px solid var(--neutral-400);
   padding: 8px 16px;
   background-color: transparent;
   gap: 8px;
   line-height: 1.5;
   color: var(--dark);
}

.budi-filter-btn--active {
   background-color: var(--blue-800);
   border-color: var(--blue-800);
   color: #fff;
}

.budi-filter-btn--active .budi-svg-icon {
   filter: invert(1);
}

.budi-filter-btn:hover,
.budi-filter-btn[aria-expanded="true"] {
   border-color: var(--dark);
}

/* Tags */

.budi-tag {
   font-size: 14px;
   line-height: 1.5;
   padding: 3px 11px;
   border: 1px solid var(--neutral-500);
   color: var(--neutral-black);
   transition: all 0.3s;
}

.budi-tag:hover {
   background-color: var(--neutral-500);
}

/* Content Blocks */

.budi-content-block {
   border: 1px solid var(--neutral-400);
}

.budi-content-block__subtitle {
   color: var(--neutral-800);
}

.budi-content-block__desc p:last-child {
   margin-bottom: 0;
}

.budi-content-block__title small {
   font-size: 14px;
}

/* Tables */

.budi-theme-table__container {
   padding: 12px 0;
   border: 1px solid var(--neutral-400);
}

.budi-theme-table tr th {
   font-size: 12px;
   line-height: 1.5;
   padding: 0 4px 4px;
}

.budi-theme-table tr th:first-child {
   padding-left: 12px;
}

.budi-theme-table tr th:last-child {
   padding-right: 12px;
}

.budi-theme-table tr td {
   padding: 8px 4px;
   font-size: 14px;
   line-height: 1.5;
}

.budi-theme-table tr:nth-child(2n + 1) td {
   background-color: var(--pink-100);
}

.budi-theme-table tr td:first-child {
   padding-left: 12px;
}

.budi-theme-table tr td:last-child {
   padding-right: 12px;
}

.budi-theme-table__container .budi-show-more-btn {
   font-size: 14px;
}

/* Accordions */

.budi-theme-accordion .accordion-item {
   border: 0;
   border-bottom: 1px solid var(--theme-border);
}

.budi-theme-accordion .accordion-button {
   padding: 16px 0;
   color: var(--neutral-black);
   box-shadow: none;
   background-color: transparent;
}

.budi-theme-accordion .accordion-body {
   padding: 0;
   padding-bottom: 16px;
}

/* Page Header */


/* auction detail section start */
.budi-hero-header {
   background-color: #f9f6f9;
   padding-block: 48px;
}

.budi-hero-header__wrapper {
   gap: 32px;
}

.budi-hero-header__box {
   width: 100%;
   max-width: 652px;
   box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.08);
}

.budi-hero-header--background {
   background-size: cover;
   background-position: center center;

   color: white;
}

.budi-hero-header--background .budi-page-content-header__subtitle {
   color: white;
}

.budi-hero-header--background .budi-page-content-header__title {
   color: white;
}

/* Image Set */
.budi-image-set {
   display: grid;
   grid-template-columns: 2fr 1fr;
   grid-template-rows: 1fr 1fr;
   gap: 2px;
   width: 100%;
   aspect-ratio: 4 / 3;
}

.budi-image-set__left {
   grid-column: 1 / 2;
   grid-row: 1 / 3;
}

.budi-image-set__top-right {
   grid-column: 2 / 3;
   grid-row: 1 / 2;
}

.budi-image-set__bottom-right {
   grid-column: 2 / 3;
   grid-row: 2 / 3;
}

.budi-image-set__right-tall {
   grid-column: 2 / 3;
   grid-row: 1 / 3;
}

.budi-image-set__img,
.budi-image-set__img-single {
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center;
   display: block;
}

.budi-image-set__placeholder {
   width: 100%;
   height: 100%;
   background: #e5e7eb;
}

/* Large devices (less than 1200px) */
@media (max-width: 1199px) {
   .budi-hero-header__box {
      max-width: 100%;
   }

   .budi-hero-header {
      padding-block: 34px 20px;
   }
}

/* Utility Classes */

.budi-show-more-btn {
   max-width: 332px;
}

.budi-show-more-btn.style-2 {
   color: var(--dark);
}

.budi-show-more-btn.style-2:hover {
   color: var(--primary);
}

.budi-readmore-btn {
   color: var(--primary);
}

.budi-readmore-btn:hover {
   text-decoration: underline;
}

.budi-close-btn {
   font-size: 14px;
   line-height: 1.5;
   color: var(--danger);
}


.budi-letter-icon {
   width: 12px;
}

.budi-play-icon img {
   width: 118px;
}

/* Notifications (alert-like toasts) */
.toast.budi-notification-toast {
   background: transparent !important;
   border: 0 !important;
   padding: 0;
   box-shadow: none;
}

.budi-toast-container {
   padding: 12px;
}

.budi-notification {
   position: relative;
   display: flex;
   gap: 12px;
   align-items: flex-start;
   border-radius: 8px;
   padding: 12px 14px;
   box-shadow: 0 8px 16px rgba(0, 0, 0, .15);
}

.budi-notification.alert {
   margin-bottom: 8px;
}

.budi-notification .flex-grow-1 {
   min-width: 0;
}

.budi-notification__img {
   width: 56px;
   height: 56px;
   border-radius: 8px;
   object-fit: cover;
   flex-shrink: 0;
   margin-right: 12px;
}

.budi-notification__title {
   font-weight: 700;
   margin: 0 24px 2px 0;
   color: inherit;
   display: block;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.budi-notification__content {
   color: inherit;
}

.budi-notification__link {
   text-decoration: underline;
}

.budi-notification__close {
   position: absolute;
   right: 8px;
   top: 8px;
}

@media (max-width: 576px) {
   .budi-toast-container {
      padding: 8px;
   }

   .budi-notification {
      padding: 10px 12px;
      gap: 10px;
   }

   .budi-notification__img {
      width: 40px;
      height: 40px;
      border-radius: 6px;
      margin-right: 10px;
   }

   .budi-notification__title {
      font-size: 14px;
      margin-right: 22px;
   }

   .budi-notification__content,
   .budi-notification__link {
      font-size: 13px;
   }

   .budi-toast-container .toast {
      margin-top: 6px;
   }
}

/* Video Embed */
.budi-video__wrapper {
   position: relative;
   padding-block: 24px;
}

.budi-video__container {
   width: 100%;
   max-width: 960px;
   aspect-ratio: 16 / 9;
   background: #000;
   border-radius: 12px;
   overflow: hidden;
}

.budi-video__iframe {
   width: 100%;
   height: 100%;
   border: 0;
}

/* Image wrapper with bottom-left download icon */
.budi-image__wrapper {
   position: relative;
   display: block;
}

.budi-image__download {
   position: absolute;
   right: 8px;
   bottom: 8px;
   background: rgba(0, 0, 0, 0.55);
   border-radius: 6px;
   padding: 6px;
   line-height: 0;
   color: #fff;
   text-decoration: none;
   z-index: 1;
}

.budi-image__download .budi-svg-icon {
   height: 18px;
   filter: invert(1);
}

.budi-image__download:hover {
   background: rgba(0, 0, 0, 0.7);
}

/* Properties list styles moved to dedicated file: /static/css/components/budi-properties-list.css */

/* Responsive Styles for Components */

@media (max-width: 1199px) {
   .budi-theme-btn {
      padding: 6px 12px;
   }

   .budi-horizontal-slider__wrapper {
      gap: 20px;
   }

   .budi-horizontal-slider__wrapper--xs {
      gap: 14px;
   }

   .budi-horizontal-slider__wrapper--sm {
      gap: 16px;
   }

   .budi-horizontal-slider__wrapper--md {
      gap: 20px;
   }

   .budi-horizontal-slider__wrapper--lg {
      gap: 30px;
   }
}

@media (max-width: 767px) {
   .budi-filter-btn {
      font-size: 14px;
   }

   .budi-horizontal-slider__wrapper {
      gap: 8px;
   }

   .budi-horizontal-slider__wrapper--xs {
      gap: 8px;
   }

   .budi-horizontal-slider__wrapper--sm {
      gap: 8px;
   }

   .budi-horizontal-slider__wrapper--md {
      gap: 8px;
   }

   .budi-horizontal-slider__wrapper--lg {
      gap: 8px;
   }

   .budi-slider-nav__btn {
      width: 38px;
      height: 38px;
   }
}