/* Professional slider/carousel controls (brand-themed) */
.tns-controls button,
.carousel-control-prev,
.carousel-control-next {
    background: var(--brand-primary);
    color: var(--brand-on-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(var(--brand-primary-rgb), 0.22);
}

.tns-controls button:hover,
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--brand-primary-dk-10);
    color: var(--brand-on-primary);
}

.tns-controls button:focus-visible,
.carousel-control-prev:focus-visible,
.carousel-control-next:focus-visible {
    outline: 3px solid var(--brand-primary-dk-30);
    outline-offset: 2px;
}

/* Position adjustments for carousel arrows */
.carousel-control-prev,
.carousel-control-next { opacity: 0.95; }
.carousel-control-prev:hover,
.carousel-control-next:hover { opacity: 1; }
/* UI/UX Enhancements - Social Icons & Interactive Elements */
/* Spacing & layout polish */
.section,
.section-properties {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.property-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.property-item .img img {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.property-item .property-content {
    padding: 1rem 1.05rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-item .price {
    font-weight: 600;
}

.property-item .specs {
    gap: .75rem;
}

.property-item .badge {
    font-size: .65rem;
    letter-spacing: .5px;
}

.property-item .icon-link {
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.property-item .icon-link:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

/* Consistent gaps for icon rows */
.property-item .d-flex.gap-3,
.property-item .d-flex.gap-2 {
    margin-top: .35rem;
}

/* Dropdown caret rotation on existing pseudo-element */
.site-nav .site-navigation .site-menu .has-children>a:before {
    transition: transform .3s ease;
}

.site-nav .site-navigation .site-menu .has-children.open>a:before {
    transform: rotate(180deg);
}

/* Mobile menu spacing */
#site-mobile-menu .site-mobile-menu-body ul {
    padding: .75rem 0;
}

#site-mobile-menu .site-mobile-menu-body li {
    margin: .15rem 0;
}

#site-mobile-menu .site-mobile-menu-body a {
    padding: .55rem 1rem;
    display: block;
}

/* Social Icon Hover Effects */
.social a,
a[class*="icon-"] {
    transition: all 0.3s ease;
}

.social a:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

/* Icon-only Links Styling */
a[data-bs-toggle="tooltip"],
a[title] {
    text-decoration: none;
    transition: all 0.3s ease;
}

a[data-bs-toggle="tooltip"]:hover,
a[title]:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Icon link circles for property cards */
.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
}

.icon-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    text-decoration: none;
}

/* Smaller icon links for compact cards */
.icon-link-sm {
    width: 2rem;
    height: 2rem;
}

.icon-link-sm:hover {
    transform: translateY(-1px);
}

/* Copy Icon Styling */
a[data-copy-id] {
    cursor: pointer;
    transition: all 0.2s ease;
}

a[data-copy-id]:hover {
    color: var(--bs-primary) !important;
    transform: scale(1.15);
}

/* Brand color circle wrappers (apply to <a>) */
.icon-link {
    color: #fff;
}

.icon-link-whatsapp {
    background-color: #25D366;
    color: #fff;
}

.icon-link-telegram {
    background-color: #0088cc;
    color: #fff;
}

.icon-link-instagram {
    background-color: #E4405F;
    color: #fff;
}

.icon-link-facebook {
    background-color: #1877F2;
    color: #fff;
}

.icon-link-twitter {
    background-color: #1DA1F2;
    color: #fff;
}

.icon-link-linkedin {
    background-color: #0A66C2;
    color: #fff;
}

.icon-link-email {
    background-color: #EA4335;
    color: #fff;
}

/* Remove previous glyph color overrides to allow contrast (glyph inherits white from parent) */
/* If needed, explicit glyph recolor: span.icon-whatsapp { color:#fff; } */

/* Text color utilities for social icons */
.text-whatsapp {
    color: #25D366 !important;
}

.text-telegram {
    color: #0088cc !important;
}

