/* ========================================================
   HOTEL MINI CITY – CONTACT.CSS  (dark modern redesign)
   ======================================================== */

/* ── Contact section ── */
.ct-section {
    padding: clamp(64px, 9vw, 112px) 0 clamp(72px, 10vw, 120px);
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, rgba(245, 237, 228, 0.55) 0%, rgba(250, 247, 244, 0.5) 50%, rgba(237, 227, 219, 0.55) 100%), url(/images/hotelcontactbg.webp);
    background-size: cover;
    background-position: center left;
}
/* Decorative background glow orbs */
.ct-section::before,
.ct-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.ct-section::before {
    width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(153,122,97,0.22) 0%, transparent 65%);
    top: -160px; left: -140px;
    animation: ctGlow1 9s ease-in-out infinite alternate;
}
.ct-section::after {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(201,160,122,0.18) 0%, transparent 65%);
    bottom: -80px; right: 8%;
    animation: ctGlow2 12s ease-in-out infinite alternate;
}
@keyframes ctGlow1 { to { transform: translate(50px, 40px) scale(1.15); } }
@keyframes ctGlow2 { to { transform: translate(-40px, -25px) scale(1.1); } }

/* ── Inner grid ── */
.ct-inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 56px);
    display: grid;
    grid-template-columns: 1fr 1.65fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
    position: relative;
    z-index: 1;
}

/* ── Left: info (lives on dark bg) ── */
.ct-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
    font-weight:900;
    padding: 0 50px;
    text-align:center;
}

/* Staggered entrance */
.ct-info > * {
    opacity: 0;
    transform: translateY(22px);
    animation: ctFadeUp 0.55s ease forwards;
}
.ct-info > *:nth-child(1) { animation-delay: 0.05s; }
.ct-info > *:nth-child(2) { animation-delay: 0.15s; }
.ct-info > *:nth-child(3) { animation-delay: 0.25s; }
.ct-info > *:nth-child(4) { animation-delay: 0.38s; }
.ct-info > *:nth-child(5) { animation-delay: 0.50s; }

@keyframes ctFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.ct-eyebrow {
    font-family: 'CaviarDreams', serif;
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #c9a07a;
    -webkit-text-stroke: 0.2px #c9a07a;
    margin: 0;
}

.ct-title {
    font-family: 'CaviarDreams', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: #3e2a1c;
    letter-spacing: 2px;
    text-transform: uppercase;
    -webkit-text-stroke: 0.4px #3e2a1c;
    line-height: 1.1;
    margin: 0;
}

.ct-sub {
    font-size: 0.9rem;
    color: #6b5a4e;
    line-height: 1.8;
    margin: 0;
}

.ct-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ct-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: transform 0.22s ease;
}
.ct-detail-item:hover { transform: translateX(5px); }

.ct-detail-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ede3db;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #997a61;
    flex-shrink: 0;
    margin-top: 2px;
    transition: background 0.22s, border-color 0.22s, transform 0.22s;
}
.ct-detail-item:hover .ct-detail-icon {
    background: rgba(201,160,122,0.12);
    border-color: rgba(201,160,122,0.4);
    transform: scale(1.1);
}

.ct-socials {
    display: flex;
    justify-content: center; /* horizontalno */
    align-items: center; /* vertikalno */
    text-align: center;
}

.ct-detail-label {
    font-family: 'CaviarDreams', serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c9a07a;
    -webkit-text-stroke: 0.15px #c9a07a;
    margin-bottom: 4px;
}

.ct-detail-value {
    font-size: 0.9rem;
    color: #3e2a1c;
    line-height: 1.6;
}
.ct-detail-value a {
    color: #3e2a1c;
    text-decoration: none;
    transition: color 0.2s;
}
.ct-detail-value a:hover { color: #c9a07a; }

.ct-socials { display: flex; flex-direction: column; gap: 12px; }

.ct-social-icons {
    display: flex;
    gap: 12px;
}

.ct-social-link {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ede3db;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.22s, background 0.22s, transform 0.22s;
}
.ct-social-link:hover {
    border-color: #997a61;
    background: #faf7f4;
    transform: translateY(-3px);
}
.ct-social-link img {
    width: 20px; height: 20px;
    object-fit: contain;
    filter: none;
    opacity: 0.85;
    transition: opacity 0.22s;
}
.ct-social-link:hover img { opacity: 1; }

/* ── Right: form card ── */
.ct-form-col {
    background-color: rgba(8,4,2,0.72);
    background-image: url(/images/contactbg.webp);
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 52px);
    box-shadow: 0 8px 56px rgba(0,0,0,0.55), 0 2px 10px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.12);
    opacity: 0;
    animation: ctSlideInRight 0.6s ease 0.2s forwards;
    transition: background 0.4s, box-shadow 0.4s;
}
@keyframes ctSlideInRight {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: translateX(0); }
}

