body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Remove blue highlight on click/tap */
a, button, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: none;
}

button:focus-visible, a:focus-visible {
    outline: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a, .btn { transition: all 0.2s ease; }

.btn {
    padding: 10px 18px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border-radius: 20px;
}

/* Bootstrap Overrides */
.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-hover);
  --bs-btn-hover-border-color: var(--primary-hover);
  --bs-btn-active-bg: var(--primary-hover);
  --bs-btn-active-border-color: var(--primary-hover);
  --bs-btn-focus-shadow-rgb: none;
}

.btn-success {
  --bs-btn-active-bg: var(--success-hover);
  --bs-btn-active-border-color: var(--success-hover);
  --bs-btn-focus-shadow-rgb: none;
}

.btn:focus, .btn:active, .btn:focus:active {
  box-shadow: none !important;
}

.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }

.btn-outline-secondary {
  --bs-btn-border-color: var(--btn-border-color);
  --bs-btn-hover-bg: var(--bg-lighter);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-hover-color: var(--primary);
}

.btn-outline-primary {
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--bg-lighter);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-hover-color: var(--primary);
}

.dropdown-menu { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.border-bottom {
    --bs-border-color: var(--border-color);
}

/* Menu */
.menu-nav .nav-link { color: var(--secondary); font-size: 14px; font-weight: 500; }
.menu-nav .nav-link:hover { color: var(--primary); }

/* Section Titles */
.section-title { font-size: 32px; font-weight: 400; color: var(--secondary); }
@media (max-width: 768px) {
    .section-title { font-weight: 700; font-size: 18px;}
}
.section-desc { font-size: 12px; font-weight: 500; color: var(--text-muted); }

/* Text Colors */
.text-primary-custom { color: var(--primary); }
.text-secondary-custom { color: var(--secondary); }

/* Location List */
.location-list { font-size: 12px; color: var(--text-light); }
.location-list span { display: inline-flex; align-items: center; gap: 4px; }
.location-list span:not(:first-child)::before { content: ""; width: 3px; height: 3px; background: var(--divider); border-radius: 100%; }
.location-icon { font-size: 14px; color: var(--primary); }

/* ========================================
   COMMON FORM ELEMENTS
   ======================================== */

/* Checkbox - Custom styled checkbox
   Supports two structures:
   1. .custom-checkbox with .check-box + .check-text
   2. .checkbox-label with input + label + span (legacy) */
.custom-checkbox,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.custom-checkbox input[type="checkbox"],
.checkbox-label input[type="checkbox"] {
    position: absolute;
    left: -9999px;
}

.custom-checkbox .check-box,
.checkbox-label label {
    display: block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 4px;
    border: 2px solid var(--secondary);
    background: var(--white);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.custom-checkbox input[type="checkbox"]:checked + .check-box,
.checkbox-label input[type="checkbox"]:checked + label {
    background: var(--secondary);
}

.custom-checkbox input[type="checkbox"]:checked + .check-box::after,
.checkbox-label input[type="checkbox"]:checked + label::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox .check-text,
.checkbox-label span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Checkbox - Small variant (18px) */
.checkbox-label-sm label,
.checkbox-label.checkbox-sm label {
    width: 18px;
    height: 18px;
    min-width: 18px;
}

.checkbox-label-sm input[type="checkbox"]:checked + label::after,
.checkbox-label.checkbox-sm input[type="checkbox"]:checked + label::after {
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
}

.checkbox-label-sm span,
.checkbox-label.checkbox-sm span {
    font-size: 12px;
}

/* Radio Button - Custom styled radio */
.custom-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.custom-radio input[type="radio"] {
    display: none;
}

.custom-radio .radio-box {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 4px;
    border: 2px solid var(--secondary);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.custom-radio input[type="radio"]:checked + .radio-box {
    background: var(--secondary);
}

.custom-radio input[type="radio"]:checked + .radio-box::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--white);
    font-size: 12px;
}

.custom-radio .radio-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Input Wrapper - Form field container
   Supports: .input-box and .input-wrapper */
.input-box,
.input-wrapper {
    background: var(--bg-light);
    border: 1px solid var(--btn-border-color);
    border-radius: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.input-box:focus-within,
.input-wrapper:focus-within {
    border-color: var(--secondary);
    background: var(--white);
}

.input-box.error,
.input-wrapper.error {
    border-color: var(--error);
    background: var(--error-light);
}

.input-box .input-label,
.input-wrapper .input-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.input-box .input-field,
.input-wrapper .input-field {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    width: 100%;
    padding: 0;
}

.input-box .input-field::placeholder,
.input-wrapper .input-field::placeholder {
    color: var(--text-placeholder);
    font-weight: 400;
}

.input-box.error .input-label,
.input-box.error .input-field,
.input-wrapper.error .input-label,
.input-wrapper.error .input-field {
    color: var(--error);
}

/* ========================================
   COMMON UI COMPONENTS
   ======================================== */

/* Tag/Badge - Pill shaped clickable tag */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--white);
    border: 1px solid var(--btn-border-color);
    border-radius: 100px;
    padding: 10px 22px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.tag:hover {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.tag.active {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.tag.tag-sm {
    font-size: 12px;
    padding: 8px 12px;
}

.tag .tag-remove {
    font-size: 10px;
    color: var(--text-muted);
    cursor: pointer;
}

.tag .tag-remove:hover {
    color: var(--primary);
}

/* Close Button */
.close-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-placeholder);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: var(--primary);
}

/* ========================================
   COMMON OVERLAY & POPUP
   ======================================== */

/* Modal/Popup Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
    z-index: 9998;
    display: none;
}

.modal-overlay.active {
    display: block;
}

/* Bottom Sheet - Slide up popup from bottom */
.bottom-sheet {
    background: var(--white);
    position: fixed;
    bottom: -100vh;
    left: 0;
    width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 16px;
    transition: all 0.4s ease;
    z-index: 9999;
    overflow-y: auto;
}

.bottom-sheet.active {
    bottom: 0;
}

.bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--btn-border-color);
}