/* Enhanced Contact Buttons in partials */
.contact-channels-enhanced .btn {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.contact-channels-enhanced .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Share Icons Container */
.share-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.share-icons a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.share-icons a:hover {
    transform: translateY(-3px);
}

/* Booking Channel Icons */
#booking-channels-container a {
    transition: all 0.3s ease;
}

#booking-channels-container a:hover {
    transform: scale(1.15);
}

/* Admin Copy Icons */
.admin-main a[data-copy-id] {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem;
}

/* Toast Notifications Enhancement */
.alert.position-fixed {
    animation: slideInDown 0.3s ease, slideOutUp 0.3s ease 1.7s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

@keyframes slideInDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes slideOutUp {
    from {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    to {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
}

/* Quick Actions Section */
.quick-actions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
}

.quick-actions a {
    transition: all 0.3s ease;
}

.quick-actions a:hover {
    transform: scale(1.2);
}

/* Dark mode adjustments */
body.dark .quick-actions {
    background: #1a1a2e;
}

/* Tooltip customization */
.tooltip-inner {
    background-color: #2c3e50;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #2c3e50;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #2c3e50;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .share-icons a {
        font-size: 1.25rem;
    }

    #booking-channels-container {
        justify-content: center;
    }
}

/* Focus states for accessibility */
a[data-bs-toggle="tooltip"]:focus,
a[data-copy-id]:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Icon link animations */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.icon-link-pulse:hover {
    animation: pulse 0.6s ease-in-out;
}

/* Removed duplicate caret span; keep pseudo-element visible */

/* Home hero CTA spacing refinement */
.home-hero-cta {
    margin-top: 1.25rem;
    margin-bottom: .5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.home-hero-cta:hover {
    transform: translateY(-2px);
}

/* Tables and buttons polish */
.table-custom {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table-custom thead th {
    background: transparent;
    border-bottom: 0;
    color: var(--bs-gray-700);
    font-weight: 600;
    padding: .75rem 1rem;
}

.table-custom tbody tr {
    background: #fff;
    box-shadow: 0 6px 18px rgba(11, 28, 62, 0.04);
    border-radius: 8px;
}

.table-custom td,
.table-custom th {
    vertical-align: middle;
    border: 0;
    padding: .75rem 1rem;
}

.btn-sm-custom {
    padding: .35rem .6rem;
    font-size: .85rem;
    border-radius: .5rem;
    transition: transform .12s ease, box-shadow .12s ease;
}

.btn-sm-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Admin-specific responsive tweaks for menus */
@media (max-width: 992px) {
    .admin-brand .brand-title {
        display: none;
    }

    .admin-brand .admin-logo {
        max-height: 36px;
    }
}

/* Button and modal polish (global) */
.btn,
.btn-primary,
.btn-outline-primary {
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb, 13, 110, 253), .14);
    border-radius: .4rem;
}

.modal .modal-content {
    transition: transform .18s ease, opacity .18s ease;
}

/* Ensure tooltips use brand contrast */
.tooltip-inner {
    background-color: var(--brand-primary);
    color: var(--brand-contrast, #fff);
}

/* Brand badge utility - centralize badge color usage */
.badge-brand {
    background: var(--brand-primary) !important;
    color: var(--brand-contrast, #fff) !important;
    border-radius: .375rem;
    padding: .25rem .45rem;
    font-weight: 600;
    display: inline-block;
}

.badge-brand:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb, 13, 110, 253), .14);
}

/* Ensure admin-specific table rows adopt brand-aware backgrounds */
.admin-main .table-custom tbody tr {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.98));
}

/* Compact admin utilities */
.admin-quick-actions .btn {
    padding: .4rem .6rem;
    border-radius: .5rem;
}

/* High-contrast focus ring using CSS variable for accessibility */
:focus {
    outline: 3px solid rgba(var(--brand-primary-rgb, 13, 110, 253), 0.35);
    outline-offset: 2px;
}