.ct-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: opacity 0.28s, transform 0.28s;
}

.ct-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ct-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ct-label {
    font-family: 'CaviarDreams', serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    -webkit-text-stroke: 0.1px rgba(255,255,255,0.55);
}

.ct-input {
    font-family: 'CaviarDreams', serif;
    font-size: 0.92rem;
    font-weight: 900;
    color: #fff;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 13px 16px;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.ct-input:focus {
    border-color: rgba(201,160,122,0.85);
    background: rgba(255,255,255,0.11);
    box-shadow: 0 0 0 3px rgba(201,160,122,0.13);
}
.ct-input::placeholder { color: rgba(255,255,255,0.25); font-weight: 400; }

.ct-textarea {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
    line-height: 1.6;
}

.ct-select {
    cursor: pointer;
    color-scheme: dark;
}
.ct-select option {
    background: #1a0e07;
    color: #fff;
}

/* Service checkbox */
.ct-service-check-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 14px 16px;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}
.ct-service-check-row:hover { border-color: rgba(201,160,122,0.6); background: rgba(255,255,255,0.09); }
.ct-service-check-row input[type="checkbox"] { display: none; }

.ct-check-box {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 5px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
    background: transparent;
    margin-top: 1px;
}
.ct-service-check-row input:checked ~ .ct-check-box {
    background: #c9a07a;
    border-color: #c9a07a;
    transform: scale(1.1);
}
.ct-service-check-row input:checked ~ .ct-check-box::after {
    content: '';
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
    display: block;
}

.ct-check-text {
    font-size: 0.85rem;
    font-weight: 900;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}

.ct-service-select {
    display: none;
    animation: ctFadeIn 0.2s ease;
}
@keyframes ctFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ct-form-error {
    font-size: 0.82rem;
    color: #ff9a8b;
    min-height: 16px;
}

/* Submit button with shimmer */
.ct-submit {
    font-family: 'CaviarDreams', serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: rgba(201,160,122,0.14);
    color: #fff;
    border: 1.5px solid rgba(201,160,122,0.55);
    border-radius: 8px;
    padding: 16px 24px;
    cursor: pointer;
    -webkit-text-stroke: 0.2px #fff;
    transition: background 0.22s, transform 0.18s, box-shadow 0.22s, border-color 0.22s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.ct-submit::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.11), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}
.ct-submit:hover {
    background: #c9a07a;
    border-color: #c9a07a;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(201,160,122,0.35);
}
.ct-submit:hover::after { left: 150%; }
.ct-submit:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.ct-submit:disabled::after { display: none; }

.ct-submit-icon { animation: ctSpin 0.8s linear infinite; }
@keyframes ctSpin { to { transform: rotate(360deg); } }

/* form exit animation */
.ct-form--exit {
    animation: ctFormExit 0.28s ease forwards;
}
@keyframes ctFormExit {
    to { opacity: 0; transform: scale(0.97) translateY(8px); }
}

/* Result states */
.ct-result-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 48px 24px;
    text-align: center;
    min-height: 320px;
}