.bottom-sheet-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Side Panel - Full screen slide from right */
.side-panel {
    position: fixed;
    right: -100vw;
    top: 0;
    width: 100%;
    height: 100%;
    transition: all 0.4s ease;
    display: flex;
    z-index: 99999;
    background: var(--white);
    flex-direction: column;
    overflow: hidden;
}

.side-panel.active {
    right: 0;
}

.side-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid var(--btn-border-color);
}

.side-panel-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
}

.side-panel-body {
    flex: 1;
    overflow-y: auto;
}

.side-panel-footer {
    padding: 16px;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

/* Full Screen Overlay - For mobile widgets */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 999999;
    display: none;
    flex-direction: column;
}

.fullscreen-overlay.active {
    display: flex;
}

/* ========================================
   COMMON DROPDOWN
   ======================================== */

/* Dropdown Menu */
.dropdown-box {
    position: absolute;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 30px 74px 0 rgba(67, 12, 12, 0.14);
    display: none;
    z-index: 1050;
}

.dropdown-box.active {
    display: block;
}

.dropdown-box .dropdown-item {
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-box .dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-box .dropdown-item:hover {
    background: var(--bg-light);
}

.dropdown-box .dropdown-item .check-icon {
    display: none;
    color: var(--success);
}

.dropdown-box .dropdown-item.active {
    color: var(--success);
}

.dropdown-box .dropdown-item.active .check-icon {
    display: block;
}

/* ========================================
   COMMON LIST ITEMS
   ======================================== */

/* List Item - Clickable list row with border */
.list-item {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    border-bottom: 1px solid var(--bg-light);
    cursor: pointer;
    transition: background 0.2s ease;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: var(--bg-light);
}

.list-item .list-item-content {
    flex: 1;
}

.list-item .list-item-icon {
    color: var(--divider);
    font-size: 14px;
}

/* ========================================
   BODY STATE CLASSES
   ======================================== */

/* Prevent scroll when modal/overlay is open */
body.body-fixed {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
}

/* Hide floating elements when overlays are active */
body.body-fixed #floating-contact-buttons,
body.body-fixed .back-to-top {
    display: none !important;
}

/* Fullpage Loading */
#loading {
    position: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99999;
}

#loading-image {
    z-index: 100000;
    width: 6%;
}

@media screen and (max-width: 768px) {
    #loading-image {
        width: 20%;
    }
}

/* ========================================
   COMMON SEARCH BOX
   ======================================== */

/* Search Box - Input with icon */
.search-box {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--btn-border-color);
    background: var(--bg-light);
    gap: 8px;
}

.search-box:focus-within {
    background: var(--white);
    border-color: var(--secondary);
}

.search-box input {
    border: none;
    outline: none;
    background: none;
    font-size: 14px;
    color: var(--text-dark);
    width: 100%;
}

.search-box input::placeholder {
    color: var(--text-placeholder);
}

.search-box .search-icon {
    color: var(--text-placeholder);
    font-size: 16px;
}

/* ========================================
   COMMON COUNTER
   ======================================== */

/* Counter - +/- buttons with value */
.counter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.counter-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.counter-btn:hover {
    background: var(--primary-hover);
}

.counter-btn i {
    font-size: 14px;
    color: var(--white);
}

.counter-value {
    min-width: 54px;
    text-align: center;
    font-size: 32px;
    font-weight: 500;
    color: var(--text-dark);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Text truncation */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hide scrollbar */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
