/* ============================================
   SN Location Section Widget
   ============================================ */

.sn-location-section {
    background-color: #111111;
    padding: clamp(48px, 6vw, 100px) 0;
    position: relative;
}

/* Heading */
.sn-location-heading-wrap {
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.sn-location-heading-wrap .split-text-line {
    text-align: center;
}

.sn-location-heading {
    line-height: 1.1;
    margin: 0 0 clamp(20px, 2.5vw, 48px) 0;
    letter-spacing: -0.25px;
}

.sn-location-heading span {
    display: block;
}

/* Grid Wrapper */
.sn-location-grid-wrap {
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* =============================================
   GRID — !important beats Elementor post CSS
   ============================================= */
.sn-location-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}

/* Card */
.sn-location-item {
    padding: 36px;
    border-radius: 24px;
    border: 1px solid rgb(62, 62, 61);
    background: transparent;
    transition: border-color 0.3s ease;
    min-width: 0; /* prevents overflow in grid */
}

.sn-location-item:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.sn-location-item.sn-location-hidden {
    display: none !important;
}

/* Card Inner */
.sn-location-card-inner {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px;
    height: 100%;
}

/* Card Left */
.sn-location-card-left {
    width: 60% !important;
    flex-shrink: 0;
    min-width: 0;
}

/* Card Right */
.sn-location-card-right {
    width: 40% !important;
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.sn-location-card-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 12px;
}

/* Country */
.sn-location-country {
    font-size: clamp(16px, 1.5vw, 22px);
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* Address */
.sn-location-address {
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 500;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* Phone */
.sn-location-phone-wrap {
    display: block;
    margin-top: auto;
}

.sn-location-phone {
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    display: inline;
    background-image: linear-gradient(#ffffff, #ffffff);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 1px;
    transition: background-size 0.35s ease;
}

.sn-location-phone:hover {
    background-size: 0% 1px;
}

/* Image */
.sn-location-figure {
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sn-location-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Button Wrapper */
.sn-location-btn-wrap {
    text-align: center;
    margin-top: clamp(36px, 2.5vw, 48px);
    padding: 0 24px;
}

/* Button */
.sn-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 600;
    color: #ffffff;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 3rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-family: inherit;
    line-height: 1.26;
}

.sn-location-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

.sn-btn-text-original {
    display: flex;
    overflow: hidden;
}

.sn-btn-text-original span,
.sn-btn-text-hover span {
    display: inline-block;
    transition: transform 0.2s ease;
}

.sn-btn-text-hover {
    display: flex;
    position: absolute;
    overflow: hidden;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sn-btn-text-hover span {
    transform: translateY(-1.3em);
}

.sn-location-btn:hover .sn-btn-text-original span {
    transform: translateY(1.3em);
}

.sn-location-btn:hover .sn-btn-text-hover span {
    transform: translateY(0);
}

.sn-btn-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.sn-location-btn.is-expanded .sn-btn-icon {
    transform: rotate(180deg);
}

/* ============================================
   TABLET — max 1024px
   ============================================ */
@media (max-width: 1024px) {
    .sn-location-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .sn-location-item {
        padding: 24px;
    }

    .sn-location-img {
        height: 100px;
    }
}

/* ============================================
   MOBILE — max 768px : 1 column, side by side
   ============================================ */
@media (max-width: 768px) {

    .sn-location-heading {
        font-size: clamp(22px, 6.5vw, 32px) !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
    }
    .sn-location-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .sn-location-heading-wrap,
    .sn-location-grid-wrap {
        padding: 0 16px;
    }

    .sn-location-item {
        padding: 20px;
    }

    /* Keep side-by-side on 768px */
    .sn-location-card-inner {
        flex-direction: row !important;
    }

    .sn-location-card-left {
        width: 60% !important;
    }

    .sn-location-card-right {
        width: 40% !important;
    }

    .sn-location-img {
        height: 90px;
    }
}

/* ============================================
   SMALL MOBILE — max 480px : stack vertically
   ============================================ */
@media (max-width: 319px) {
    .sn-location-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .sn-location-item {
        padding: 16px;
    }

    /* Stack image below text on very small screens */
    .sn-location-card-inner {
        flex-direction: column !important;
        gap: 16px;
    }

    .sn-location-card-left,
    .sn-location-card-right {
        width: 100% !important;
    }

    .sn-location-img {
        height: 160px;
        margin-top: 0;
    }

    .sn-location-country {
        font-size: 18px;
    }

    .sn-location-address,
    .sn-location-phone {
        font-size: 14px;
    }

    .sn-location-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
}

/* ── Mobile touch target fixes ── */
@media (max-width: 768px) {
    .sn-location-phone {
        display: inline-flex !important;
        align-items: center !important;
        min-height: 44px !important;
        padding: 4px 0 !important;
    }
    .sn-location-btn {
        min-height: 44px !important;
        font-size: 14px !important;
        padding: 14px 28px !important;
    }
    .sn-location-btn-wrap {
        padding: 0 16px;
    }
}