.ct-result--enter {
    animation: ctResultEnter 0.45s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes ctResultEnter {
    from { opacity: 0; transform: scale(0.88) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.ct-result-icon {
    width: 88px;
    height: 88px;
}
.ct-result-icon svg { width: 100%; height: 100%; }

/* animated circle */
.ct-circle {
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    animation: ctDrawCircle 0.55s ease 0.1s forwards;
}
@keyframes ctDrawCircle { to { stroke-dashoffset: 0; } }

/* animated checkmark */
.ct-check {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: ctDrawCheck 0.38s ease 0.6s forwards;
}
@keyframes ctDrawCheck { to { stroke-dashoffset: 0; } }

/* animated cross */
.ct-cross {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: ctDrawCheck 0.38s ease 0.6s forwards;
}

.ct-result-msg {
    font-family: 'CaviarDreams', serif;
    font-size: 1rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1.6;
    max-width: 340px;
    margin: 0;
    -webkit-text-stroke: 0.2px #fff;
}
.ct-result-msg--err { color: #ff9a8b; -webkit-text-stroke: 0.2px #ff9a8b; }

.ct-result-btn {
    font-family: 'CaviarDreams', serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.5);
    background: transparent;
    padding: 11px 24px;
    border-radius: 30px;
    cursor: pointer;
    -webkit-text-stroke: 0.15px #fff;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.ct-result-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.85);
    transform: translateY(-2px);
}
.ct-result-btn--err { color: #ff9a8b; border-color: rgba(255,100,80,0.5); -webkit-text-stroke: 0.15px #ff9a8b; }
.ct-result-btn--err:hover { background: rgba(255,100,80,0.15); border-color: #ff9a8b; }

/* ── Form-col success state ── */
.ct-form-col--success {
    background: linear-gradient(135deg, #2e7d52 0%, #3aad6e 100%);
    border-color: transparent;
    box-shadow: 0 8px 56px rgba(46,125,82,0.45);
}
.ct-form-col--success .ct-result-msg {
    color: #fff;
    -webkit-text-stroke: 0.2px #fff;
}
.ct-form-col--success .ct-circle { stroke: rgba(255,255,255,0.65); }
.ct-form-col--success .ct-check  { stroke: #fff; }
.ct-form-col--success .ct-result-btn {
    color: #fff;
    border-color: rgba(255,255,255,0.65);
    -webkit-text-stroke: 0.15px #fff;
}
.ct-form-col--success .ct-result-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* ── Map ── */
.ct-map-section {
    background: #35291f;
}

.ct-map-header {
    text-align: center;
    padding: clamp(44px, 6vw, 72px) clamp(20px, 4vw, 48px) clamp(28px, 4vw, 44px);
}

.ct-map-title {
    font-family: 'CaviarDreams', serif;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    -webkit-text-stroke: 0.3px #fff;
    margin: 0 0 10px;
}

.ct-map-sub {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.42);
    letter-spacing: 0.5px;
    margin: 0;
}

.ct-map-wrap {
    width: 100%;
    height: clamp(420px, 50vw, 640px);
}

.ct-map-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* ── Distance widget ── */
.ct-dist-widget {
    padding: 0;
}

.ct-dist-card {
    width: 100%;
    background: linear-gradient(180deg, rgba(62,42,28,0.96) 0%, rgba(45,30,18,0.98) 100%);
    border-top: 1px solid rgba(201,160,122,0.25);
    border-bottom: 1px solid rgba(201,160,122,0.15);
    overflow: hidden;
    position: relative;
}
.ct-dist-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 5%, #c9a07a 30%, #e8c99a 50%, #c9a07a 70%, transparent 95%);
    opacity: 0.7;
}

.ct-dist-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 28px 14px;
}
.ct-dist-card-header svg { color: #c9a07a; flex-shrink: 0; opacity: 0.8; }
.ct-dist-card-header span {
    font-family: 'CaviarDreams', serif;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(201,160,122,0.75);
}

.ct-dist-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 18px 40px 28px;
    gap: 0;
}

.ct-dist-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 0 24px;
}

.ct-dist-col-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 0.62rem;
    font-family: 'CaviarDreams', serif;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(201,160,122,0.45);
    margin: 0;
    width: 100%;
    text-align: center;
}
.ct-dist-col-label svg { color: rgba(201,160,122,0.4); flex-shrink: 0; }

.ct-dist-sep {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    padding: 0 4px;
}
.ct-dist-sep::before,
.ct-dist-sep::after {
    content: '';
    flex: 1;
    width: 1px;
    background: rgba(201,160,122,0.15);
}
.ct-dist-sep span {
    font-size: 0.58rem;
    font-family: 'CaviarDreams', serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(201,160,122,0.35);
    padding: 10px 0;
    white-space: nowrap;
    writing-mode: vertical-lr;
}

/* GPS button */
.ct-dist-geo-btn {
    font-family: 'CaviarDreams', serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(201,160,122,0.08);
    border: 1px solid rgba(201,160,122,0.3);
    border-radius: 3px;
    color: rgba(255,255,255,0.65);
    padding: 12px 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    width: 100%;
    justify-content: center;
}
.ct-dist-geo-btn:hover:not(:disabled) {
    background: rgba(201,160,122,0.16);
    border-color: #c9a07a;
    color: #e8c99a;
}
.ct-dist-geo-btn:disabled { opacity: 0.35; cursor: default; }

.ct-dist-spin {
    animation: ctDistSpin 0.75s linear infinite;
    transform-origin: center;
}
@keyframes ctDistSpin { to { transform: rotate(360deg); } }

/* Result badge */
.ct-dist-result {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    animation: ctDistIn 0.3s ease forwards;
}
@keyframes ctDistIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ct-dist-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,160,122,0.1);
    border: 1px solid rgba(201,160,122,0.45);
    border-radius: 3px;
    padding: 8px 16px;
    color: #e8c99a;
}
.ct-dist-badge svg { flex-shrink: 0; }
#ctDistText {
    font-family: 'CaviarDreams', serif;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #e8c99a;
}

