  <turbo-stream action="append" target="vehicles-grid"><template>
    <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl hover:-translate-y-1 transition-all duration-300 cursor-pointer group flex flex-col" onclick="openVehicleModal(65)">
  <div class="relative h-48 bg-gray-200 overflow-hidden">
      <img alt="Toyota Vios (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" class="w-full h-full object-cover group-hover:scale-110 transition-transform duration-300" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMDQsInB1ciI6ImJsb2JfaWQifX0=--91186c59a48926764eb67563fd2cbfd98b5fcddc/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbNjAwLDYwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--b5a3c7685837a6d9e60fd2448a949664947f2fcd/18%20toyota%20vios%20red%20mica%20automatic.jpeg" />

        <div class="absolute bottom-2 left-2" title="Verified owner logo">
          <div class="flex h-11 w-11 items-center justify-center rounded-xl bg-white/95 p-1.5 shadow-lg ring-1 ring-black/5 backdrop-blur-sm">
            <img alt="E-A&#39;S VEHICLE RENTAL logo" class="h-full w-full object-contain" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMTIsInB1ciI6ImJsb2JfaWQifX0=--68fc1466bc9cff72ff5f7b201d532531bdf58942/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls2NCw2NF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--e1972e07de98d125949e77bf677ab3a0d9623cc1/EAS%20Vehicle%20Rental.jpg" />
          </div>
        </div>

      <div class="absolute bottom-2 right-2" title="Verified Owner - Verified Business with DTI Permit">
        <span class="inline-flex items-center px-2.5 py-1 text-sm font-semibold rounded-full bg-yellow-500 text-white shadow-lg">
          <svg class="w-3 h-3 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
          </svg>
          Verified
        </span>
      </div>
  </div>

  <div class="p-5 flex flex-col flex-grow">
    <div class="flex-grow">
      <h3 class="text-lg font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors">
        Toyota Vios (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL
      </h3>
        <div class="flex items-center text-base text-gray-600 mb-2">
          <svg class="h-4 w-4 mr-1 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
          </svg>
          <span class="text-gray-600"> BARANGAY SAN MIGUEL, Puerto Princesa City, Palawan</span>
        </div>
        <p class="text-base text-gray-600 mb-3 line-clamp-2">
          TOYOTA VIOS XLE CVT1.3
5 Units are available for rent different color

✅La...
        </p>

        <div class="flex flex-wrap gap-2 mb-3 text-sm">
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path>
              </svg>
              5 seats
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
              </svg>
              Automatic
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path>
              </svg>
              Gasoline
            </span>
        </div>
    </div>
    <div class="flex items-center justify-between mt-4 pt-4 border-t border-gray-200">
      <div>
        <p class="text-sm text-gray-500">Daily Rate</p>
        <p class="text-2xl font-bold text-blue-600">₱1,650</p>
      </div>
      <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-base">
        View Details
      </button>
    </div>
  </div>
</div>

<div id="vehicle-modal-65" class="fixed inset-0 z-[1000] hidden items-center justify-center modal" data-controller="modal" data-modal-open-value="false" data-action="keydown@window->modal#closeOnEscape">
  <div class="absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity duration-300 opacity-0 z-[1001] modal-backdrop" data-modal-target="backdrop" onclick="if(event.target === this) closeVehicleModal(65)"></div>
  <div class="relative bg-white rounded-2xl max-w-5xl w-full mx-4 max-h-[90vh] overflow-hidden z-[1002] transform scale-90 opacity-0 transition-all duration-300 shadow-2xl modal-content flex flex-col" data-modal-target="content">
    <!-- Header -->
    <div class="flex justify-between items-center p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-white">
      <div>
        <h2 class="text-3xl font-bold text-gray-900 m-0">Toyota Vios (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL</h2>
        <div class="flex items-center gap-3 mt-2">
          <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
            Car
          </span>
            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-yellow-100 text-yellow-800" title="Verified Owner - Verified Business with DTI Permit">
              <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
              </svg>
              Verified Owner
            </span>
        </div>
      </div>
      <button type="button" class="bg-white hover:bg-gray-100 border border-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-gray-600 hover:text-gray-900 transition-colors shadow-sm" onclick="closeVehicleModal(65)" aria-label="Close">
        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
        </svg>
      </button>
    </div>

    <!-- Content - Scrollable -->
    <div class="overflow-y-auto flex-1">
      <div class="grid grid-cols-1 lg:grid-cols-2 gap-0">
        <!-- Image Gallery -->
        <div class="bg-gray-50 p-6">
            <div class="mb-4">
              <div class="relative rounded-xl overflow-hidden bg-gray-200 aspect-video">
                <img alt="Toyota Vios (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" id="main-image-65" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMDQsInB1ciI6ImJsb2JfaWQifX0=--91186c59a48926764eb67563fd2cbfd98b5fcddc/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/18%20toyota%20vios%20red%20mica%20automatic.jpeg" />
              </div>
            </div>
              <div class="grid grid-cols-4 gap-2">
                  <button
                    type="button"
                    onclick="updateMainImage('65', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMDQsInB1ciI6ImJsb2JfaWQifX0=--91186c59a48926764eb67563fd2cbfd98b5fcddc/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/18%20toyota%20vios%20red%20mica%20automatic.jpeg', 0)"
                    data-image-index="0"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-blue-600 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Vios (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMDQsInB1ciI6ImJsb2JfaWQifX0=--91186c59a48926764eb67563fd2cbfd98b5fcddc/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/18%20toyota%20vios%20red%20mica%20automatic.jpeg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('65', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMTcsInB1ciI6ImJsb2JfaWQifX0=--ac9fdef0de908118e93f5ff23f678564e5c33ac5/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/e2fbdb13-8624-479a-90e9-a0978fc037bd.jpg', 1)"
                    data-image-index="1"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Vios (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMTcsInB1ciI6ImJsb2JfaWQifX0=--ac9fdef0de908118e93f5ff23f678564e5c33ac5/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/e2fbdb13-8624-479a-90e9-a0978fc037bd.jpg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('65', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMTgsInB1ciI6ImJsb2JfaWQifX0=--95912684e5299a4f7cff66db5cd43ed794502b4e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/d51e6f59-85fc-4add-83e8-bce3fa0d5a66.jpg', 2)"
                    data-image-index="2"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Vios (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMTgsInB1ciI6ImJsb2JfaWQifX0=--95912684e5299a4f7cff66db5cd43ed794502b4e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/d51e6f59-85fc-4add-83e8-bce3fa0d5a66.jpg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('65', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMTksInB1ciI6ImJsb2JfaWQifX0=--bfa127c6114c4c14f2c3016da991ac5777eb4add/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/23d349a0-5ed4-4b17-a86a-9800b28da652.jpg', 3)"
                    data-image-index="3"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Vios (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMTksInB1ciI6ImJsb2JfaWQifX0=--bfa127c6114c4c14f2c3016da991ac5777eb4add/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/23d349a0-5ed4-4b17-a86a-9800b28da652.jpg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('65', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMjAsInB1ciI6ImJsb2JfaWQifX0=--879d6fffac5ec5449280eb3b0d0d6c00a61224fd/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/b7e133a7-1884-4ad0-a2ea-64862f30fa56%20-%20Copy.jpg', 4)"
                    data-image-index="4"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Vios (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMjAsInB1ciI6ImJsb2JfaWQifX0=--879d6fffac5ec5449280eb3b0d0d6c00a61224fd/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/b7e133a7-1884-4ad0-a2ea-64862f30fa56%20-%20Copy.jpg" />
                  </button>
              </div>
        </div>

        <!-- Details -->
        <div class="p-6 lg:p-8">
          <!-- Pricing Card -->
          <div class="bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-6 mb-6 border border-blue-200">
            <div class="flex items-baseline gap-2 mb-2">
              <span class="text-4xl font-bold text-gray-900">₱1650.0</span>
              <span class="text-gray-600 font-medium">per day</span>
            </div>
            <p class="text-sm text-gray-600 mb-4">All prices are in Philippine Peso (PHP)</p>
            <div class="flex items-center gap-2 text-sm text-gray-700">
              <svg class="w-4 h-4 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
              </svg>
              <span>Available for immediate booking</span>
            </div>
          </div>

          <!-- Description -->
            <div class="mb-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                About This Vehicle
              </h3>
              <p class="text-gray-700 leading-relaxed"><p>TOYOTA VIOS XLE CVT1.3
<br />5 Units are available for rent different color</p>

<p>✅Land Navigation
<br />✅Bluetooth
<br />✅Car Rental Insurance ( Terms and conditions may apply)
<br />✅Cold AC and Heater are working
<br />✅Power Steering (smooth condition)
<br />✅accessory power outlet for charging cellphones
<br />✅power windows all working
<br />✅all Tires in Good Condition
<br />✅Preventive Maintenance Service (PMS) Always updated
<br />✅Gas And Go</p></p>
            </div>

          <!-- Location -->
            <div class="mb-6 bg-gray-50 rounded-xl p-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
                </svg>
                Rental Owner Location
              </h3>
              <p class="text-gray-700 leading-relaxed">
                National Highway ( Two (2) Minutes away from Puerto Princesa International Airport ) ,  BARANGAY SAN MIGUEL, Puerto Princesa City, Palawan, Philippines
              </p>
            </div>

          <!-- Trusted Badge Info -->
            <div class="mb-6 bg-yellow-50 rounded-xl p-6 border border-yellow-200">
              <div class="flex items-start">
                <div class="flex-shrink-0">
                  <svg class="w-6 h-6 text-yellow-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
                  </svg>
                </div>
                <div class="ml-3">
                  <h3 class="text-lg font-semibold text-gray-900 mb-2">Verified Owner</h3>
                  <p class="text-gray-700 text-sm">
                    This owner has verified their business details. All vehicles from this owner display the trusted badge, ensuring you're renting from a verified business.
                  </p>
                    <div class="mt-3">
                      <a class="inline-flex items-center px-4 py-2 rounded-md font-medium text-white text-sm" style="background-color: #0066cc" href="/rental-owners/e-a-s-vehicle-rental-40">View Company Profile</a>
                    </div>
                </div>
              </div>
            </div>

          <!-- Rental Information -->
            <div class="bg-gray-50 rounded-xl p-6 mb-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                What's Included
              </h3>
              <ul class="space-y-2 text-gray-700">
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>✅Land Navigation</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>✅Bluetooth</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>✅Car Rental Insurance ( Terms and conditions may apply)</span>
                  </li>
              </ul>
            </div>

          <!-- Specifications -->
            <div class="border-t border-gray-200 pt-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                </svg>
                Additional Information
              </h3>
              <div class="space-y-3">
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Body Type</span>
                    <span class="text-gray-900 text-right">Car - Sedan</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Seating Capacity</span>
                    <span class="text-gray-900 text-right">5</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Transmission</span>
                    <span class="text-gray-900 text-right">Automatic</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Fuel Type</span>
                    <span class="text-gray-900 text-right">Gasoline</span>
                  </div>
                  <div class="flex justify-between items-start py-2">
                    <span class="font-medium text-gray-700">Available Areas</span>
                    <span class="text-gray-900 text-right">National Highway Puerto Princesa City, Palawan</span>
                  </div>
              </div>
            </div>

          <!-- Features/Highlights -->
          <div class="border-t border-gray-200 pt-6">
            <div class="flex flex-wrap gap-2">
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-green-100 text-green-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                </svg>
                Available Now
              </span>
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                Instant Booking
              </span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Footer Actions -->
    <div class="border-t border-gray-200 bg-gray-50 p-6">
      <div class="flex flex-col sm:flex-row justify-between items-center gap-4">
        <div class="text-sm text-gray-600">
          <p class="font-medium">Need help? Contact us for assistance</p>
        </div>
        <div class="flex gap-3 w-full sm:w-auto">
          <button type="button" class="flex-1 sm:flex-none px-6 py-3 bg-white border-2 border-gray-300 text-gray-700 rounded-lg font-semibold hover:bg-gray-50 hover:border-gray-400 transition-colors" onclick="closeVehicleModal(65)">
            Close
          </button>
          <a data-turbo="false" class="flex-1 sm:flex-none px-8 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors shadow-lg text-center flex items-center justify-center gap-2" href="/bookings/new?vehicle_id=toyota-vios-automatic-transmission-8-units-are-available-for-rent-different-cplor">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
            </svg>
            Book Now
</a>        </div>
      </div>
    </div>
  </div>
</div>

<script>
  function updateMainImage(vehicleId, imageUrl, imageIndex) {
    const mainImage = document.getElementById('main-image-' + vehicleId);
    if (mainImage && imageUrl) {
      mainImage.src = imageUrl;
      
      // Update border on thumbnails
      const thumbnails = document.querySelectorAll(`#vehicle-modal-${vehicleId} button[data-image-index]`);
      thumbnails.forEach((thumb, index) => {
        if (index === imageIndex) {
          thumb.classList.remove('border-transparent', 'hover:border-gray-300');
          thumb.classList.add('border-blue-600');
        } else {
          thumb.classList.remove('border-blue-600');
          thumb.classList.add('border-transparent', 'hover:border-gray-300');
        }
      });
    }
  }
</script>

<div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl hover:-translate-y-1 transition-all duration-300 cursor-pointer group flex flex-col" onclick="openVehicleModal(67)">
  <div class="relative h-48 bg-gray-200 overflow-hidden">
      <img alt="Mitsubishi Mirage G4 (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" class="w-full h-full object-cover group-hover:scale-110 transition-transform duration-300" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMjksInB1ciI6ImJsb2JfaWQifX0=--1237e0b4e869e04d8424aa23aecd63d7a67e511e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbNjAwLDYwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--b5a3c7685837a6d9e60fd2448a949664947f2fcd/99fe3254-2fcf-4b53-94df-40d7c49ae153.jpg" />

        <div class="absolute bottom-2 left-2" title="Verified owner logo">
          <div class="flex h-11 w-11 items-center justify-center rounded-xl bg-white/95 p-1.5 shadow-lg ring-1 ring-black/5 backdrop-blur-sm">
            <img alt="E-A&#39;S VEHICLE RENTAL logo" class="h-full w-full object-contain" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMTIsInB1ciI6ImJsb2JfaWQifX0=--68fc1466bc9cff72ff5f7b201d532531bdf58942/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls2NCw2NF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--e1972e07de98d125949e77bf677ab3a0d9623cc1/EAS%20Vehicle%20Rental.jpg" />
          </div>
        </div>

      <div class="absolute bottom-2 right-2" title="Verified Owner - Verified Business with DTI Permit">
        <span class="inline-flex items-center px-2.5 py-1 text-sm font-semibold rounded-full bg-yellow-500 text-white shadow-lg">
          <svg class="w-3 h-3 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
          </svg>
          Verified
        </span>
      </div>
  </div>

  <div class="p-5 flex flex-col flex-grow">
    <div class="flex-grow">
      <h3 class="text-lg font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors">
        Mitsubishi Mirage G4 (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL
      </h3>
        <div class="flex items-center text-base text-gray-600 mb-2">
          <svg class="h-4 w-4 mr-1 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
          </svg>
          <span class="text-gray-600"> BARANGAY SAN MIGUEL, Puerto Princesa City, Palawan</span>
        </div>
        <p class="text-base text-gray-600 mb-3 line-clamp-2">
          Mitsubishi Mirage G4 GLX CVT 
1.2L Unleaded 2WD Automatic CVT D4 MPI VVT

...
        </p>

        <div class="flex flex-wrap gap-2 mb-3 text-sm">
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path>
              </svg>
              5 seats
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
              </svg>
              Automatic
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path>
              </svg>
              Gasoline
            </span>
        </div>
    </div>
    <div class="flex items-center justify-between mt-4 pt-4 border-t border-gray-200">
      <div>
        <p class="text-sm text-gray-500">Daily Rate</p>
        <p class="text-2xl font-bold text-blue-600">₱1,650</p>
      </div>
      <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-base">
        View Details
      </button>
    </div>
  </div>
</div>

<div id="vehicle-modal-67" class="fixed inset-0 z-[1000] hidden items-center justify-center modal" data-controller="modal" data-modal-open-value="false" data-action="keydown@window->modal#closeOnEscape">
  <div class="absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity duration-300 opacity-0 z-[1001] modal-backdrop" data-modal-target="backdrop" onclick="if(event.target === this) closeVehicleModal(67)"></div>
  <div class="relative bg-white rounded-2xl max-w-5xl w-full mx-4 max-h-[90vh] overflow-hidden z-[1002] transform scale-90 opacity-0 transition-all duration-300 shadow-2xl modal-content flex flex-col" data-modal-target="content">
    <!-- Header -->
    <div class="flex justify-between items-center p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-white">
      <div>
        <h2 class="text-3xl font-bold text-gray-900 m-0">Mitsubishi Mirage G4 (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL</h2>
        <div class="flex items-center gap-3 mt-2">
          <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
            Car
          </span>
            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-yellow-100 text-yellow-800" title="Verified Owner - Verified Business with DTI Permit">
              <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
              </svg>
              Verified Owner
            </span>
        </div>
      </div>
      <button type="button" class="bg-white hover:bg-gray-100 border border-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-gray-600 hover:text-gray-900 transition-colors shadow-sm" onclick="closeVehicleModal(67)" aria-label="Close">
        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
        </svg>
      </button>
    </div>

    <!-- Content - Scrollable -->
    <div class="overflow-y-auto flex-1">
      <div class="grid grid-cols-1 lg:grid-cols-2 gap-0">
        <!-- Image Gallery -->
        <div class="bg-gray-50 p-6">
            <div class="mb-4">
              <div class="relative rounded-xl overflow-hidden bg-gray-200 aspect-video">
                <img alt="Mitsubishi Mirage G4 (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" id="main-image-67" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMjksInB1ciI6ImJsb2JfaWQifX0=--1237e0b4e869e04d8424aa23aecd63d7a67e511e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/99fe3254-2fcf-4b53-94df-40d7c49ae153.jpg" />
              </div>
            </div>
              <div class="grid grid-cols-4 gap-2">
                  <button
                    type="button"
                    onclick="updateMainImage('67', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMjksInB1ciI6ImJsb2JfaWQifX0=--1237e0b4e869e04d8424aa23aecd63d7a67e511e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/99fe3254-2fcf-4b53-94df-40d7c49ae153.jpg', 0)"
                    data-image-index="0"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-blue-600 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Mitsubishi Mirage G4 (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMjksInB1ciI6ImJsb2JfaWQifX0=--1237e0b4e869e04d8424aa23aecd63d7a67e511e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/99fe3254-2fcf-4b53-94df-40d7c49ae153.jpg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('67', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMzMsInB1ciI6ImJsb2JfaWQifX0=--2a1b7d4109a74632435996e44f208cee500cae33/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/14ee120e-3ca7-469b-9916-788ab7e27092.jpg', 1)"
                    data-image-index="1"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Mitsubishi Mirage G4 (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcxMzMsInB1ciI6ImJsb2JfaWQifX0=--2a1b7d4109a74632435996e44f208cee500cae33/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/14ee120e-3ca7-469b-9916-788ab7e27092.jpg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('67', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcyMDUsInB1ciI6ImJsb2JfaWQifX0=--4c491d72007ae40c54e770c118263018ce838934/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/af51f3b7-330b-4c88-86c7-38582adf88a8.jpg', 2)"
                    data-image-index="2"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Mitsubishi Mirage G4 (Automatic Transmission) | E-A&#39;S VEHICLE RENTAL" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcyMDUsInB1ciI6ImJsb2JfaWQifX0=--4c491d72007ae40c54e770c118263018ce838934/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/af51f3b7-330b-4c88-86c7-38582adf88a8.jpg" />
                  </button>
              </div>
        </div>

        <!-- Details -->
        <div class="p-6 lg:p-8">
          <!-- Pricing Card -->
          <div class="bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-6 mb-6 border border-blue-200">
            <div class="flex items-baseline gap-2 mb-2">
              <span class="text-4xl font-bold text-gray-900">₱1650.0</span>
              <span class="text-gray-600 font-medium">per day</span>
            </div>
            <p class="text-sm text-gray-600 mb-4">All prices are in Philippine Peso (PHP)</p>
            <div class="flex items-center gap-2 text-sm text-gray-700">
              <svg class="w-4 h-4 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
              </svg>
              <span>Available for immediate booking</span>
            </div>
          </div>

          <!-- Description -->
            <div class="mb-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                About This Vehicle
              </h3>
              <p class="text-gray-700 leading-relaxed"><p>Mitsubishi Mirage G4 GLX CVT 
<br />1.2L Unleaded 2WD Automatic CVT D4 MPI VVT</p>

<p>✅Fuel Efficient
<br />✅Land Navigation
<br />✅Bluetooth
<br />✅Car Rental Insurance ( Terms and conditions may apply)
<br />✅Cold AC and Heater are working
<br />✅Power Steering (smooth condition)
<br />✅accessory power outlet for charging cellphones
<br />✅power windows all working
<br />✅all Tires in Good Condition
<br />✅Preventive Maintenance Service (PMS) Always updated
<br />✅Gas And Go</p></p>
            </div>

          <!-- Location -->
            <div class="mb-6 bg-gray-50 rounded-xl p-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
                </svg>
                Rental Owner Location
              </h3>
              <p class="text-gray-700 leading-relaxed">
                National Highway ( Two (2) Minutes away from Puerto Princesa International Airport ) ,  BARANGAY SAN MIGUEL, Puerto Princesa City, Palawan, Philippines
              </p>
            </div>

          <!-- Trusted Badge Info -->
            <div class="mb-6 bg-yellow-50 rounded-xl p-6 border border-yellow-200">
              <div class="flex items-start">
                <div class="flex-shrink-0">
                  <svg class="w-6 h-6 text-yellow-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
                  </svg>
                </div>
                <div class="ml-3">
                  <h3 class="text-lg font-semibold text-gray-900 mb-2">Verified Owner</h3>
                  <p class="text-gray-700 text-sm">
                    This owner has verified their business details. All vehicles from this owner display the trusted badge, ensuring you're renting from a verified business.
                  </p>
                    <div class="mt-3">
                      <a class="inline-flex items-center px-4 py-2 rounded-md font-medium text-white text-sm" style="background-color: #0066cc" href="/rental-owners/e-a-s-vehicle-rental-40">View Company Profile</a>
                    </div>
                </div>
              </div>
            </div>

          <!-- Rental Information -->
            <div class="bg-gray-50 rounded-xl p-6 mb-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                What's Included
              </h3>
              <ul class="space-y-2 text-gray-700">
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>✅Fuel Efficient</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>✅Land Navigation</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>✅Bluetooth</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>✅Cold AC and Heater are working</span>
                  </li>
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>✅Car Rental Insurance ( Terms and conditions may apply)</span>
                  </li>
              </ul>
            </div>

          <!-- Specifications -->
            <div class="border-t border-gray-200 pt-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                </svg>
                Additional Information
              </h3>
              <div class="space-y-3">
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Body Type</span>
                    <span class="text-gray-900 text-right">Car - Sedan</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Seating Capacity</span>
                    <span class="text-gray-900 text-right">5</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Transmission</span>
                    <span class="text-gray-900 text-right">Automatic</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Fuel Type</span>
                    <span class="text-gray-900 text-right">Gasoline</span>
                  </div>
                  <div class="flex justify-between items-start py-2">
                    <span class="font-medium text-gray-700">Available Areas</span>
                    <span class="text-gray-900 text-right">National Highway Puerto Princesa City, Palawan, (Two (2) Minutes away from Puerto Princesa International Airport)</span>
                  </div>
              </div>
            </div>

          <!-- Features/Highlights -->
          <div class="border-t border-gray-200 pt-6">
            <div class="flex flex-wrap gap-2">
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-green-100 text-green-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                </svg>
                Available Now
              </span>
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                Instant Booking
              </span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Footer Actions -->
    <div class="border-t border-gray-200 bg-gray-50 p-6">
      <div class="flex flex-col sm:flex-row justify-between items-center gap-4">
        <div class="text-sm text-gray-600">
          <p class="font-medium">Need help? Contact us for assistance</p>
        </div>
        <div class="flex gap-3 w-full sm:w-auto">
          <button type="button" class="flex-1 sm:flex-none px-6 py-3 bg-white border-2 border-gray-300 text-gray-700 rounded-lg font-semibold hover:bg-gray-50 hover:border-gray-400 transition-colors" onclick="closeVehicleModal(67)">
            Close
          </button>
          <a data-turbo="false" class="flex-1 sm:flex-none px-8 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors shadow-lg text-center flex items-center justify-center gap-2" href="/bookings/new?vehicle_id=mitsubishi-mirage-g4-automatic-transmission">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
            </svg>
            Book Now
</a>        </div>
      </div>
    </div>
  </div>
</div>

<script>
  function updateMainImage(vehicleId, imageUrl, imageIndex) {
    const mainImage = document.getElementById('main-image-' + vehicleId);
    if (mainImage && imageUrl) {
      mainImage.src = imageUrl;
      
      // Update border on thumbnails
      const thumbnails = document.querySelectorAll(`#vehicle-modal-${vehicleId} button[data-image-index]`);
      thumbnails.forEach((thumb, index) => {
        if (index === imageIndex) {
          thumb.classList.remove('border-transparent', 'hover:border-gray-300');
          thumb.classList.add('border-blue-600');
        } else {
          thumb.classList.remove('border-blue-600');
          thumb.classList.add('border-transparent', 'hover:border-gray-300');
        }
      });
    }
  }
</script>

<div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl hover:-translate-y-1 transition-all duration-300 cursor-pointer group flex flex-col" onclick="openVehicleModal(33)">
  <div class="relative h-48 bg-gray-200 overflow-hidden">
      <img alt="Toyota vios" class="w-full h-full object-cover group-hover:scale-110 transition-transform duration-300" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkyNTUsInB1ciI6ImJsb2JfaWQifX0=--19ec2861ec80840d681a09cc20ee5b3add6529d4/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbNjAwLDYwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--b5a3c7685837a6d9e60fd2448a949664947f2fcd/inbound7610989212394801836.jpg" />

        <div class="absolute bottom-2 left-2" title="Verified owner logo">
          <div class="flex h-11 w-11 items-center justify-center rounded-xl bg-white/95 p-1.5 shadow-lg ring-1 ring-black/5 backdrop-blur-sm">
            <img alt="KATRIBU&#39;s vehicle rental  logo" class="h-full w-full object-contain" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkyNzksInB1ciI6ImJsb2JfaWQifX0=--6aad65b569f16effad4714b6723f1e3ff7da9906/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls2NCw2NF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--e1972e07de98d125949e77bf677ab3a0d9623cc1/inbound1929169985420009929.jpg" />
          </div>
        </div>

      <div class="absolute bottom-2 right-2" title="Verified Owner - Verified Business with DTI Permit">
        <span class="inline-flex items-center px-2.5 py-1 text-sm font-semibold rounded-full bg-yellow-500 text-white shadow-lg">
          <svg class="w-3 h-3 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
          </svg>
          Verified
        </span>
      </div>
  </div>

  <div class="p-5 flex flex-col flex-grow">
    <div class="flex-grow">
      <h3 class="text-lg font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors">
        Toyota vios
      </h3>
        <div class="flex items-center text-base text-gray-600 mb-2">
          <svg class="h-4 w-4 mr-1 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
          </svg>
          <span class="text-gray-600">San Miguel, Puerto Princesa City, Palawan</span>
        </div>
        <p class="text-base text-gray-600 mb-3 line-clamp-2">
          ✓well maintained maintenance 
✓free helmets
✓with long-term discount
✓deli...
        </p>

        <div class="flex flex-wrap gap-2 mb-3 text-sm">
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path>
              </svg>
              5 seats
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
              </svg>
              Automatic
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path>
              </svg>
              Gasoline
            </span>
        </div>
    </div>
    <div class="flex items-center justify-between mt-4 pt-4 border-t border-gray-200">
      <div>
        <p class="text-sm text-gray-500">Daily Rate</p>
        <p class="text-2xl font-bold text-blue-600">₱1,760</p>
      </div>
      <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-base">
        View Details
      </button>
    </div>
  </div>
</div>

<div id="vehicle-modal-33" class="fixed inset-0 z-[1000] hidden items-center justify-center modal" data-controller="modal" data-modal-open-value="false" data-action="keydown@window->modal#closeOnEscape">
  <div class="absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity duration-300 opacity-0 z-[1001] modal-backdrop" data-modal-target="backdrop" onclick="if(event.target === this) closeVehicleModal(33)"></div>
  <div class="relative bg-white rounded-2xl max-w-5xl w-full mx-4 max-h-[90vh] overflow-hidden z-[1002] transform scale-90 opacity-0 transition-all duration-300 shadow-2xl modal-content flex flex-col" data-modal-target="content">
    <!-- Header -->
    <div class="flex justify-between items-center p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-white">
      <div>
        <h2 class="text-3xl font-bold text-gray-900 m-0">Toyota vios</h2>
        <div class="flex items-center gap-3 mt-2">
          <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
            Car
          </span>
            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-yellow-100 text-yellow-800" title="Verified Owner - Verified Business with DTI Permit">
              <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
              </svg>
              Verified Owner
            </span>
        </div>
      </div>
      <button type="button" class="bg-white hover:bg-gray-100 border border-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-gray-600 hover:text-gray-900 transition-colors shadow-sm" onclick="closeVehicleModal(33)" aria-label="Close">
        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
        </svg>
      </button>
    </div>

    <!-- Content - Scrollable -->
    <div class="overflow-y-auto flex-1">
      <div class="grid grid-cols-1 lg:grid-cols-2 gap-0">
        <!-- Image Gallery -->
        <div class="bg-gray-50 p-6">
            <div class="mb-4">
              <div class="relative rounded-xl overflow-hidden bg-gray-200 aspect-video">
                <img alt="Toyota vios" id="main-image-33" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkyNTUsInB1ciI6ImJsb2JfaWQifX0=--19ec2861ec80840d681a09cc20ee5b3add6529d4/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/inbound7610989212394801836.jpg" />
              </div>
            </div>
        </div>

        <!-- Details -->
        <div class="p-6 lg:p-8">
          <!-- Pricing Card -->
          <div class="bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-6 mb-6 border border-blue-200">
            <div class="flex items-baseline gap-2 mb-2">
              <span class="text-4xl font-bold text-gray-900">₱1760.0</span>
              <span class="text-gray-600 font-medium">per day</span>
            </div>
            <p class="text-sm text-gray-600 mb-4">All prices are in Philippine Peso (PHP)</p>
            <div class="flex items-center gap-2 text-sm text-gray-700">
              <svg class="w-4 h-4 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
              </svg>
              <span>Available for immediate booking</span>
            </div>
          </div>

          <!-- Description -->
            <div class="mb-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                About This Vehicle
              </h3>
              <p class="text-gray-700 leading-relaxed"><p>✓well maintained maintenance 
<br />✓free helmets
<br />✓with long-term discount
<br />✓delivery and pick up with charges it's depend to your location 
<br />✓can provide BIR RECEIPT 
<br />✓MAYORS PERMIT/DTI/BIR REGISTERED
<br />✓24/7 open
<br />✓3000 deposit return the 3000 after return the car</p></p>
            </div>

          <!-- Location -->
            <div class="mb-6 bg-gray-50 rounded-xl p-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
                </svg>
                Rental Owner Location
              </h3>
              <p class="text-gray-700 leading-relaxed">
                National HIWAY near at airport ppc, San Miguel, Puerto Princesa City, Palawan, Philippines
              </p>
            </div>

          <!-- Trusted Badge Info -->
            <div class="mb-6 bg-yellow-50 rounded-xl p-6 border border-yellow-200">
              <div class="flex items-start">
                <div class="flex-shrink-0">
                  <svg class="w-6 h-6 text-yellow-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
                  </svg>
                </div>
                <div class="ml-3">
                  <h3 class="text-lg font-semibold text-gray-900 mb-2">Verified Owner</h3>
                  <p class="text-gray-700 text-sm">
                    This owner has verified their business details. All vehicles from this owner display the trusted badge, ensuring you're renting from a verified business.
                  </p>
                    <div class="mt-3">
                      <a class="inline-flex items-center px-4 py-2 rounded-md font-medium text-white text-sm" style="background-color: #0066cc" href="/rental-owners/katribu-s-vehicle-rental-26">View Company Profile</a>
                    </div>
                </div>
              </div>
            </div>

          <!-- Rental Information -->

          <!-- Specifications -->
            <div class="border-t border-gray-200 pt-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                </svg>
                Additional Information
              </h3>
              <div class="space-y-3">
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Body Type</span>
                    <span class="text-gray-900 text-right">Car - Sedan</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Seating Capacity</span>
                    <span class="text-gray-900 text-right">5</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Transmission</span>
                    <span class="text-gray-900 text-right">Automatic</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Fuel Type</span>
                    <span class="text-gray-900 text-right">Gasoline</span>
                  </div>
                  <div class="flex justify-between items-start py-2">
                    <span class="font-medium text-gray-700">Available Areas</span>
                    <span class="text-gray-900 text-right">Puerto princesa city</span>
                  </div>
              </div>
            </div>

          <!-- Features/Highlights -->
          <div class="border-t border-gray-200 pt-6">
            <div class="flex flex-wrap gap-2">
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-green-100 text-green-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                </svg>
                Available Now
              </span>
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                Instant Booking
              </span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Footer Actions -->
    <div class="border-t border-gray-200 bg-gray-50 p-6">
      <div class="flex flex-col sm:flex-row justify-between items-center gap-4">
        <div class="text-sm text-gray-600">
          <p class="font-medium">Need help? Contact us for assistance</p>
        </div>
        <div class="flex gap-3 w-full sm:w-auto">
          <button type="button" class="flex-1 sm:flex-none px-6 py-3 bg-white border-2 border-gray-300 text-gray-700 rounded-lg font-semibold hover:bg-gray-50 hover:border-gray-400 transition-colors" onclick="closeVehicleModal(33)">
            Close
          </button>
          <a data-turbo="false" class="flex-1 sm:flex-none px-8 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors shadow-lg text-center flex items-center justify-center gap-2" href="/bookings/new?vehicle_id=toyota-vios-2">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
            </svg>
            Book Now
</a>        </div>
      </div>
    </div>
  </div>
</div>

<script>
  function updateMainImage(vehicleId, imageUrl, imageIndex) {
    const mainImage = document.getElementById('main-image-' + vehicleId);
    if (mainImage && imageUrl) {
      mainImage.src = imageUrl;
      
      // Update border on thumbnails
      const thumbnails = document.querySelectorAll(`#vehicle-modal-${vehicleId} button[data-image-index]`);
      thumbnails.forEach((thumb, index) => {
        if (index === imageIndex) {
          thumb.classList.remove('border-transparent', 'hover:border-gray-300');
          thumb.classList.add('border-blue-600');
        } else {
          thumb.classList.remove('border-blue-600');
          thumb.classList.add('border-transparent', 'hover:border-gray-300');
        }
      });
    }
  }
</script>

<div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl hover:-translate-y-1 transition-all duration-300 cursor-pointer group flex flex-col" onclick="openVehicleModal(46)">
  <div class="relative h-48 bg-gray-200 overflow-hidden">
      <img alt="Toyota Vios | EGarcia Vehicle Rental" class="w-full h-full object-cover group-hover:scale-110 transition-transform duration-300" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY4ODQsInB1ciI6ImJsb2JfaWQifX0=--dd29e20c9c43c8ba1028ec12c72452b663038334/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbNjAwLDYwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--b5a3c7685837a6d9e60fd2448a949664947f2fcd/1000071932.jpg" />

        <div class="absolute bottom-2 left-2" title="Verified owner logo">
          <div class="flex h-11 w-11 items-center justify-center rounded-xl bg-white/95 p-1.5 shadow-lg ring-1 ring-black/5 backdrop-blur-sm">
            <img alt="EGarcia Vehicle Rental logo" class="h-full w-full object-contain" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY4NDAsInB1ciI6ImJsb2JfaWQifX0=--92f5ca47fe9c78203dee7930fae46ce62477acc6/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls2NCw2NF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--e1972e07de98d125949e77bf677ab3a0d9623cc1/.trashed-1775903695-5.png" />
          </div>
        </div>

      <div class="absolute bottom-2 right-2" title="Verified Owner - Verified Business with DTI Permit">
        <span class="inline-flex items-center px-2.5 py-1 text-sm font-semibold rounded-full bg-yellow-500 text-white shadow-lg">
          <svg class="w-3 h-3 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
          </svg>
          Verified
        </span>
      </div>
  </div>

  <div class="p-5 flex flex-col flex-grow">
    <div class="flex-grow">
      <h3 class="text-lg font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors">
        Toyota Vios | EGarcia Vehicle Rental
      </h3>
        <div class="flex items-center text-base text-gray-600 mb-2">
          <svg class="h-4 w-4 mr-1 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
          </svg>
          <span class="text-gray-600">Bancao-Bancao, Puerto Princesa City, Palawan</span>
        </div>
        <p class="text-base text-gray-600 mb-3 line-clamp-2">
          2026 Automatic 4-5 seater Car 
        </p>

        <div class="flex flex-wrap gap-2 mb-3 text-sm">
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path>
              </svg>
              5 seats
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
              </svg>
              Automatic
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path>
              </svg>
              Gasoline
            </span>
        </div>
    </div>
    <div class="flex items-center justify-between mt-4 pt-4 border-t border-gray-200">
      <div>
        <p class="text-sm text-gray-500">Daily Rate</p>
        <p class="text-2xl font-bold text-blue-600">₱1,870</p>
      </div>
      <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-base">
        View Details
      </button>
    </div>
  </div>
</div>

<div id="vehicle-modal-46" class="fixed inset-0 z-[1000] hidden items-center justify-center modal" data-controller="modal" data-modal-open-value="false" data-action="keydown@window->modal#closeOnEscape">
  <div class="absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity duration-300 opacity-0 z-[1001] modal-backdrop" data-modal-target="backdrop" onclick="if(event.target === this) closeVehicleModal(46)"></div>
  <div class="relative bg-white rounded-2xl max-w-5xl w-full mx-4 max-h-[90vh] overflow-hidden z-[1002] transform scale-90 opacity-0 transition-all duration-300 shadow-2xl modal-content flex flex-col" data-modal-target="content">
    <!-- Header -->
    <div class="flex justify-between items-center p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-white">
      <div>
        <h2 class="text-3xl font-bold text-gray-900 m-0">Toyota Vios | EGarcia Vehicle Rental</h2>
        <div class="flex items-center gap-3 mt-2">
          <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
            Car
          </span>
            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-yellow-100 text-yellow-800" title="Verified Owner - Verified Business with DTI Permit">
              <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
              </svg>
              Verified Owner
            </span>
        </div>
      </div>
      <button type="button" class="bg-white hover:bg-gray-100 border border-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-gray-600 hover:text-gray-900 transition-colors shadow-sm" onclick="closeVehicleModal(46)" aria-label="Close">
        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
        </svg>
      </button>
    </div>

    <!-- Content - Scrollable -->
    <div class="overflow-y-auto flex-1">
      <div class="grid grid-cols-1 lg:grid-cols-2 gap-0">
        <!-- Image Gallery -->
        <div class="bg-gray-50 p-6">
            <div class="mb-4">
              <div class="relative rounded-xl overflow-hidden bg-gray-200 aspect-video">
                <img alt="Toyota Vios | EGarcia Vehicle Rental" id="main-image-46" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY4ODQsInB1ciI6ImJsb2JfaWQifX0=--dd29e20c9c43c8ba1028ec12c72452b663038334/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/1000071932.jpg" />
              </div>
            </div>
              <div class="grid grid-cols-4 gap-2">
                  <button
                    type="button"
                    onclick="updateMainImage('46', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY4ODQsInB1ciI6ImJsb2JfaWQifX0=--dd29e20c9c43c8ba1028ec12c72452b663038334/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/1000071932.jpg', 0)"
                    data-image-index="0"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-blue-600 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Vios | EGarcia Vehicle Rental" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY4ODQsInB1ciI6ImJsb2JfaWQifX0=--dd29e20c9c43c8ba1028ec12c72452b663038334/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/1000071932.jpg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('46', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY4ODUsInB1ciI6ImJsb2JfaWQifX0=--14c1c1dd6901d1053da7b612184d068f63deac38/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/1000071932.jpg', 1)"
                    data-image-index="1"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Vios | EGarcia Vehicle Rental" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY4ODUsInB1ciI6ImJsb2JfaWQifX0=--14c1c1dd6901d1053da7b612184d068f63deac38/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/1000071932.jpg" />
                  </button>
              </div>
        </div>

        <!-- Details -->
        <div class="p-6 lg:p-8">
          <!-- Pricing Card -->
          <div class="bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-6 mb-6 border border-blue-200">
            <div class="flex items-baseline gap-2 mb-2">
              <span class="text-4xl font-bold text-gray-900">₱1870.0</span>
              <span class="text-gray-600 font-medium">per day</span>
            </div>
            <p class="text-sm text-gray-600 mb-4">All prices are in Philippine Peso (PHP)</p>
            <div class="flex items-center gap-2 text-sm text-gray-700">
              <svg class="w-4 h-4 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
              </svg>
              <span>Available for immediate booking</span>
            </div>
          </div>

          <!-- Description -->
            <div class="mb-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                About This Vehicle
              </h3>
              <p class="text-gray-700 leading-relaxed"><p>2026 Automatic 4-5 seater Car </p></p>
            </div>

          <!-- Location -->
            <div class="mb-6 bg-gray-50 rounded-xl p-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
                </svg>
                Rental Owner Location
              </h3>
              <p class="text-gray-700 leading-relaxed">
                Rizal Avenue Extension , Bancao-Bancao, Puerto Princesa City, Palawan, Philippines
              </p>
            </div>

          <!-- Trusted Badge Info -->
            <div class="mb-6 bg-yellow-50 rounded-xl p-6 border border-yellow-200">
              <div class="flex items-start">
                <div class="flex-shrink-0">
                  <svg class="w-6 h-6 text-yellow-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
                  </svg>
                </div>
                <div class="ml-3">
                  <h3 class="text-lg font-semibold text-gray-900 mb-2">Verified Owner</h3>
                  <p class="text-gray-700 text-sm">
                    This owner has verified their business details. All vehicles from this owner display the trusted badge, ensuring you're renting from a verified business.
                  </p>
                    <div class="mt-3">
                      <a class="inline-flex items-center px-4 py-2 rounded-md font-medium text-white text-sm" style="background-color: #0066cc" href="/rental-owners/egarcia-vehicle-rental-36">View Company Profile</a>
                    </div>
                </div>
              </div>
            </div>

          <!-- Rental Information -->
            <div class="bg-gray-50 rounded-xl p-6 mb-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                What's Included
              </h3>
              <ul class="space-y-2 text-gray-700">
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>Dashcam</span>
                  </li>
              </ul>
            </div>

          <!-- Specifications -->
            <div class="border-t border-gray-200 pt-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                </svg>
                Additional Information
              </h3>
              <div class="space-y-3">
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Body Type</span>
                    <span class="text-gray-900 text-right">Car - Sedan</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Seating Capacity</span>
                    <span class="text-gray-900 text-right">5</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Transmission</span>
                    <span class="text-gray-900 text-right">Automatic</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Fuel Type</span>
                    <span class="text-gray-900 text-right">Gasoline</span>
                  </div>
              </div>
            </div>

          <!-- Features/Highlights -->
          <div class="border-t border-gray-200 pt-6">
            <div class="flex flex-wrap gap-2">
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-green-100 text-green-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                </svg>
                Available Now
              </span>
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                Instant Booking
              </span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Footer Actions -->
    <div class="border-t border-gray-200 bg-gray-50 p-6">
      <div class="flex flex-col sm:flex-row justify-between items-center gap-4">
        <div class="text-sm text-gray-600">
          <p class="font-medium">Need help? Contact us for assistance</p>
        </div>
        <div class="flex gap-3 w-full sm:w-auto">
          <button type="button" class="flex-1 sm:flex-none px-6 py-3 bg-white border-2 border-gray-300 text-gray-700 rounded-lg font-semibold hover:bg-gray-50 hover:border-gray-400 transition-colors" onclick="closeVehicleModal(46)">
            Close
          </button>
          <a data-turbo="false" class="flex-1 sm:flex-none px-8 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors shadow-lg text-center flex items-center justify-center gap-2" href="/bookings/new?vehicle_id=toyota-vios-7">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
            </svg>
            Book Now
</a>        </div>
      </div>
    </div>
  </div>
</div>

<script>
  function updateMainImage(vehicleId, imageUrl, imageIndex) {
    const mainImage = document.getElementById('main-image-' + vehicleId);
    if (mainImage && imageUrl) {
      mainImage.src = imageUrl;
      
      // Update border on thumbnails
      const thumbnails = document.querySelectorAll(`#vehicle-modal-${vehicleId} button[data-image-index]`);
      thumbnails.forEach((thumb, index) => {
        if (index === imageIndex) {
          thumb.classList.remove('border-transparent', 'hover:border-gray-300');
          thumb.classList.add('border-blue-600');
        } else {
          thumb.classList.remove('border-blue-600');
          thumb.classList.add('border-transparent', 'hover:border-gray-300');
        }
      });
    }
  }
</script>

<div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl hover:-translate-y-1 transition-all duration-300 cursor-pointer group flex flex-col" onclick="openVehicleModal(21)">
  <div class="relative h-48 bg-gray-200 overflow-hidden">
      <img alt="Mirage G4 | Rose car rental services" class="w-full h-full object-cover group-hover:scale-110 transition-transform duration-300" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODg4ODksInB1ciI6ImJsb2JfaWQifX0=--525eb33ecd37fbb7ef1fec0e3fbc7f1af8dd602d/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbNjAwLDYwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--b5a3c7685837a6d9e60fd2448a949664947f2fcd/IMG_1918.jpeg" />


      <div class="absolute bottom-2 right-2" title="Verified Owner - Verified Business with DTI Permit">
        <span class="inline-flex items-center px-2.5 py-1 text-sm font-semibold rounded-full bg-yellow-500 text-white shadow-lg">
          <svg class="w-3 h-3 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
          </svg>
          Verified
        </span>
      </div>
  </div>

  <div class="p-5 flex flex-col flex-grow">
    <div class="flex-grow">
      <h3 class="text-lg font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors">
        Mirage G4 | Rose car rental services
      </h3>
        <div class="flex items-center text-base text-gray-600 mb-2">
          <svg class="h-4 w-4 mr-1 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
          </svg>
          <span class="text-gray-600">Puerto Princesa City, Palawan</span>
        </div>
        <p class="text-base text-gray-600 mb-3 line-clamp-2">
          Mirage G4 MT
🚘 car rental in Palawan
Affordable • Realible • Clean car
✔️S...
        </p>

        <div class="flex flex-wrap gap-2 mb-3 text-sm">
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path>
              </svg>
              5 seats
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
              </svg>
              Manual
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path>
              </svg>
              Gasoline
            </span>
        </div>
    </div>
    <div class="flex items-center justify-between mt-4 pt-4 border-t border-gray-200">
      <div>
        <p class="text-sm text-gray-500">Daily Rate</p>
        <p class="text-2xl font-bold text-blue-600">₱1,980</p>
      </div>
      <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-base">
        View Details
      </button>
    </div>
  </div>
</div>

<div id="vehicle-modal-21" class="fixed inset-0 z-[1000] hidden items-center justify-center modal" data-controller="modal" data-modal-open-value="false" data-action="keydown@window->modal#closeOnEscape">
  <div class="absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity duration-300 opacity-0 z-[1001] modal-backdrop" data-modal-target="backdrop" onclick="if(event.target === this) closeVehicleModal(21)"></div>
  <div class="relative bg-white rounded-2xl max-w-5xl w-full mx-4 max-h-[90vh] overflow-hidden z-[1002] transform scale-90 opacity-0 transition-all duration-300 shadow-2xl modal-content flex flex-col" data-modal-target="content">
    <!-- Header -->
    <div class="flex justify-between items-center p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-white">
      <div>
        <h2 class="text-3xl font-bold text-gray-900 m-0">Mirage G4 | Rose car rental services</h2>
        <div class="flex items-center gap-3 mt-2">
          <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
            Car
          </span>
            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-yellow-100 text-yellow-800" title="Verified Owner - Verified Business with DTI Permit">
              <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
              </svg>
              Verified Owner
            </span>
        </div>
      </div>
      <button type="button" class="bg-white hover:bg-gray-100 border border-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-gray-600 hover:text-gray-900 transition-colors shadow-sm" onclick="closeVehicleModal(21)" aria-label="Close">
        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
        </svg>
      </button>
    </div>

    <!-- Content - Scrollable -->
    <div class="overflow-y-auto flex-1">
      <div class="grid grid-cols-1 lg:grid-cols-2 gap-0">
        <!-- Image Gallery -->
        <div class="bg-gray-50 p-6">
            <div class="mb-4">
              <div class="relative rounded-xl overflow-hidden bg-gray-200 aspect-video">
                <img alt="Mirage G4 | Rose car rental services" id="main-image-21" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODg4ODksInB1ciI6ImJsb2JfaWQifX0=--525eb33ecd37fbb7ef1fec0e3fbc7f1af8dd602d/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_1918.jpeg" />
              </div>
            </div>
              <div class="grid grid-cols-4 gap-2">
                  <button
                    type="button"
                    onclick="updateMainImage('21', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODg4ODksInB1ciI6ImJsb2JfaWQifX0=--525eb33ecd37fbb7ef1fec0e3fbc7f1af8dd602d/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_1918.jpeg', 0)"
                    data-image-index="0"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-blue-600 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Mirage G4 | Rose car rental services" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODg4ODksInB1ciI6ImJsb2JfaWQifX0=--525eb33ecd37fbb7ef1fec0e3fbc7f1af8dd602d/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/IMG_1918.jpeg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('21', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODg4OTMsInB1ciI6ImJsb2JfaWQifX0=--a8548cb2282198d25b3fe04c4c92055aa4bfd8ca/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_1243.jpeg', 1)"
                    data-image-index="1"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Mirage G4 | Rose car rental services" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODg4OTMsInB1ciI6ImJsb2JfaWQifX0=--a8548cb2282198d25b3fe04c4c92055aa4bfd8ca/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/IMG_1243.jpeg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('21', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODg4OTcsInB1ciI6ImJsb2JfaWQifX0=--7cfa22189a4fb4630a1083c6c2e912be581c9e9e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_1244.jpeg', 2)"
                    data-image-index="2"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Mirage G4 | Rose car rental services" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODg4OTcsInB1ciI6ImJsb2JfaWQifX0=--7cfa22189a4fb4630a1083c6c2e912be581c9e9e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/IMG_1244.jpeg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('21', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODg5MDIsInB1ciI6ImJsb2JfaWQifX0=--3ab422263411e895c89c148ad2d79027f737402f/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_1242.jpeg', 3)"
                    data-image-index="3"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Mirage G4 | Rose car rental services" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODg5MDIsInB1ciI6ImJsb2JfaWQifX0=--3ab422263411e895c89c148ad2d79027f737402f/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/IMG_1242.jpeg" />
                  </button>
              </div>
        </div>

        <!-- Details -->
        <div class="p-6 lg:p-8">
          <!-- Pricing Card -->
          <div class="bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-6 mb-6 border border-blue-200">
            <div class="flex items-baseline gap-2 mb-2">
              <span class="text-4xl font-bold text-gray-900">₱1980.0</span>
              <span class="text-gray-600 font-medium">per day</span>
            </div>
            <p class="text-sm text-gray-600 mb-4">All prices are in Philippine Peso (PHP)</p>
            <div class="flex items-center gap-2 text-sm text-gray-700">
              <svg class="w-4 h-4 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
              </svg>
              <span>Available for immediate booking</span>
            </div>
          </div>

          <!-- Description -->
            <div class="mb-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                About This Vehicle
              </h3>
              <p class="text-gray-700 leading-relaxed"><p>Mirage G4 MT
<br />🚘 car rental in Palawan
<br />Affordable • Realible • Clean car
<br />✔️Self-drive or with driver
<br />✔️Additional 300 for airport pick-up/deliver
<br />✔️200 carwash fee (to make sure your car clean and sanitized)</p></p>
            </div>

          <!-- Location -->
            <div class="mb-6 bg-gray-50 rounded-xl p-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
                </svg>
                Rental Owner Location
              </h3>
              <p class="text-gray-700 leading-relaxed">
                Lot 591 blk 10 Graceful HOA, Puerto Princesa City, Palawan, Philippines
              </p>
            </div>

          <!-- Trusted Badge Info -->
            <div class="mb-6 bg-yellow-50 rounded-xl p-6 border border-yellow-200">
              <div class="flex items-start">
                <div class="flex-shrink-0">
                  <svg class="w-6 h-6 text-yellow-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
                  </svg>
                </div>
                <div class="ml-3">
                  <h3 class="text-lg font-semibold text-gray-900 mb-2">Verified Owner</h3>
                  <p class="text-gray-700 text-sm">
                    This owner has verified their business details. All vehicles from this owner display the trusted badge, ensuring you're renting from a verified business.
                  </p>
                    <div class="mt-3">
                      <a class="inline-flex items-center px-4 py-2 rounded-md font-medium text-white text-sm" style="background-color: #0066cc" href="/rental-owners/rose-car-rental-services-13">View Company Profile</a>
                    </div>
                </div>
              </div>
            </div>

          <!-- Rental Information -->

          <!-- Specifications -->
            <div class="border-t border-gray-200 pt-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                </svg>
                Additional Information
              </h3>
              <div class="space-y-3">
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Body Type</span>
                    <span class="text-gray-900 text-right">Car - Sedan</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Seating Capacity</span>
                    <span class="text-gray-900 text-right">5</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Transmission</span>
                    <span class="text-gray-900 text-right">Manual</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Fuel Type</span>
                    <span class="text-gray-900 text-right">Gasoline</span>
                  </div>
                  <div class="flex justify-between items-start py-2">
                    <span class="font-medium text-gray-700">Available Areas</span>
                    <span class="text-gray-900 text-right">Puerto south to north</span>
                  </div>
              </div>
            </div>

          <!-- Features/Highlights -->
          <div class="border-t border-gray-200 pt-6">
            <div class="flex flex-wrap gap-2">
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-green-100 text-green-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                </svg>
                Available Now
              </span>
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                Instant Booking
              </span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Footer Actions -->
    <div class="border-t border-gray-200 bg-gray-50 p-6">
      <div class="flex flex-col sm:flex-row justify-between items-center gap-4">
        <div class="text-sm text-gray-600">
          <p class="font-medium">Need help? Contact us for assistance</p>
        </div>
        <div class="flex gap-3 w-full sm:w-auto">
          <button type="button" class="flex-1 sm:flex-none px-6 py-3 bg-white border-2 border-gray-300 text-gray-700 rounded-lg font-semibold hover:bg-gray-50 hover:border-gray-400 transition-colors" onclick="closeVehicleModal(21)">
            Close
          </button>
          <a data-turbo="false" class="flex-1 sm:flex-none px-8 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors shadow-lg text-center flex items-center justify-center gap-2" href="/bookings/new?vehicle_id=mirage-g4">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
            </svg>
            Book Now
</a>        </div>
      </div>
    </div>
  </div>
</div>

<script>
  function updateMainImage(vehicleId, imageUrl, imageIndex) {
    const mainImage = document.getElementById('main-image-' + vehicleId);
    if (mainImage && imageUrl) {
      mainImage.src = imageUrl;
      
      // Update border on thumbnails
      const thumbnails = document.querySelectorAll(`#vehicle-modal-${vehicleId} button[data-image-index]`);
      thumbnails.forEach((thumb, index) => {
        if (index === imageIndex) {
          thumb.classList.remove('border-transparent', 'hover:border-gray-300');
          thumb.classList.add('border-blue-600');
        } else {
          thumb.classList.remove('border-blue-600');
          thumb.classList.add('border-transparent', 'hover:border-gray-300');
        }
      });
    }
  }
</script>

<div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl hover:-translate-y-1 transition-all duration-300 cursor-pointer group flex flex-col" onclick="openVehicleModal(8)">
  <div class="relative h-48 bg-gray-200 overflow-hidden">
      <img alt="Toyota Vios | Rose car rental services" class="w-full h-full object-cover group-hover:scale-110 transition-transform duration-300" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTE0LCJwdXIiOiJibG9iX2lkIn19--71e3198cb589ef2d407c8f4ee88f731e44c33290/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbNjAwLDYwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--b5a3c7685837a6d9e60fd2448a949664947f2fcd/IMG_0579.jpeg" />


      <div class="absolute bottom-2 right-2" title="Verified Owner - Verified Business with DTI Permit">
        <span class="inline-flex items-center px-2.5 py-1 text-sm font-semibold rounded-full bg-yellow-500 text-white shadow-lg">
          <svg class="w-3 h-3 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
          </svg>
          Verified
        </span>
      </div>
  </div>

  <div class="p-5 flex flex-col flex-grow">
    <div class="flex-grow">
      <h3 class="text-lg font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors">
        Toyota Vios | Rose car rental services
      </h3>
        <div class="flex items-center text-base text-gray-600 mb-2">
          <svg class="h-4 w-4 mr-1 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
          </svg>
          <span class="text-gray-600">Puerto Princesa City, Palawan</span>
        </div>
        <p class="text-base text-gray-600 mb-3 line-clamp-2">
          🚗Car rental in Palawan 
Toyota vios 2025 model 
Affordable • Realible • Cle...
        </p>

        <div class="flex flex-wrap gap-2 mb-3 text-sm">
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path>
              </svg>
              5 seats
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
              </svg>
              Automatic
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path>
              </svg>
              Gasoline
            </span>
        </div>
    </div>
    <div class="flex items-center justify-between mt-4 pt-4 border-t border-gray-200">
      <div>
        <p class="text-sm text-gray-500">Daily Rate</p>
        <p class="text-2xl font-bold text-blue-600">₱2,200</p>
      </div>
      <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-base">
        View Details
      </button>
    </div>
  </div>
</div>

<div id="vehicle-modal-8" class="fixed inset-0 z-[1000] hidden items-center justify-center modal" data-controller="modal" data-modal-open-value="false" data-action="keydown@window->modal#closeOnEscape">
  <div class="absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity duration-300 opacity-0 z-[1001] modal-backdrop" data-modal-target="backdrop" onclick="if(event.target === this) closeVehicleModal(8)"></div>
  <div class="relative bg-white rounded-2xl max-w-5xl w-full mx-4 max-h-[90vh] overflow-hidden z-[1002] transform scale-90 opacity-0 transition-all duration-300 shadow-2xl modal-content flex flex-col" data-modal-target="content">
    <!-- Header -->
    <div class="flex justify-between items-center p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-white">
      <div>
        <h2 class="text-3xl font-bold text-gray-900 m-0">Toyota Vios | Rose car rental services</h2>
        <div class="flex items-center gap-3 mt-2">
          <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
            Car
          </span>
            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-yellow-100 text-yellow-800" title="Verified Owner - Verified Business with DTI Permit">
              <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
              </svg>
              Verified Owner
            </span>
        </div>
      </div>
      <button type="button" class="bg-white hover:bg-gray-100 border border-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-gray-600 hover:text-gray-900 transition-colors shadow-sm" onclick="closeVehicleModal(8)" aria-label="Close">
        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
        </svg>
      </button>
    </div>

    <!-- Content - Scrollable -->
    <div class="overflow-y-auto flex-1">
      <div class="grid grid-cols-1 lg:grid-cols-2 gap-0">
        <!-- Image Gallery -->
        <div class="bg-gray-50 p-6">
            <div class="mb-4">
              <div class="relative rounded-xl overflow-hidden bg-gray-200 aspect-video">
                <img alt="Toyota Vios | Rose car rental services" id="main-image-8" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTE0LCJwdXIiOiJibG9iX2lkIn19--71e3198cb589ef2d407c8f4ee88f731e44c33290/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_0579.jpeg" />
              </div>
            </div>
              <div class="grid grid-cols-4 gap-2">
                  <button
                    type="button"
                    onclick="updateMainImage('8', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTE0LCJwdXIiOiJibG9iX2lkIn19--71e3198cb589ef2d407c8f4ee88f731e44c33290/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_0579.jpeg', 0)"
                    data-image-index="0"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-blue-600 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Vios | Rose car rental services" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTE0LCJwdXIiOiJibG9iX2lkIn19--71e3198cb589ef2d407c8f4ee88f731e44c33290/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/IMG_0579.jpeg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('8', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTE4LCJwdXIiOiJibG9iX2lkIn19--58a265d4e60e222104ff0f68ef29f3ce42f0d499/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_0822.jpeg', 1)"
                    data-image-index="1"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Vios | Rose car rental services" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTE4LCJwdXIiOiJibG9iX2lkIn19--58a265d4e60e222104ff0f68ef29f3ce42f0d499/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/IMG_0822.jpeg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('8', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTIwLCJwdXIiOiJibG9iX2lkIn19--b2a1235efa85ec3be1ccccbf666d17dc8a26053a/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_0823.jpeg', 2)"
                    data-image-index="2"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Toyota Vios | Rose car rental services" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTIwLCJwdXIiOiJibG9iX2lkIn19--b2a1235efa85ec3be1ccccbf666d17dc8a26053a/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/IMG_0823.jpeg" />
                  </button>
              </div>
        </div>

        <!-- Details -->
        <div class="p-6 lg:p-8">
          <!-- Pricing Card -->
          <div class="bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-6 mb-6 border border-blue-200">
            <div class="flex items-baseline gap-2 mb-2">
              <span class="text-4xl font-bold text-gray-900">₱2200.0</span>
              <span class="text-gray-600 font-medium">per day</span>
            </div>
            <p class="text-sm text-gray-600 mb-4">All prices are in Philippine Peso (PHP)</p>
            <div class="flex items-center gap-2 text-sm text-gray-700">
              <svg class="w-4 h-4 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
              </svg>
              <span>Available for immediate booking</span>
            </div>
          </div>

          <!-- Description -->
            <div class="mb-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                About This Vehicle
              </h3>
              <p class="text-gray-700 leading-relaxed"><p>🚗Car rental in Palawan 
<br />Toyota vios 2025 model 
<br />Affordable • Realible • Clean car
<br />✔️Self-drive or with driver
<br />✔️ airport pick-up available 
<br />#PalawanAdventures #exploremore #explorepalawan #touwithus #Ridewithconfidence</p></p>
            </div>

          <!-- Location -->
            <div class="mb-6 bg-gray-50 rounded-xl p-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
                </svg>
                Rental Owner Location
              </h3>
              <p class="text-gray-700 leading-relaxed">
                Lot 591 blk 10 Graceful HOA, Puerto Princesa City, Palawan, Philippines
              </p>
            </div>

          <!-- Trusted Badge Info -->
            <div class="mb-6 bg-yellow-50 rounded-xl p-6 border border-yellow-200">
              <div class="flex items-start">
                <div class="flex-shrink-0">
                  <svg class="w-6 h-6 text-yellow-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
                  </svg>
                </div>
                <div class="ml-3">
                  <h3 class="text-lg font-semibold text-gray-900 mb-2">Verified Owner</h3>
                  <p class="text-gray-700 text-sm">
                    This owner has verified their business details. All vehicles from this owner display the trusted badge, ensuring you're renting from a verified business.
                  </p>
                    <div class="mt-3">
                      <a class="inline-flex items-center px-4 py-2 rounded-md font-medium text-white text-sm" style="background-color: #0066cc" href="/rental-owners/rose-car-rental-services-13">View Company Profile</a>
                    </div>
                </div>
              </div>
            </div>

          <!-- Rental Information -->

          <!-- Specifications -->
            <div class="border-t border-gray-200 pt-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                </svg>
                Additional Information
              </h3>
              <div class="space-y-3">
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Seating Capacity</span>
                    <span class="text-gray-900 text-right">5</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Transmission</span>
                    <span class="text-gray-900 text-right">Automatic</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Fuel Type</span>
                    <span class="text-gray-900 text-right">Gasoline</span>
                  </div>
                  <div class="flex justify-between items-start py-2">
                    <span class="font-medium text-gray-700">Available Areas</span>
                    <span class="text-gray-900 text-right">Puerto Princesa south to north</span>
                  </div>
              </div>
            </div>

          <!-- Features/Highlights -->
          <div class="border-t border-gray-200 pt-6">
            <div class="flex flex-wrap gap-2">
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-green-100 text-green-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                </svg>
                Available Now
              </span>
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                Instant Booking
              </span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Footer Actions -->
    <div class="border-t border-gray-200 bg-gray-50 p-6">
      <div class="flex flex-col sm:flex-row justify-between items-center gap-4">
        <div class="text-sm text-gray-600">
          <p class="font-medium">Need help? Contact us for assistance</p>
        </div>
        <div class="flex gap-3 w-full sm:w-auto">
          <button type="button" class="flex-1 sm:flex-none px-6 py-3 bg-white border-2 border-gray-300 text-gray-700 rounded-lg font-semibold hover:bg-gray-50 hover:border-gray-400 transition-colors" onclick="closeVehicleModal(8)">
            Close
          </button>
          <a data-turbo="false" class="flex-1 sm:flex-none px-8 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors shadow-lg text-center flex items-center justify-center gap-2" href="/bookings/new?vehicle_id=toyota-vios">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
            </svg>
            Book Now
</a>        </div>
      </div>
    </div>
  </div>
</div>

<script>
  function updateMainImage(vehicleId, imageUrl, imageIndex) {
    const mainImage = document.getElementById('main-image-' + vehicleId);
    if (mainImage && imageUrl) {
      mainImage.src = imageUrl;
      
      // Update border on thumbnails
      const thumbnails = document.querySelectorAll(`#vehicle-modal-${vehicleId} button[data-image-index]`);
      thumbnails.forEach((thumb, index) => {
        if (index === imageIndex) {
          thumb.classList.remove('border-transparent', 'hover:border-gray-300');
          thumb.classList.add('border-blue-600');
        } else {
          thumb.classList.remove('border-blue-600');
          thumb.classList.add('border-transparent', 'hover:border-gray-300');
        }
      });
    }
  }
</script>

<div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl hover:-translate-y-1 transition-all duration-300 cursor-pointer group flex flex-col" onclick="openVehicleModal(27)">
  <div class="relative h-48 bg-gray-200 overflow-hidden">
      <img alt="Suzuki Ertiga" class="w-full h-full object-cover group-hover:scale-110 transition-transform duration-300" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkwMzIsInB1ciI6ImJsb2JfaWQifX0=--fc4da28385b40926a9efefdc56bf26de2f964b4e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbNjAwLDYwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--b5a3c7685837a6d9e60fd2448a949664947f2fcd/1000061747.jpg" />

        <div class="absolute bottom-2 left-2" title="Verified owner logo">
          <div class="flex h-11 w-11 items-center justify-center rounded-xl bg-white/95 p-1.5 shadow-lg ring-1 ring-black/5 backdrop-blur-sm">
            <img alt="IR Vehicle Rental logo" class="h-full w-full object-contain" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY4NTIsInB1ciI6ImJsb2JfaWQifX0=--968833fad038065ef8943adf39cc3d595f3b1f66/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls2NCw2NF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--e1972e07de98d125949e77bf677ab3a0d9623cc1/1000075880.jpg" />
          </div>
        </div>

      <div class="absolute bottom-2 right-2" title="Verified Owner - Verified Business with DTI Permit">
        <span class="inline-flex items-center px-2.5 py-1 text-sm font-semibold rounded-full bg-yellow-500 text-white shadow-lg">
          <svg class="w-3 h-3 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
          </svg>
          Verified
        </span>
      </div>
  </div>

  <div class="p-5 flex flex-col flex-grow">
    <div class="flex-grow">
      <h3 class="text-lg font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors">
        Suzuki Ertiga
      </h3>
        <div class="flex items-center text-base text-gray-600 mb-2">
          <svg class="h-4 w-4 mr-1 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
          </svg>
          <span class="text-gray-600">San Pedro, Puerto Princesa City, Palawan</span>
        </div>
        <p class="text-base text-gray-600 mb-3 line-clamp-2">
          Suzuki Ertiga is a 7-seater compact MPV known for its practicality, efficienc...
        </p>

        <div class="flex flex-wrap gap-2 mb-3 text-sm">
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path>
              </svg>
              7 seats
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
              </svg>
              Automatic
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path>
              </svg>
              Gasoline
            </span>
        </div>
    </div>
    <div class="flex items-center justify-between mt-4 pt-4 border-t border-gray-200">
      <div>
        <p class="text-sm text-gray-500">Daily Rate</p>
        <p class="text-2xl font-bold text-blue-600">₱2,200</p>
      </div>
      <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-base">
        View Details
      </button>
    </div>
  </div>
</div>

<div id="vehicle-modal-27" class="fixed inset-0 z-[1000] hidden items-center justify-center modal" data-controller="modal" data-modal-open-value="false" data-action="keydown@window->modal#closeOnEscape">
  <div class="absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity duration-300 opacity-0 z-[1001] modal-backdrop" data-modal-target="backdrop" onclick="if(event.target === this) closeVehicleModal(27)"></div>
  <div class="relative bg-white rounded-2xl max-w-5xl w-full mx-4 max-h-[90vh] overflow-hidden z-[1002] transform scale-90 opacity-0 transition-all duration-300 shadow-2xl modal-content flex flex-col" data-modal-target="content">
    <!-- Header -->
    <div class="flex justify-between items-center p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-white">
      <div>
        <h2 class="text-3xl font-bold text-gray-900 m-0">Suzuki Ertiga</h2>
        <div class="flex items-center gap-3 mt-2">
          <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
            Car
          </span>
            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-yellow-100 text-yellow-800" title="Verified Owner - Verified Business with DTI Permit">
              <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
              </svg>
              Verified Owner
            </span>
        </div>
      </div>
      <button type="button" class="bg-white hover:bg-gray-100 border border-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-gray-600 hover:text-gray-900 transition-colors shadow-sm" onclick="closeVehicleModal(27)" aria-label="Close">
        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
        </svg>
      </button>
    </div>

    <!-- Content - Scrollable -->
    <div class="overflow-y-auto flex-1">
      <div class="grid grid-cols-1 lg:grid-cols-2 gap-0">
        <!-- Image Gallery -->
        <div class="bg-gray-50 p-6">
            <div class="mb-4">
              <div class="relative rounded-xl overflow-hidden bg-gray-200 aspect-video">
                <img alt="Suzuki Ertiga" id="main-image-27" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkwMzIsInB1ciI6ImJsb2JfaWQifX0=--fc4da28385b40926a9efefdc56bf26de2f964b4e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/1000061747.jpg" />
              </div>
            </div>
              <div class="grid grid-cols-4 gap-2">
                  <button
                    type="button"
                    onclick="updateMainImage('27', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkwMzIsInB1ciI6ImJsb2JfaWQifX0=--fc4da28385b40926a9efefdc56bf26de2f964b4e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/1000061747.jpg', 0)"
                    data-image-index="0"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-blue-600 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Suzuki Ertiga" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkwMzIsInB1ciI6ImJsb2JfaWQifX0=--fc4da28385b40926a9efefdc56bf26de2f964b4e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/1000061747.jpg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('27', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkwMzUsInB1ciI6ImJsb2JfaWQifX0=--be881211e70bd3d676856c91f383ae1a97322653/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/1000011877.jpg', 1)"
                    data-image-index="1"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Suzuki Ertiga" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkwMzUsInB1ciI6ImJsb2JfaWQifX0=--be881211e70bd3d676856c91f383ae1a97322653/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/1000011877.jpg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('27', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkwMzgsInB1ciI6ImJsb2JfaWQifX0=--79ae7ce5cfe1ab1ac30f19003f1d931e9b14146e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/1000011879.jpg', 2)"
                    data-image-index="2"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Suzuki Ertiga" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkwMzgsInB1ciI6ImJsb2JfaWQifX0=--79ae7ce5cfe1ab1ac30f19003f1d931e9b14146e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/1000011879.jpg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('27', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkwNDEsInB1ciI6ImJsb2JfaWQifX0=--73c1572f3f24b8529005ba60842f662315384e4b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/1000011880.jpg', 3)"
                    data-image-index="3"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Suzuki Ertiga" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkwNDEsInB1ciI6ImJsb2JfaWQifX0=--73c1572f3f24b8529005ba60842f662315384e4b/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/1000011880.jpg" />
                  </button>
              </div>
        </div>

        <!-- Details -->
        <div class="p-6 lg:p-8">
          <!-- Pricing Card -->
          <div class="bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-6 mb-6 border border-blue-200">
            <div class="flex items-baseline gap-2 mb-2">
              <span class="text-4xl font-bold text-gray-900">₱2200.0</span>
              <span class="text-gray-600 font-medium">per day</span>
            </div>
            <p class="text-sm text-gray-600 mb-4">All prices are in Philippine Peso (PHP)</p>
            <div class="flex items-center gap-2 text-sm text-gray-700">
              <svg class="w-4 h-4 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
              </svg>
              <span>Available for immediate booking</span>
            </div>
          </div>

          <!-- Description -->
            <div class="mb-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                About This Vehicle
              </h3>
              <p class="text-gray-700 leading-relaxed"><p>Suzuki Ertiga is a 7-seater compact MPV known for its practicality, efficiency, and affordable pricing. It features a 1.5L K15B gasoline engine (103 hp, 138 Nm) paired with a 5-speed manual or 4-speed automatic transmission, offering a comfortable, family-oriented ride with competitive fuel economy. </p></p>
            </div>

          <!-- Location -->
            <div class="mb-6 bg-gray-50 rounded-xl p-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
                </svg>
                Rental Owner Location
              </h3>
              <p class="text-gray-700 leading-relaxed">
                BM road, San Pedro, Puerto Princesa City, Palawan, Philippines
              </p>
            </div>

          <!-- Trusted Badge Info -->
            <div class="mb-6 bg-yellow-50 rounded-xl p-6 border border-yellow-200">
              <div class="flex items-start">
                <div class="flex-shrink-0">
                  <svg class="w-6 h-6 text-yellow-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
                  </svg>
                </div>
                <div class="ml-3">
                  <h3 class="text-lg font-semibold text-gray-900 mb-2">Verified Owner</h3>
                  <p class="text-gray-700 text-sm">
                    This owner has verified their business details. All vehicles from this owner display the trusted badge, ensuring you're renting from a verified business.
                  </p>
                    <div class="mt-3">
                      <a class="inline-flex items-center px-4 py-2 rounded-md font-medium text-white text-sm" style="background-color: #0066cc" href="/rental-owners/ir-vehicle-rental-25">View Company Profile</a>
                    </div>
                </div>
              </div>
            </div>

          <!-- Rental Information -->

          <!-- Specifications -->
            <div class="border-t border-gray-200 pt-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                </svg>
                Additional Information
              </h3>
              <div class="space-y-3">
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Body Type</span>
                    <span class="text-gray-900 text-right">Car - SUV</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Seating Capacity</span>
                    <span class="text-gray-900 text-right">7</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Transmission</span>
                    <span class="text-gray-900 text-right">Automatic</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Fuel Type</span>
                    <span class="text-gray-900 text-right">Gasoline</span>
                  </div>
                  <div class="flex justify-between items-start py-2">
                    <span class="font-medium text-gray-700">Available Areas</span>
                    <span class="text-gray-900 text-right">Puerto Princesa</span>
                  </div>
              </div>
            </div>

          <!-- Features/Highlights -->
          <div class="border-t border-gray-200 pt-6">
            <div class="flex flex-wrap gap-2">
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-green-100 text-green-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                </svg>
                Available Now
              </span>
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                Instant Booking
              </span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Footer Actions -->
    <div class="border-t border-gray-200 bg-gray-50 p-6">
      <div class="flex flex-col sm:flex-row justify-between items-center gap-4">
        <div class="text-sm text-gray-600">
          <p class="font-medium">Need help? Contact us for assistance</p>
        </div>
        <div class="flex gap-3 w-full sm:w-auto">
          <button type="button" class="flex-1 sm:flex-none px-6 py-3 bg-white border-2 border-gray-300 text-gray-700 rounded-lg font-semibold hover:bg-gray-50 hover:border-gray-400 transition-colors" onclick="closeVehicleModal(27)">
            Close
          </button>
          <a data-turbo="false" class="flex-1 sm:flex-none px-8 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors shadow-lg text-center flex items-center justify-center gap-2" href="/bookings/new?vehicle_id=suzuki-ertiga">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
            </svg>
            Book Now
</a>        </div>
      </div>
    </div>
  </div>
</div>

<script>
  function updateMainImage(vehicleId, imageUrl, imageIndex) {
    const mainImage = document.getElementById('main-image-' + vehicleId);
    if (mainImage && imageUrl) {
      mainImage.src = imageUrl;
      
      // Update border on thumbnails
      const thumbnails = document.querySelectorAll(`#vehicle-modal-${vehicleId} button[data-image-index]`);
      thumbnails.forEach((thumb, index) => {
        if (index === imageIndex) {
          thumb.classList.remove('border-transparent', 'hover:border-gray-300');
          thumb.classList.add('border-blue-600');
        } else {
          thumb.classList.remove('border-blue-600');
          thumb.classList.add('border-transparent', 'hover:border-gray-300');
        }
      });
    }
  }
</script>

<div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl hover:-translate-y-1 transition-all duration-300 cursor-pointer group flex flex-col" onclick="openVehicleModal(35)">
  <div class="relative h-48 bg-gray-200 overflow-hidden">
      <img alt="Suzuki XL7 2026 HYBRID" class="w-full h-full object-cover group-hover:scale-110 transition-transform duration-300" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkzMDcsInB1ciI6ImJsb2JfaWQifX0=--5f86ad4670f00418bff53eea7248714a959572e8/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbNjAwLDYwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--b5a3c7685837a6d9e60fd2448a949664947f2fcd/IMG_3454.jpeg" />

        <div class="absolute bottom-2 left-2" title="Verified owner logo">
          <div class="flex h-11 w-11 items-center justify-center rounded-xl bg-white/95 p-1.5 shadow-lg ring-1 ring-black/5 backdrop-blur-sm">
            <img alt="0613 Transportation Services logo" class="h-full w-full object-contain" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTY2ODgsInB1ciI6ImJsb2JfaWQifX0=--300a2c62b2b52d61091e168db0c7e63fe103f33f/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls2NCw2NF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--e1972e07de98d125949e77bf677ab3a0d9623cc1/03797A01-DFE9-47B6-8B19-49686D6241B5_L0_001-3_16_2026,%207_42_53%20PM.png" />
          </div>
        </div>

      <div class="absolute bottom-2 right-2" title="Verified Owner - Verified Business with DTI Permit">
        <span class="inline-flex items-center px-2.5 py-1 text-sm font-semibold rounded-full bg-yellow-500 text-white shadow-lg">
          <svg class="w-3 h-3 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
          </svg>
          Verified
        </span>
      </div>
  </div>

  <div class="p-5 flex flex-col flex-grow">
    <div class="flex-grow">
      <h3 class="text-lg font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors">
        Suzuki XL7 2026 HYBRID
      </h3>
        <div class="flex items-center text-base text-gray-600 mb-2">
          <svg class="h-4 w-4 mr-1 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
          </svg>
          <span class="text-gray-600">Kalipay, Puerto Princesa City, Palawan</span>
        </div>
        <p class="text-base text-gray-600 mb-3 line-clamp-2">
          2026 Hybrid A/T 
✅fuel efficient 
        </p>

        <div class="flex flex-wrap gap-2 mb-3 text-sm">
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path>
              </svg>
              7 seats
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
              </svg>
              Automatic
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path>
              </svg>
              Gasoline
            </span>
        </div>
    </div>
    <div class="flex items-center justify-between mt-4 pt-4 border-t border-gray-200">
      <div>
        <p class="text-sm text-gray-500">Daily Rate</p>
        <p class="text-2xl font-bold text-blue-600">₱2,200</p>
      </div>
      <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-base">
        View Details
      </button>
    </div>
  </div>
</div>

<div id="vehicle-modal-35" class="fixed inset-0 z-[1000] hidden items-center justify-center modal" data-controller="modal" data-modal-open-value="false" data-action="keydown@window->modal#closeOnEscape">
  <div class="absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity duration-300 opacity-0 z-[1001] modal-backdrop" data-modal-target="backdrop" onclick="if(event.target === this) closeVehicleModal(35)"></div>
  <div class="relative bg-white rounded-2xl max-w-5xl w-full mx-4 max-h-[90vh] overflow-hidden z-[1002] transform scale-90 opacity-0 transition-all duration-300 shadow-2xl modal-content flex flex-col" data-modal-target="content">
    <!-- Header -->
    <div class="flex justify-between items-center p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-white">
      <div>
        <h2 class="text-3xl font-bold text-gray-900 m-0">Suzuki XL7 2026 HYBRID</h2>
        <div class="flex items-center gap-3 mt-2">
          <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
            Car
          </span>
            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-yellow-100 text-yellow-800" title="Verified Owner - Verified Business with DTI Permit">
              <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
              </svg>
              Verified Owner
            </span>
        </div>
      </div>
      <button type="button" class="bg-white hover:bg-gray-100 border border-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-gray-600 hover:text-gray-900 transition-colors shadow-sm" onclick="closeVehicleModal(35)" aria-label="Close">
        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
        </svg>
      </button>
    </div>

    <!-- Content - Scrollable -->
    <div class="overflow-y-auto flex-1">
      <div class="grid grid-cols-1 lg:grid-cols-2 gap-0">
        <!-- Image Gallery -->
        <div class="bg-gray-50 p-6">
            <div class="mb-4">
              <div class="relative rounded-xl overflow-hidden bg-gray-200 aspect-video">
                <img alt="Suzuki XL7 2026 HYBRID" id="main-image-35" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkzMDcsInB1ciI6ImJsb2JfaWQifX0=--5f86ad4670f00418bff53eea7248714a959572e8/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_3454.jpeg" />
              </div>
            </div>
              <div class="grid grid-cols-4 gap-2">
                  <button
                    type="button"
                    onclick="updateMainImage('35', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkzMDcsInB1ciI6ImJsb2JfaWQifX0=--5f86ad4670f00418bff53eea7248714a959572e8/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_3454.jpeg', 0)"
                    data-image-index="0"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-blue-600 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Suzuki XL7 2026 HYBRID" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkzMDcsInB1ciI6ImJsb2JfaWQifX0=--5f86ad4670f00418bff53eea7248714a959572e8/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/IMG_3454.jpeg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('35', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkzMDgsInB1ciI6ImJsb2JfaWQifX0=--2af8a4be89e53f3f9b4a8cdc0a2348bb6cf15102/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_3456.jpeg', 1)"
                    data-image-index="1"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Suzuki XL7 2026 HYBRID" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkzMDgsInB1ciI6ImJsb2JfaWQifX0=--2af8a4be89e53f3f9b4a8cdc0a2348bb6cf15102/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/IMG_3456.jpeg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('35', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkzMTQsInB1ciI6ImJsb2JfaWQifX0=--4b9790a49868104446ba765f07c3c7d8d14118f3/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_3460.jpeg', 2)"
                    data-image-index="2"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Suzuki XL7 2026 HYBRID" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkzMTQsInB1ciI6ImJsb2JfaWQifX0=--4b9790a49868104446ba765f07c3c7d8d14118f3/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/IMG_3460.jpeg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('35', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkzMTcsInB1ciI6ImJsb2JfaWQifX0=--7afb5b51f0937069e365bbfb756b4945999658a1/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_3461.jpeg', 3)"
                    data-image-index="3"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Suzuki XL7 2026 HYBRID" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkzMTcsInB1ciI6ImJsb2JfaWQifX0=--7afb5b51f0937069e365bbfb756b4945999658a1/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/IMG_3461.jpeg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('35', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkzMjAsInB1ciI6ImJsb2JfaWQifX0=--cc249a20b1a86839876fd7c4fb314625deadd003/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_3462.jpeg', 4)"
                    data-image-index="4"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Suzuki XL7 2026 HYBRID" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkzMjAsInB1ciI6ImJsb2JfaWQifX0=--cc249a20b1a86839876fd7c4fb314625deadd003/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/IMG_3462.jpeg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('35', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkzMjMsInB1ciI6ImJsb2JfaWQifX0=--586567455f0812a01c0cd309af3c671adfcb3910/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_3463.jpeg', 5)"
                    data-image-index="5"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Suzuki XL7 2026 HYBRID" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkzMjMsInB1ciI6ImJsb2JfaWQifX0=--586567455f0812a01c0cd309af3c671adfcb3910/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/IMG_3463.jpeg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('35', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkzMjYsInB1ciI6ImJsb2JfaWQifX0=--7cd64828af83880df89c952d8988ed92734026b6/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_3464.jpeg', 6)"
                    data-image-index="6"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Suzuki XL7 2026 HYBRID" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkzMjYsInB1ciI6ImJsb2JfaWQifX0=--7cd64828af83880df89c952d8988ed92734026b6/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/IMG_3464.jpeg" />
                  </button>
                  <button
                    type="button"
                    onclick="updateMainImage('35', '/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkzMjgsInB1ciI6ImJsb2JfaWQifX0=--5f52d9b976bef02a5b92027c97a06e9d5a242b53/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/IMG_3465.jpeg', 7)"
                    data-image-index="7"
                    class="relative rounded-lg overflow-hidden bg-gray-200 aspect-square border-2 border-transparent hover:border-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <img alt="Suzuki XL7 2026 HYBRID" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6ODkzMjgsInB1ciI6ImJsb2JfaWQifX0=--5f52d9b976bef02a5b92027c97a06e9d5a242b53/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMjAwLDIwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--338ef1efe9d4f6fa4ee1fc5b65c53b6840184c99/IMG_3465.jpeg" />
                  </button>
              </div>
        </div>

        <!-- Details -->
        <div class="p-6 lg:p-8">
          <!-- Pricing Card -->
          <div class="bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-6 mb-6 border border-blue-200">
            <div class="flex items-baseline gap-2 mb-2">
              <span class="text-4xl font-bold text-gray-900">₱2200.0</span>
              <span class="text-gray-600 font-medium">per day</span>
            </div>
            <p class="text-sm text-gray-600 mb-4">All prices are in Philippine Peso (PHP)</p>
            <div class="flex items-center gap-2 text-sm text-gray-700">
              <svg class="w-4 h-4 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
              </svg>
              <span>Available for immediate booking</span>
            </div>
          </div>

          <!-- Description -->
            <div class="mb-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                About This Vehicle
              </h3>
              <p class="text-gray-700 leading-relaxed"><p>2026 Hybrid A/T 
<br />✅fuel efficient </p></p>
            </div>

          <!-- Location -->
            <div class="mb-6 bg-gray-50 rounded-xl p-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
                </svg>
                Rental Owner Location
              </h3>
              <p class="text-gray-700 leading-relaxed">
                18 manalo, Kalipay, Puerto Princesa City, Palawan, Philippines
              </p>
            </div>

          <!-- Trusted Badge Info -->
            <div class="mb-6 bg-yellow-50 rounded-xl p-6 border border-yellow-200">
              <div class="flex items-start">
                <div class="flex-shrink-0">
                  <svg class="w-6 h-6 text-yellow-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
                  </svg>
                </div>
                <div class="ml-3">
                  <h3 class="text-lg font-semibold text-gray-900 mb-2">Verified Owner</h3>
                  <p class="text-gray-700 text-sm">
                    This owner has verified their business details. All vehicles from this owner display the trusted badge, ensuring you're renting from a verified business.
                  </p>
                    <div class="mt-3">
                      <a class="inline-flex items-center px-4 py-2 rounded-md font-medium text-white text-sm" style="background-color: #0066cc" href="/rental-owners/0613-transportation-services-28">View Company Profile</a>
                    </div>
                </div>
              </div>
            </div>

          <!-- Rental Information -->
            <div class="bg-gray-50 rounded-xl p-6 mb-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                What's Included
              </h3>
              <ul class="space-y-2 text-gray-700">
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>GPS</span>
                  </li>
              </ul>
            </div>

          <!-- Specifications -->
            <div class="border-t border-gray-200 pt-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                </svg>
                Additional Information
              </h3>
              <div class="space-y-3">
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Body Type</span>
                    <span class="text-gray-900 text-right">Car - SUV</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Seating Capacity</span>
                    <span class="text-gray-900 text-right">7</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Transmission</span>
                    <span class="text-gray-900 text-right">Automatic</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Fuel Type</span>
                    <span class="text-gray-900 text-right">Gasoline</span>
                  </div>
              </div>
            </div>

          <!-- Features/Highlights -->
          <div class="border-t border-gray-200 pt-6">
            <div class="flex flex-wrap gap-2">
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-green-100 text-green-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                </svg>
                Available Now
              </span>
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                Instant Booking
              </span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Footer Actions -->
    <div class="border-t border-gray-200 bg-gray-50 p-6">
      <div class="flex flex-col sm:flex-row justify-between items-center gap-4">
        <div class="text-sm text-gray-600">
          <p class="font-medium">Need help? Contact us for assistance</p>
        </div>
        <div class="flex gap-3 w-full sm:w-auto">
          <button type="button" class="flex-1 sm:flex-none px-6 py-3 bg-white border-2 border-gray-300 text-gray-700 rounded-lg font-semibold hover:bg-gray-50 hover:border-gray-400 transition-colors" onclick="closeVehicleModal(35)">
            Close
          </button>
          <a data-turbo="false" class="flex-1 sm:flex-none px-8 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors shadow-lg text-center flex items-center justify-center gap-2" href="/bookings/new?vehicle_id=suzuki-xl6">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
            </svg>
            Book Now
</a>        </div>
      </div>
    </div>
  </div>
</div>

<script>
  function updateMainImage(vehicleId, imageUrl, imageIndex) {
    const mainImage = document.getElementById('main-image-' + vehicleId);
    if (mainImage && imageUrl) {
      mainImage.src = imageUrl;
      
      // Update border on thumbnails
      const thumbnails = document.querySelectorAll(`#vehicle-modal-${vehicleId} button[data-image-index]`);
      thumbnails.forEach((thumb, index) => {
        if (index === imageIndex) {
          thumb.classList.remove('border-transparent', 'hover:border-gray-300');
          thumb.classList.add('border-blue-600');
        } else {
          thumb.classList.remove('border-blue-600');
          thumb.classList.add('border-transparent', 'hover:border-gray-300');
        }
      });
    }
  }
</script>

<div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl hover:-translate-y-1 transition-all duration-300 cursor-pointer group flex flex-col" onclick="openVehicleModal(60)">
  <div class="relative h-48 bg-gray-200 overflow-hidden">
      <img alt="Mitsubishi mirage | GD BUDGET CAR &amp; MOTORCYCLE RENTALS" class="w-full h-full object-cover group-hover:scale-110 transition-transform duration-300" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcwMjgsInB1ciI6ImJsb2JfaWQifX0=--3b0ca069ed775d870757160950224ab48b9683a8/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbNjAwLDYwMF0sInNhdmVyIjp7InF1YWxpdHkiOjgwLCJzdHJpcCI6dHJ1ZX19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--b5a3c7685837a6d9e60fd2448a949664947f2fcd/1000013622.jpg" />

        <div class="absolute bottom-2 left-2" title="Verified owner logo">
          <div class="flex h-11 w-11 items-center justify-center rounded-xl bg-white/95 p-1.5 shadow-lg ring-1 ring-black/5 backdrop-blur-sm">
            <img alt="GD BUDGET CAR &amp; MOTORCYCLE RENTALS logo" class="h-full w-full object-contain" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcwNTAsInB1ciI6ImJsb2JfaWQifX0=--366fd8cef876cd4a502937e0992468a88b28a159/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls2NCw2NF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--e1972e07de98d125949e77bf677ab3a0d9623cc1/1000014406.png" />
          </div>
        </div>

      <div class="absolute bottom-2 right-2" title="Verified Owner - Verified Business with DTI Permit">
        <span class="inline-flex items-center px-2.5 py-1 text-sm font-semibold rounded-full bg-yellow-500 text-white shadow-lg">
          <svg class="w-3 h-3 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
          </svg>
          Verified
        </span>
      </div>
  </div>

  <div class="p-5 flex flex-col flex-grow">
    <div class="flex-grow">
      <h3 class="text-lg font-bold text-gray-900 mb-2 group-hover:text-blue-600 transition-colors">
        Mitsubishi mirage | GD BUDGET CAR &amp; MOTORCYCLE RENTALS
      </h3>
        <div class="flex items-center text-base text-gray-600 mb-2">
          <svg class="h-4 w-4 mr-1 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
          </svg>
          <span class="text-gray-600">Poblacion, El Nido, Palawan</span>
        </div>
        <p class="text-base text-gray-600 mb-3 line-clamp-2">
          Automatic Sedan
        </p>

        <div class="flex flex-wrap gap-2 mb-3 text-sm">
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path>
              </svg>
              5 seats
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
              </svg>
              CVT
            </span>
            <span class="px-2 py-1 bg-gray-100 text-gray-700 rounded">
              <svg class="w-3 h-3 inline mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path>
              </svg>
              Gasoline
            </span>
        </div>
    </div>
    <div class="flex items-center justify-between mt-4 pt-4 border-t border-gray-200">
      <div>
        <p class="text-sm text-gray-500">Daily Rate</p>
        <p class="text-2xl font-bold text-blue-600">₱2,200</p>
      </div>
      <button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-base">
        View Details
      </button>
    </div>
  </div>
</div>

<div id="vehicle-modal-60" class="fixed inset-0 z-[1000] hidden items-center justify-center modal" data-controller="modal" data-modal-open-value="false" data-action="keydown@window->modal#closeOnEscape">
  <div class="absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity duration-300 opacity-0 z-[1001] modal-backdrop" data-modal-target="backdrop" onclick="if(event.target === this) closeVehicleModal(60)"></div>
  <div class="relative bg-white rounded-2xl max-w-5xl w-full mx-4 max-h-[90vh] overflow-hidden z-[1002] transform scale-90 opacity-0 transition-all duration-300 shadow-2xl modal-content flex flex-col" data-modal-target="content">
    <!-- Header -->
    <div class="flex justify-between items-center p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-white">
      <div>
        <h2 class="text-3xl font-bold text-gray-900 m-0">Mitsubishi mirage | GD BUDGET CAR &amp; MOTORCYCLE RENTALS</h2>
        <div class="flex items-center gap-3 mt-2">
          <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
            Car
          </span>
            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-yellow-100 text-yellow-800" title="Verified Owner - Verified Business with DTI Permit">
              <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
              </svg>
              Verified Owner
            </span>
        </div>
      </div>
      <button type="button" class="bg-white hover:bg-gray-100 border border-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-gray-600 hover:text-gray-900 transition-colors shadow-sm" onclick="closeVehicleModal(60)" aria-label="Close">
        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
        </svg>
      </button>
    </div>

    <!-- Content - Scrollable -->
    <div class="overflow-y-auto flex-1">
      <div class="grid grid-cols-1 lg:grid-cols-2 gap-0">
        <!-- Image Gallery -->
        <div class="bg-gray-50 p-6">
            <div class="mb-4">
              <div class="relative rounded-xl overflow-hidden bg-gray-200 aspect-video">
                <img alt="Mitsubishi mirage | GD BUDGET CAR &amp; MOTORCYCLE RENTALS" id="main-image-60" class="w-full h-full object-cover" src="https://palawan.iprogrentgo.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6OTcwMjgsInB1ciI6ImJsb2JfaWQifX0=--3b0ca069ed775d870757160950224ab48b9683a8/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGVnIiwicmVzaXplX3RvX2xpbWl0IjpbMTIwMCwxMjAwXSwic2F2ZXIiOnsicXVhbGl0eSI6ODUsInN0cmlwIjp0cnVlfX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--a8cc17124e11b7490b7c93f626fa1004ce3d0d8e/1000013622.jpg" />
              </div>
            </div>
        </div>

        <!-- Details -->
        <div class="p-6 lg:p-8">
          <!-- Pricing Card -->
          <div class="bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl p-6 mb-6 border border-blue-200">
            <div class="flex items-baseline gap-2 mb-2">
              <span class="text-4xl font-bold text-gray-900">₱2200.0</span>
              <span class="text-gray-600 font-medium">per day</span>
            </div>
            <p class="text-sm text-gray-600 mb-4">All prices are in Philippine Peso (PHP)</p>
            <div class="flex items-center gap-2 text-sm text-gray-700">
              <svg class="w-4 h-4 text-green-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
              </svg>
              <span>Available for immediate booking</span>
            </div>
          </div>

          <!-- Description -->
            <div class="mb-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                About This Vehicle
              </h3>
              <p class="text-gray-700 leading-relaxed"><p>Automatic Sedan</p></p>
            </div>

          <!-- Location -->
            <div class="mb-6 bg-gray-50 rounded-xl p-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
                </svg>
                Rental Owner Location
              </h3>
              <p class="text-gray-700 leading-relaxed">
                National highway , Poblacion, El Nido, Palawan, Philippines
              </p>
            </div>

          <!-- Trusted Badge Info -->
            <div class="mb-6 bg-yellow-50 rounded-xl p-6 border border-yellow-200">
              <div class="flex items-start">
                <div class="flex-shrink-0">
                  <svg class="w-6 h-6 text-yellow-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
                  </svg>
                </div>
                <div class="ml-3">
                  <h3 class="text-lg font-semibold text-gray-900 mb-2">Verified Owner</h3>
                  <p class="text-gray-700 text-sm">
                    This owner has verified their business details. All vehicles from this owner display the trusted badge, ensuring you're renting from a verified business.
                  </p>
                    <div class="mt-3">
                      <a class="inline-flex items-center px-4 py-2 rounded-md font-medium text-white text-sm" style="background-color: #0066cc" href="/rental-owners/gd-budget-car-motorcycle-rentals-38">View Company Profile</a>
                    </div>
                </div>
              </div>
            </div>

          <!-- Rental Information -->
            <div class="bg-gray-50 rounded-xl p-6 mb-6 border border-gray-200">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                What's Included
              </h3>
              <ul class="space-y-2 text-gray-700">
                  <li class="flex items-start gap-2">
                    <svg class="w-5 h-5 text-green-600 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                    </svg>
                    <span>Gps</span>
                  </li>
              </ul>
            </div>

          <!-- Specifications -->
            <div class="border-t border-gray-200 pt-6">
              <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                <svg class="w-5 h-5 mr-2 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
                </svg>
                Additional Information
              </h3>
              <div class="space-y-3">
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Body Type</span>
                    <span class="text-gray-900 text-right">Car - Sedan</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Seating Capacity</span>
                    <span class="text-gray-900 text-right">5</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Transmission</span>
                    <span class="text-gray-900 text-right">CVT</span>
                  </div>
                  <div class="flex justify-between items-start py-2 border-b border-gray-100">
                    <span class="font-medium text-gray-700">Fuel Type</span>
                    <span class="text-gray-900 text-right">Gasoline</span>
                  </div>
                  <div class="flex justify-between items-start py-2">
                    <span class="font-medium text-gray-700">Available Areas</span>
                    <span class="text-gray-900 text-right">Puerto princesa, El Nido, Coron</span>
                  </div>
              </div>
            </div>

          <!-- Features/Highlights -->
          <div class="border-t border-gray-200 pt-6">
            <div class="flex flex-wrap gap-2">
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-green-100 text-green-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
                </svg>
                Available Now
              </span>
              <span class="inline-flex items-center px-3 py-1 rounded-full text-sm bg-blue-100 text-blue-800">
                <svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
                </svg>
                Instant Booking
              </span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Footer Actions -->
    <div class="border-t border-gray-200 bg-gray-50 p-6">
      <div class="flex flex-col sm:flex-row justify-between items-center gap-4">
        <div class="text-sm text-gray-600">
          <p class="font-medium">Need help? Contact us for assistance</p>
        </div>
        <div class="flex gap-3 w-full sm:w-auto">
          <button type="button" class="flex-1 sm:flex-none px-6 py-3 bg-white border-2 border-gray-300 text-gray-700 rounded-lg font-semibold hover:bg-gray-50 hover:border-gray-400 transition-colors" onclick="closeVehicleModal(60)">
            Close
          </button>
          <a data-turbo="false" class="flex-1 sm:flex-none px-8 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700 transition-colors shadow-lg text-center flex items-center justify-center gap-2" href="/bookings/new?vehicle_id=mitsubishi-mirage">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
            </svg>
            Book Now
</a>        </div>
      </div>
    </div>
  </div>
</div>

<script>
  function updateMainImage(vehicleId, imageUrl, imageIndex) {
    const mainImage = document.getElementById('main-image-' + vehicleId);
    if (mainImage && imageUrl) {
      mainImage.src = imageUrl;
      
      // Update border on thumbnails
      const thumbnails = document.querySelectorAll(`#vehicle-modal-${vehicleId} button[data-image-index]`);
      thumbnails.forEach((thumb, index) => {
        if (index === imageIndex) {
          thumb.classList.remove('border-transparent', 'hover:border-gray-300');
          thumb.classList.add('border-blue-600');
        } else {
          thumb.classList.remove('border-blue-600');
          thumb.classList.add('border-transparent', 'hover:border-gray-300');
        }
      });
    }
  }
</script>


</template></turbo-stream>
  <turbo-stream action="replace" target="vehicles-load-more"><template>
    <div id="vehicles-load-more" class="mt-8 flex justify-center">
        <a class="inline-flex items-center gap-2 px-6 py-3 bg-white border border-blue-600 text-blue-600 rounded-lg font-semibold hover:bg-blue-50 transition-colors shadow-sm" data-turbo-stream="true" href="/vehicles?current_visible=18&amp;format=turbo_stream&amp;load_more=1">
          <span>Load More Vehicles</span>
          <span class="text-xs px-2 py-0.5 rounded-full bg-blue-100 text-blue-700">
            +9
          </span>
</a>    </div>
</template></turbo-stream>