.ct-dist-ext-link {
    font-family: 'CaviarDreams', serif;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(201,160,122,0.5);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}
.ct-dist-ext-link:hover { color: #c9a07a; }

.ct-dist-error {
    font-size: 0.7rem;
    color: #ffb3a3;
    letter-spacing: 1px;
    font-family: 'CaviarDreams', serif;
    text-transform: uppercase;
    text-align: center;
}

/* Address column — inline label + input on desktop */
@media (min-width: 601px) {
    .ct-dist-col--addr {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
    .ct-dist-col--addr .ct-dist-col-label {
        flex-shrink: 0;
        white-space: nowrap;
        width: auto;
        text-align: left;
        margin: 0;
    }
    .ct-dist-col--addr .ct-dist-addr-row {
        flex: 1;
    }
}

/* Address input row */
.ct-dist-addr-row {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
}

.ct-dist-input {
    flex: 1;
    font-family: 'CaviarDreams', serif;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,160,122,0.25);
    border-right: none;
    border-radius: 3px 0 0 3px;
    color: rgba(255,255,255,0.85);
    padding: 13px 16px;
    outline: none;
    min-width: 0;
    transition: border-color 0.2s, background 0.2s;
}
.ct-dist-input::placeholder { color: rgba(201,160,122,0.3); }
.ct-dist-input:focus {
    border-color: rgba(201,160,122,0.65);
    background: rgba(201,160,122,0.05);
}

.ct-dist-addr-btn {
    flex-shrink: 0;
    height: 44px;
    width: 44px;
    background: rgba(201,160,122,0.85);
    border: 1px solid rgba(201,160,122,0.85);
    border-radius: 0 3px 3px 0;
    color: #2d1e12;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.ct-dist-addr-btn:hover { background: #c9a07a; border-color: #c9a07a; }
.ct-dist-addr-btn svg { stroke-width: 2.5; }

/* Map iframe loading fade */
#ctMapFrame { transition: opacity 0.4s ease; }
#ctMapFrame.ct-map-frame--loading { opacity: 0.25; }

/* ── Responsive ── */
@media (max-width: 860px) {
    .ct-inner {
        grid-template-columns: 1fr;
        gap: 44px;
    }
}

@media (max-width: 600px) {
    .ct-section {
        padding: clamp(48px, 8vw, 72px) 0 clamp(56px, 9vw, 80px);
    }
    .ct-inner {
        padding: 0 20px;
    }
    .ct-form-row { grid-template-columns: 1fr; }
    .ct-form-col {
        padding: 28px 20px;
        border-radius: 16px;
    }
    .ct-detail-item:hover { transform: none; }

    .ct-dist-body {
        grid-template-columns: 1fr;
        padding: 0;
    }
    .ct-dist-col { padding: 22px 24px; }
    .ct-dist-col:first-child { border-bottom: 1px solid rgba(201,160,122,0.12); }
    .ct-dist-sep {
        flex-direction: row;
        align-self: auto;
        padding: 8px 24px;
        gap: 12px;
    }
    .ct-dist-sep::before,
    .ct-dist-sep::after { width: auto; height: 1px; flex: 1; }
    .ct-dist-sep span { writing-mode: horizontal-tb; padding: 0; }
    .ct-map-wrap { height: 580px; }
}
